CN110267155A - A kind of control method and speaker of speaker - Google Patents

A kind of control method and speaker of speaker Download PDF

Info

Publication number
CN110267155A
CN110267155A CN201910568374.6A CN201910568374A CN110267155A CN 110267155 A CN110267155 A CN 110267155A CN 201910568374 A CN201910568374 A CN 201910568374A CN 110267155 A CN110267155 A CN 110267155A
Authority
CN
China
Prior art keywords
speaker
information
ultrasonic wave
ultrasonic
background sound
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
CN201910568374.6A
Other languages
Chinese (zh)
Other versions
CN110267155B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201910568374.6A priority Critical patent/CN110267155B/en
Publication of CN110267155A publication Critical patent/CN110267155A/en
Application granted granted Critical
Publication of CN110267155B publication Critical patent/CN110267155B/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
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/20Arrangements for obtaining desired frequency or directional characteristics

Landscapes

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

Abstract

The present invention provides the control method and speaker of a kind of speaker, wherein the control method of the speaker includes: to obtain the environmental information of the speaker;Determine audio play parameter corresponding with the environmental information;It controls the speaker and carries out audio broadcasting according to the audio play parameter.Technical solution provided by the invention solves the problems, such as that the sound effect control of existing speaker is relatively complicated.

Description

A kind of control method and speaker of speaker
Technical field
The present invention relates to the control methods and speaker of field of communication technology more particularly to a kind of speaker.
Background technique
Speaker is as a kind of audio-frequence player device, it has also become in people's work and life most commonly seen electronic product it One.Speaker is built-in with multiple loudspeakers usually to play audio, and external sound signal is received with one or more microphone. Currently, audio when speaker plays audio usually requires user to be manually adjusted, specific key is pressed such as to realize sound Amount increases or reduces, this makes the sound effect control of speaker relatively complicated and time-consuming.
Summary of the invention
The embodiment of the present invention provides the control method and speaker of a kind of speaker, with solve the sound effect control of existing speaker compared with For cumbersome problem.
In order to solve the above-mentioned technical problem, the present invention is implemented as follows:
In a first aspect, the embodiment of the invention provides a kind of control methods of speaker, comprising:
Obtain the environmental information of the speaker;
Determine audio play parameter corresponding with the environmental information;
It controls the speaker and carries out audio broadcasting according to the audio play parameter.
Second aspect, the embodiment of the invention also provides a kind of speakers, comprising:
Module is obtained, for obtaining the environmental information of the speaker;
Determining module, for determining audio play parameter corresponding with the environmental information;
Control module carries out audio broadcasting according to the audio play parameter for controlling the speaker.
The third aspect the embodiment of the invention also provides a kind of speaker, including processor, memory and is stored in described deposit On reservoir and the computer program that can run on the processor, the computer program are realized when being executed by the processor The step of control method of the speaker as described in first aspect.
Fourth aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer Program, when the computer program is executed by processor the step of the control method of realization speaker as described in first aspect.
In the embodiment of the present invention, speaker can obtain the environmental information of the speaker, determining and institute in the case where starting The corresponding audio play parameter of environmental information is stated, and then controls the speaker and is broadcast according to audio play parameter progress audio It puts.In this way, also allow for speaker can according to the difference of environmental information, automatically control speaker according to the matched sound of environmental information Frequency play parameter plays audio, is adjusted manually without user so that speaker for audio play parameter adjusting more It is convenient and intelligent, better speaker usage experience is brought for user.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, needed in being described below to the embodiment of the present invention Attached drawing to be used is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, For those of ordinary skill in the art, without any creative labor, it can also obtain according to these attached drawings Obtain other attached drawings.
Fig. 1 is a kind of flow chart of the control method of speaker provided in an embodiment of the present invention;
Fig. 2 is the flow chart of the control method of another speaker provided in an embodiment of the present invention;
Fig. 3 is a kind of structure chart of speaker provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
Referring to Figure 1, Fig. 1 is a kind of flow chart of the control method of speaker provided in an embodiment of the present invention, such as Fig. 1 institute Show, the control method of the speaker the following steps are included:
Step 101, the environmental information for obtaining speaker.
Optionally, the environmental information can refer to the space size of the speaker current environment, as space is larger Banquet hall, the lesser meeting room in space etc.;Alternatively, the environmental information may also mean that the room that the speaker is presently in Type, such as bedroom, parlor, study;Alternatively, the environmental information can also refer to the background of the speaker current environment Sound, etc.;It does not do and excessively repeats herein.
In this step, it can be in speaker starting, obtain the current environmental information of the speaker, that is, open in speaker It moves before not carrying out audio broadcasting also;It is of course also possible to be in the case where speaker has been started up and plays audio, described in acquisition The current environmental information of speaker.In the embodiment of the present invention, the scene for not carrying out audio broadcasting with speaker starting and also is made It is specifically described for specific embodiment.
It is to be appreciated that the current environmental information of the speaker is obtained when speaker starts and also do not carry out audio broadcasting, And then the environment being presently in the determination speaker, such as to determine that speaker is to be located in bedroom, or be located in parlor.
Step 102 determines audio play parameter corresponding with the environmental information.
When getting the current environmental information of the speaker, it is determined that play and join with the matched audio of the environmental information Number.For example, when getting the current environmental information of the speaker being located in bedroom, it is believed that speaker should be with more at this time Soft audio-frequency play mode plays out, it is determined that plays ginseng with the matched audio play parameter in bedroom, such as the audio Number can be including lower broadcast sound volume, without it is stereo around etc.;If getting the current environmental information of the speaker is position In in parlor, it is determined that with the matched audio play parameter in parlor can be biggish broadcast sound volume, it is stereo around etc..
It should be noted that the speaker, which can be, presets and is stored with multiple groups audio play parameter and varying environment Mapping relations between information.For example, it includes: the corresponding first audio play parameter in bedroom, parlor that the mapping relations, which can be, Corresponding second audio play parameter, study correspond to third audio play parameter, and banquet hall corresponds to the 4th audio play parameter, etc. Deng.It can be according to the difference of environmental information, so that it is determined that different audio play parameter is come pair in this way, also allowing for the speaker Audio plays out.
Wherein, after the environmental information can be the speaker starting, acquisition is calculated by specific detection device, such as It can be through range unit and calculate the solid space size of the speaker current environment, or be also possible to by taking the photograph It is identified as device and calculates the environment that the speaker is presently in.It dispatches from the factory alternatively, the environmental information can be in the speaker Before, it is pre-stored within by engineer in the memory of the speaker, such as can be and different space size correspondences is stored in advance Different environmental informations gets space size after speaker starting, then the space size that will acquire and pre-stored space Size is compared, to determine the current environmental information of speaker.
Step 103, the control speaker carry out audio broadcasting according to the audio play parameter.
It is to be appreciated that when determining corresponding with environmental information audio play parameter, then control the speaker according to The audio play parameter plays audio.For example, being to be located at bedroom when getting the current environmental information of speaker, it is determined that with The corresponding audio play parameter in bedroom be the first audio play parameter, control the speaker according to the first audio play parameter come into Row audio plays, such as lower broadcast sound volume.In this way, also with regard to being adjusted manually without user to the audio play parameter of speaker Section, is more convenient for use of the user to speaker, but also the adjusting of speaker is more easy and intelligent.
Optionally, the speaker can refer to that individual audio plays electronic equipment, such as intelligent sound speaker, alternatively, institute Stating speaker may also mean that the audio in such as mobile phone, tablet computer, computer, intelligent wearable device terminal device plays Device.It will be to be specifically described for individual audio plays electronic equipment by the speaker in the embodiment of the present invention.
In the embodiment of the present invention, the environmental information, which can be through specific detection device, calculates acquisition, such as ranging Device or photographic device etc..As an alternative embodiment, the step 101 may include:
The range unit controlled in the speaker carries out ranging, the distance between the speaker and barrier is obtained, to obtain Obtain the current environmental information of the speaker.
Optionally, the range unit can be supersonic range finder, infrared distance measuring device, laser ranging system etc.. In the embodiment of the present invention, it will be specifically described so that the range unit is supersonic range finder as an example.
It is to be appreciated that can be in speaker starting, while the starting of the range unit in speaker is controlled, is filled by ranging It sets and ranging is carried out with the environment being presently in speaker, with the current environmental information of the determination speaker.Such as in the speaker Can be and be provided with multiple range units, multiple range units can be the different direction in speaker, with to speaker not Ipsilateral carry out ranging, can also navigate to position and the distance of barrier in three dimensions, be presently in obtaining speaker The solid space size in room.
Speaker generally includes loudspeaker and microphone, and as a kind of optional implementation, the range unit includes setting In the ultrasonic probe, ultrasonic receiver in speaker on microphone and the ultrasonic transmission device on loudspeaker in speaker.This feelings Under condition, the range unit in the control speaker carries out ranging, the step of to obtain the speaker current environmental information, It can specifically include:
The first information and the ultrasonic probe, ultrasonic receiver for obtaining the ultrasonic transmission device transmitting ultrasonic wave receive To the second information of the ultrasonic wave;It is calculated between the speaker and barrier according to the first information and second information Distance, to obtain the current environmental information of the speaker.
Optionally, the first information can refer to the launch time of ultrasonic wave, and second information can refer to that this is super The receiving time of sound wave;It is to be appreciated that ultrasonic wave, which encounters barrier, to be fired back, in simple terms, emitted according to ultrasonic wave The launch time of device transmitting ultrasonic wave and ultrasonic probe, ultrasonic receiver receive the time difference between the receiving time of the ultrasonic wave, Also the distance between speaker and barrier can be calculated.
Alternatively, the first information may also mean that the initial energy of ultrasonic wave when ultrasonic transmission device emits ultrasonic wave Amount, second information refer to that ultrasonic wave when ultrasonic probe, ultrasonic receiver receives the ultrasonic wave terminates energy;It is to be appreciated that Energy can decay in transmission process, primary power when being emitted according to ultrasonic wave and termination energy when receiving the ultrasonic wave Difference between amount can also calculate the distance between speaker and barrier.Certainly, the range measurement principle of ultrasonic wave can be with It is other modes, does not do in the embodiment of the present invention and excessively repeat, the main improvement of the embodiment of the present invention does not lie in ultrasound Improvement away from principle, but it is the sky that speaker can realize speaker for local environment by setting supersonic range finder Between size calculating, to deploy suitable audio play parameter.
It should be noted that the speaker can rotate, and then also allowing for supersonic range finder can be in speaker turn In dynamic process, emit ultrasonic wave to different direction, to obtain more fully measurement data.Optionally, when speaker starts, control The speaker rotation is made, and is obtained in the speaker rotation process, the first letter of the ultrasonic transmission device transmitting ultrasonic wave Breath and the ultrasonic probe, ultrasonic receiver receive the second information of the ultrasonic wave.
It is provided only with a ultrasonic transmission device and a ultrasonic probe, ultrasonic receiver for example, can be in the speaker, During speaker rotates, such as it can be rotation or the axis 360 degree rotation around speaker, the ultrasonic transmission device Also it can emit ultrasonic wave to carry out ranging to all angles in speaker place room, can also calculate speaker and room The distance between everywhere, the position of other barriers in the space size and room in room locating for speaker and then can also be obtained And the information such as size, also determine that the current environmental information of speaker;Can certainly be by these information with it is pre-stored Environmental information is compared, to determine the current environmental information of speaker.
By taking the scene of bedroom as an example, speaker generates the scene that quotient already have accounted for the bedroom of conventional size at present before factory, Such as 8~20m2, it is contemplated that speaker carries out putting the case where space of bedroom size is arrived in calculating in bedroom different location, and has recorded sleeping The environmental information of this scene of room.If user opens speaker in the bedroom of oneself, speaker first will utilize ultrasonic distance measurement Device come detect the environment on periphery, the space size information that then will test and the environmental information stored in speaker memory into Row matching, to determine environmental information that speaker is presently in as bedroom.
Alternatively, the speaker can be including multiple loudspeakers, the ultrasonic transmission device transmitting on different loudspeakers Supersonic band is different.In this case, when speaker starts, the ultrasonic transmission device emits ultrasonic wave, and speaker obtains The first information and the ultrasonic wave of the ultrasonic wave of the different frequency range of the ultrasonic transmission device transmitting on multiple loudspeakers Reception device receives the second information of the ultrasonic wave of the different frequency range.
For example, speaker includes three loudspeakers, the ultrasonic wave of ultrasonic transmission device transmitting is first on the first loudspeaker Frequency range, the ultrasonic wave of ultrasonic transmission device transmitting is the second frequency range on rising tone device, ultrasonic wave transmitting dress on third loudspeaker The ultrasonic wave for setting transmitting is third frequency range;Then ultrasonic probe, ultrasonic receiver can also connect according to the difference of supersonic band to identify Which ultrasonic transmission device is the second information received correspond to, and also allows for first by the difference of supersonic band Information is corresponding with the second information, also just improves the accuracy of distance measurement result, to ensure that speaker can obtain more accurate ring Border information.
In the embodiment of the present invention, speaker obtains the current environmental information of the speaker, determining and institute in the case where starting The matched audio play parameter of environmental information is stated, and then controls the speaker and is broadcast according to audio play parameter progress audio It puts.In this way, also allow for speaker can according to the difference of environmental information, automatically control speaker according to the matched sound of environmental information Frequency play parameter plays audio, is adjusted manually without user so that speaker for audio play parameter adjusting more It is convenient and intelligent, better speaker usage experience is brought for user.
Fig. 2 is referred to, Fig. 2 is the flow chart of the control method of another speaker provided in an embodiment of the present invention, such as Fig. 2 institute Show, the control method of the speaker the following steps are included:
Step 201, the first background sound signal for obtaining speaker current environment.
It is to be appreciated that for environment locating for speaker, it will usually have environmental background sound, the first background sound signal Just refer to the sound size of the speaker local environment.The speaker, which can be, to be provided with one or more default microphones and is used to Detect the sound of surrounding enviroment.
In the case where speaker starting, such as it can be in speaker starting, or be also possible to play in speaker In the case where audio, the first background sound signal of current environment is obtained by the default microphone being set in speaker.It is described First background sound signal can be finger voice signal, such as how many dB, or may also mean that the electric signal that voice signal is converted to.
Step 202, the audio playback signal for obtaining the speaker.
In the case that for example speaker has played audio in the case where speaker starting or speaker has determined and broadcasts Playback frequency but in the case where not playing also, can also get the audio playback signal of speaker at this time, such as electric signal.
Optionally, the processor of speaker, which can be, handles the electric signal for being sent to loudspeaker progress sound broadcasting, Make its opposite in phase, the audio playback signal of big reverse phase such as obtains.
Step 203, according to the audio playback signal, noise reduction process is carried out to the first background sound signal, to obtain Second background sound signal.
It should be noted that in the case where speaker plays audio, the first background sound of the collected current environment of speaker Signal also will include play audio signal so that the first background sound signal can not accurate representation speaker current environment background Sound then can carry out noise reduction process to the first background sound signal.
It is to be appreciated that the audio in the first background sound signal and loudspeaker for getting speaker current environment plays letter After number, noise reduction process is carried out to the first background sound signal, to obtain the second background sound signal after noise reduction process.Such as it will First background sound signal is overlapped with audio playback signal, so that the default collected speaker of microphone itself plays audio Sound balanced out as far as possible so that the first background sound signal of speaker current environment is as few as possible by speaker sheet The influence of body broadcasting audio.In this way, it is also just more current close to speaker to carry out the second background sound signal obtained after noise reduction process The background sound of environment.
Step 204 determines audio play parameter corresponding with the second background sound signal.
After determining the second background sound signal, the environmental background sound of speaker current environment has also just been got, it is determined that with The audio play parameter of the second background sound Signal Matching.For example, if the corresponding sound pressure level of the second background sound signal is 40dB, Then volume is 4 grades in corresponding audio play parameter, if the corresponding sound pressure level of the second background sound signal is 50dB, with it Volume is 5 grades in corresponding audio play parameter, etc..It is to be appreciated that the corresponding sound pressure level of the second background sound signal is bigger, then Volume is also bigger in corresponding audio play parameter, to ensure that user can hear that more clear audio plays sound.It is optional Ground, it is too big so that obviously being perceived by user that the volume of two adjacent gears is unable to span;For the second background sound signal, The precision of judgement can also be as small as possible, such as the every promotion 10dB of sound pressure level, then the volume for determining that speaker plays needs to increase 1 Shelves, can promote the experience of user as far as possible.
In this way, carrying out noise reduction process by the background sound signal to speaker current environment, avoids audio and play sound pair The interference of environmental background sound can obtain the background sound more close to true environment, and then with the determining background with true environment The audio play parameter that sound matches also just can reduce the influence that environmental background sound plays audio, it is ensured that user heard Audio plays sound and becomes apparent from, and guarantees the listening experience of user.
It is to be appreciated that the speaker, which can be, presets and is stored with multiple groups audio play parameter and different second back Mapping relations between scape sound signal.In this way, can also be closed based on the mapping after determining the second background sound signal The determining audio play parameter with the second background sound Signal Matching of system.
Step 205, the control speaker carry out audio broadcasting according to the audio play parameter.
The step can refer to the step 103 in embodiment illustrated in fig. 1 and be implemented, to avoid repeating, the embodiment of the present invention In this is not repeated.
Optionally, in the embodiment of the present invention, the step 101 be may also is that
Obtain the first background sound signal of the speaker current environment in predetermined period.
Stablize unchangeably it is to be appreciated that environmental background sound is not necessarily, environmental background sound is possible to change.This In inventive embodiments, speaker can then obtain the first background sound signal of a current environment, in turn every a predetermined period To ensure that the audio play parameter of speaker is can to follow the variation of environmental background sound signal and change.For example, when getting The corresponding sound pressure level of environmental background sound signal becomes smaller, then the ring after audio play parameter can be correspondingly adjusted to and be become smaller by speaker The audio play parameter of border background sound Signal Matching, to guarantee to provide better listening experience for user.
In this case, the method can also include:
Obtain the continuously corresponding multiple first background sound signals of multiple predetermined periods;Multiple described first In background sound signal, if the difference per two adjacent the first background sound signals is respectively less than preset value, extend the default week The duration of phase.
For example, predetermined period is 10 seconds, corresponding 5 the first background sound signals of continuous 5 10 seconds institutes, meter are obtained The difference in this 5 the first background sound signals per two adjacent the first background sound signals is calculated, if per two first adjacent back The difference of scape sound signal is respectively less than preset value, illustrates that the variation of the first background sound signal during this period of time is little, does not also just have Necessity so continually obtains the first background sound signal, then can extend the duration of the predetermined period, such as extends 10 seconds To 1 minute.In this way, also just can be avoided speaker excessively continually obtains the first background sound signal, to simplify the operation of speaker, So that the control mode of the speaker is more intelligent.
It is configured in addition, the predetermined period can also be according to environmental information locating for speaker, for example, when detection The environmental information current to the speaker is located in bedroom, then can set the predetermined period as 1 minute, if detecting institute Stating the current environmental information of speaker is located in parlor, then can set the predetermined period as 10 seconds.In this way, also allowing for sound Case for the acquisition period of environmental background sound can the difference based on environmental information and it is different so that the control mode of speaker is more It is intelligent.
In the embodiment of the present invention, by obtaining the first background sound signal of speaker current environment and the audio broadcasting letter of speaker Number, noise reduction process is carried out to the first background sound signal, to obtain the second background sound signal, and determining and the second background sound signal The audio play parameter matched, and then control the speaker and carry out audio broadcasting according to the audio play parameter.In this way, by pair The background sound signal of speaker current environment carries out noise reduction process, avoids audio and plays interference of the sound to environmental background sound, energy The background sound more close to true environment is accessed, and then is played and is joined with the audio that the determining background sound with true environment matches Number, also just can reduce the influence that environmental background sound plays audio, it is ensured that the audio that user hears plays sound and becomes apparent from, and protects Demonstrate,prove the listening experience of user.
Fig. 3 is referred to, Fig. 3 is a kind of structure chart of speaker provided in an embodiment of the present invention, as shown in figure 3, the speaker 300 include:
Module 301 is obtained, for obtaining the environmental information of the speaker;
Determining module 302, for determining audio play parameter corresponding with the environmental information;
Control module 303 carries out audio broadcasting according to the audio play parameter for controlling the speaker.
Optionally, range unit is equipped in the speaker, the acquisition module 301 is also used to:
The range unit controlled in the speaker carries out ranging, the distance between the speaker and barrier is obtained, to obtain Obtain the current environmental information of the speaker.
Optionally, the range unit includes the ultrasonic probe, ultrasonic receiver on microphone in the speaker and is set to Ultrasonic transmission device on loudspeaker;
The acquisition module 301 includes:
Acquisition submodule, for obtain ultrasonic transmission device transmitting ultrasonic wave the first information and the ultrasound Wave receiving device receives the second information of the ultrasonic wave;The first information be launch time or ultrasonic wave primary power, Second information is that receiving time or ultrasonic wave terminate energy;
Computational submodule, for being calculated between the speaker and barrier according to the first information and second information Distance, to obtain the current environmental information of the speaker.
Optionally, the acquisition submodule is also used to:
Control the speaker rotation;
It obtains in the speaker rotation process, the first information of ultrasonic transmission device transmitting ultrasonic wave and described Ultrasonic probe, ultrasonic receiver receives the second information of the ultrasonic wave.
Optionally, the speaker includes multiple loudspeakers, the ultrasonic transmission device transmitting on the different loudspeakers Supersonic band is different;
The acquisition submodule is also used to:
Obtain the first information and the ultrasonic wave of the ultrasonic wave of the different frequency range of the ultrasonic transmission device transmitting Reception device receives the second information of the ultrasonic wave of the different frequency range.
Optionally, the acquisition module 301 is also used to:
Obtain the first background sound signal of the speaker current environment;
The determining module 302 is also used to:
Obtain the audio playback signal of the speaker;
According to the audio playback signal, noise reduction process is carried out to the first background sound signal, to obtain the second background Sound signal;
Determine audio play parameter corresponding with the second background sound signal.
Optionally, the acquisition module 301 is also used to:
Obtain the first background sound signal of the speaker current environment in predetermined period;
And
Obtain the continuously corresponding multiple first background sound signals of multiple predetermined periods;
The control module 303 is also used to: in multiple first background sound signals, if per two first adjacent back The difference of scape sound signal is respectively less than preset value, then extends the duration of the predetermined period.
It should be noted that speaker 300 can be realized each process of the control method embodiment of above-mentioned speaker, and can reach To identical technical effect, to avoid repeating, which is not described herein again.
In the embodiment of the present invention, speaker 300 can obtain the speaker by obtaining module 301 in the case where starting Current environmental information by the determination of determining module 302 and the matched audio play parameter of the environmental information, and then controls mould Block 303 controls the speaker and carries out audio broadcasting according to the audio play parameter.It being capable of root in this way, also allowing for speaker 300 According to the difference of environmental information, speaker 300 is automatically controlled according to the matched audio play parameter of environmental information and plays audio, nothing Need user to be adjusted manually so that speaker 300 is more convenient and intelligent for the adjusting of audio play parameter, be user with Carry out better usage experience.
The embodiment of the present invention also provides a kind of speaker, including processor, memory, and storage is on a memory and can be described The computer program run on processor, the computer program realize that the control method of above-mentioned speaker is implemented when being executed by processor Each process of example, and identical technical effect can be reached, to avoid repeating, which is not described herein again.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, the computer program realize each process of the control method embodiment of above-mentioned speaker when being executed by processor, and Identical technical effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium, such as Read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic or disk etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (15)

1. a kind of control method of speaker characterized by comprising
Obtain the environmental information of the speaker;
Determine audio play parameter corresponding with the environmental information;
It controls the speaker and carries out audio broadcasting according to the audio play parameter.
2. the method according to claim 1, wherein the environmental information for obtaining the speaker, comprising:
The range unit controlled in the speaker carries out ranging, the distance between the speaker and barrier is obtained, to obtain State the current environmental information of speaker.
3. according to the method described in claim 2, it is characterized in that, the range unit includes being set to microphone in the speaker On ultrasonic probe, ultrasonic receiver and the ultrasonic transmission device on loudspeaker;
Range unit in the control speaker carries out ranging, the distance between the speaker and barrier is obtained, to obtain Obtain the current environmental information of the speaker, comprising:
The first information and the ultrasonic probe, ultrasonic receiver for obtaining the ultrasonic transmission device transmitting ultrasonic wave receive institute State the second information of ultrasonic wave;The first information is launch time or ultrasonic wave primary power, and second information is to receive Time or ultrasonic wave terminate energy;
The distance between the speaker and barrier are calculated according to the first information and second information, to obtain the sound The current environmental information of case.
4. according to the method described in claim 3, it is characterized in that, described obtain the ultrasonic transmission device transmitting ultrasonic wave The first information and the ultrasonic probe, ultrasonic receiver receive the second information of the ultrasonic wave, comprising:
Control the speaker rotation;
It obtains in the speaker rotation process, the first information of the ultrasonic transmission device transmitting ultrasonic wave and the ultrasound Wave receiving device receives the second information of the ultrasonic wave.
5. according to the method described in claim 3, it is characterized in that, the speaker includes multiple loudspeakers, the different loudspeakings The supersonic band of ultrasonic transmission device transmitting on device is different;
The first information for obtaining the ultrasonic transmission device transmitting ultrasonic wave and the ultrasonic probe, ultrasonic receiver receive To the second information of the ultrasonic wave, comprising:
The first information and the ultrasonic wave for obtaining the ultrasonic wave of the different frequency range of the ultrasonic transmission device transmitting receive Device receives the second information of the ultrasonic wave of the different frequency range.
6. the method according to claim 1, wherein the environmental information for obtaining the speaker, comprising:
Obtain the first background sound signal of the speaker current environment;
Determination audio play parameter corresponding with the environmental information, comprising:
Obtain the audio playback signal of the speaker;
According to the audio playback signal, noise reduction process is carried out to the first background sound signal, to obtain the second background message Number;
Determine audio play parameter corresponding with the second background sound signal.
7. according to the method described in claim 6, it is characterized in that, first background sound for obtaining the speaker current environment Signal, comprising:
Obtain the first background sound signal of the speaker current environment in predetermined period;
After the control speaker carries out audio broadcasting according to the audio play parameter, the method also includes:
Obtain the continuously corresponding multiple first background sound signals of multiple predetermined periods;
In multiple first background sound signals, preset if the difference per two adjacent the first background sound signals is respectively less than Value, then extend the duration of the predetermined period.
8. a kind of speaker characterized by comprising
Module is obtained, for obtaining the environmental information of the speaker;
Determining module, for determining audio play parameter corresponding with the environmental information;
Control module carries out audio broadcasting according to the audio play parameter for controlling the speaker.
9. speaker according to claim 8, which is characterized in that be equipped with range unit, the acquisition module in the speaker It is also used to:
The range unit controlled in the speaker carries out ranging, the distance between the speaker and barrier is obtained, to obtain State the current environmental information of speaker.
10. speaker according to claim 9, which is characterized in that the range unit includes being set to Mike in the speaker Ultrasonic probe, ultrasonic receiver on wind and the ultrasonic transmission device on loudspeaker;
The acquisition module includes:
Acquisition submodule, the first information and the ultrasonic wave for obtaining the ultrasonic transmission device transmitting ultrasonic wave connect Receiving apparatus receives the second information of the ultrasonic wave;The first information be launch time or ultrasonic wave primary power, it is described Second information is that receiving time or ultrasonic wave terminate energy;
Computational submodule, for according to the first information and second information calculate between the speaker and barrier away from From to obtain the current environmental information of the speaker.
11. speaker according to claim 10, which is characterized in that the acquisition submodule is also used to:
Control the speaker rotation;
It obtains in the speaker rotation process, the first information of the ultrasonic transmission device transmitting ultrasonic wave and the ultrasound Wave receiving device receives the second information of the ultrasonic wave.
12. speaker according to claim 10, which is characterized in that the speaker includes multiple loudspeakers, is raised described in difference The supersonic band of ultrasonic transmission device transmitting on sound device is different;
The acquisition submodule is also used to:
The first information and the ultrasonic wave for obtaining the ultrasonic wave of the different frequency range of the ultrasonic transmission device transmitting receive Device receives the second information of the ultrasonic wave of the different frequency range.
13. speaker according to claim 10, which is characterized in that the acquisition module is also used to:
Obtain the first background sound signal of the speaker current environment;
The determining module is also used to:
Obtain the audio playback signal of the speaker;
According to the audio playback signal, noise reduction process is carried out to the first background sound signal, to obtain the second background message Number;
Determine audio play parameter corresponding with the second background sound signal.
14. speaker according to claim 13, which is characterized in that the acquisition module is also used to:
Obtain the first background sound signal of the speaker current environment in predetermined period;
And
Obtain the continuously corresponding multiple first background sound signals of multiple predetermined periods;
The control module is also used to: in multiple first background sound signals, if per two adjacent the first background messages Number difference be respectively less than preset value, then extend the duration of the predetermined period.
15. a kind of speaker, which is characterized in that including processor, memory and be stored on the memory and can be at the place The computer program run on reason device is realized when the computer program is executed by the processor as appointed in claim 1 to 7 The step of control method of speaker described in one.
CN201910568374.6A 2019-06-27 2019-06-27 Sound box control method and sound box Active CN110267155B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910568374.6A CN110267155B (en) 2019-06-27 2019-06-27 Sound box control method and sound box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910568374.6A CN110267155B (en) 2019-06-27 2019-06-27 Sound box control method and sound box

Publications (2)

Publication Number Publication Date
CN110267155A true CN110267155A (en) 2019-09-20
CN110267155B CN110267155B (en) 2021-10-22

Family

ID=67922372

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910568374.6A Active CN110267155B (en) 2019-06-27 2019-06-27 Sound box control method and sound box

Country Status (1)

Country Link
CN (1) CN110267155B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111787460A (en) * 2020-06-23 2020-10-16 北京小米移动软件有限公司 Equipment control method and device
CN113507668A (en) * 2021-06-30 2021-10-15 歌尔科技有限公司 Variable-bandwidth intelligent control method, audio equipment and readable storage medium
CN113992985A (en) * 2021-10-25 2022-01-28 上海艾为电子技术股份有限公司 Intelligent playing method and intelligent playing device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1774871A (en) * 2003-04-15 2006-05-17 专利创投公司 Directional speakers
CN101043764A (en) * 2007-04-02 2007-09-26 奎硕电子(东莞)有限公司 Sound box capable of adjusting sound effect automatically as environment change and adjusting method thereof
CN104821142A (en) * 2015-05-19 2015-08-05 无锡市崇安区科技创业服务中心 Museum automatic explanation device
CN105225681A (en) * 2014-06-26 2016-01-06 美的集团股份有限公司 Speech playing method and system
US20160253146A1 (en) * 2014-04-29 2016-09-01 Boe Technology Group Co., Ltd. Audio device and method for automatically adjusting volume thereof
CN205726229U (en) * 2016-02-22 2016-11-23 深圳市树源科技有限公司 Automatically the earphone of volume is adjusted
CN106487984A (en) * 2016-09-27 2017-03-08 广州酷狗计算机科技有限公司 A kind of method and apparatus of adjustment volume
CN106808480A (en) * 2017-03-23 2017-06-09 北京瑞华康源科技有限公司 A kind of robot guide medical system
CN108111933A (en) * 2017-12-13 2018-06-01 四川云锦信息科技有限公司 A kind of intelligent sound box

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1774871A (en) * 2003-04-15 2006-05-17 专利创投公司 Directional speakers
CN101043764A (en) * 2007-04-02 2007-09-26 奎硕电子(东莞)有限公司 Sound box capable of adjusting sound effect automatically as environment change and adjusting method thereof
US20160253146A1 (en) * 2014-04-29 2016-09-01 Boe Technology Group Co., Ltd. Audio device and method for automatically adjusting volume thereof
CN105225681A (en) * 2014-06-26 2016-01-06 美的集团股份有限公司 Speech playing method and system
CN104821142A (en) * 2015-05-19 2015-08-05 无锡市崇安区科技创业服务中心 Museum automatic explanation device
CN205726229U (en) * 2016-02-22 2016-11-23 深圳市树源科技有限公司 Automatically the earphone of volume is adjusted
CN106487984A (en) * 2016-09-27 2017-03-08 广州酷狗计算机科技有限公司 A kind of method and apparatus of adjustment volume
CN106808480A (en) * 2017-03-23 2017-06-09 北京瑞华康源科技有限公司 A kind of robot guide medical system
CN108111933A (en) * 2017-12-13 2018-06-01 四川云锦信息科技有限公司 A kind of intelligent sound box

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111787460A (en) * 2020-06-23 2020-10-16 北京小米移动软件有限公司 Equipment control method and device
US11922093B2 (en) 2020-06-23 2024-03-05 Beijing Xiaomi Mobile Software Co., Ltd. Device control method and apparatus
CN113507668A (en) * 2021-06-30 2021-10-15 歌尔科技有限公司 Variable-bandwidth intelligent control method, audio equipment and readable storage medium
CN113507668B (en) * 2021-06-30 2022-11-22 歌尔科技有限公司 Variable-bandwidth intelligent control method, audio equipment and readable storage medium
CN113992985A (en) * 2021-10-25 2022-01-28 上海艾为电子技术股份有限公司 Intelligent playing method and intelligent playing device
CN113992985B (en) * 2021-10-25 2024-03-08 上海艾为电子技术股份有限公司 Intelligent playing method and intelligent playing device

Also Published As

Publication number Publication date
CN110267155B (en) 2021-10-22

Similar Documents

Publication Publication Date Title
CN106303836B (en) Method and device for adjusting stereo playing
CN110267155A (en) A kind of control method and speaker of speaker
US9648436B2 (en) Augmented reality sound system
US9628911B2 (en) Automatic audio system equalizing
CN106998514B (en) Intelligent multichannel configuration method and system
CN104135705B (en) A kind of method and system according to different scenes pattern adjust automatically multimedia volume
US10257630B2 (en) Computer program and method of determining a personalized head-related transfer function and interaural time difference function
US20060056638A1 (en) Sound reproduction system, program and data carrier
CN108538320A (en) Recording control method and device, readable storage medium storing program for executing, terminal
CN103229160A (en) Method and system for enhancing sound
CN103765923A (en) System and method for fitting of a hearing device
US11818545B2 (en) Method to acquire preferred dynamic range function for speech enhancement
CN110012406A (en) Acoustic signal processing method, device, processor and ossiphone
CN108882115A (en) loudness adjusting method, device and terminal
CN106921911A (en) Voice acquisition method and device
CN109658935A (en) The generation method and system of multichannel noisy speech
CN109195090A (en) Test method and system for microphone electro mechanical parameter in product
CN109040911A (en) The determination method of intelligent sound box and its target placement location
US7327848B2 (en) Visualization of spatialized audio
US20240223986A1 (en) Directional sound emission method, device and apparatus
CN108172237A (en) Voice communication data processing method, device, storage medium and mobile terminal
CN113553022A (en) Equipment adjusting method and device, mobile terminal and storage medium
CN109889300B (en) Anti-eavesdropping and anti-stealing recording device and interference control method
CN110347365A (en) The method and apparatus and sound of automatic adjustment casting volume broadcast equipment
CN109121068A (en) Sound effect control method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant