CN112291672B - Speaker control method, control device and electronic equipment - Google Patents

Speaker control method, control device and electronic equipment Download PDF

Info

Publication number
CN112291672B
CN112291672B CN202011194259.6A CN202011194259A CN112291672B CN 112291672 B CN112291672 B CN 112291672B CN 202011194259 A CN202011194259 A CN 202011194259A CN 112291672 B CN112291672 B CN 112291672B
Authority
CN
China
Prior art keywords
target
speaker
volume
loudspeaker
preset
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
CN202011194259.6A
Other languages
Chinese (zh)
Other versions
CN112291672A (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 CN202011194259.6A priority Critical patent/CN112291672B/en
Publication of CN112291672A publication Critical patent/CN112291672A/en
Application granted granted Critical
Publication of CN112291672B publication Critical patent/CN112291672B/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
    • H04R1/32Arrangements for obtaining desired frequency or directional characteristics for obtaining desired directional characteristic only
    • H04R1/323Arrangements for obtaining desired frequency or directional characteristics for obtaining desired directional characteristic only for loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/60Substation equipment, e.g. for use by subscribers including speech amplifiers
    • H04M1/6033Substation equipment, e.g. for use by subscribers including speech amplifiers for providing handsfree use or a loudspeaker mode in telephone sets
    • H04M1/6041Portable telephones adapted for handsfree use
    • H04M1/605Portable telephones adapted for handsfree use involving control of the receiver volume to provide a dual operational mode at close or far distance from the user
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups
    • H04R2430/01Aspects of volume control, not necessarily automatic, in sound systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2499/00Aspects covered by H04R or H04S not otherwise provided for in their subgroups
    • H04R2499/10General applications
    • H04R2499/11Transducers incorporated or for use in hand-held devices, e.g. mobile phones, PDA's, camera's
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The application discloses a control method and device for a loudspeaker and electronic equipment, and belongs to the field of electronic equipment. The control method comprises the following steps: acquiring noise values of the environment and crowd information within a preset distance range; determining a target loudspeaker, a target loudspeaker direction and a target volume according to the noise value and the crowd information; and controlling the target loudspeaker to work in the target loudspeaker direction and the target volume. The application can ensure that the user can hear the sound played by the loudspeaker, and the crowd in the environment of the electronic equipment can not hear the sound played by the loudspeaker, thereby protecting the privacy of the user and improving the audio experience of the user.

Description

Speaker control method, control device and electronic equipment
Technical Field
The application belongs to the field of electronic equipment, and particularly relates to a loudspeaker control method, a loudspeaker control device and electronic equipment.
Background
In daily life, when people play audio or video sounds by using a speaker of an electronic device, it is often necessary to manually adjust the volume of the speaker according to the surrounding environment, for example, to reduce the volume of the speaker when entering an office or to reduce the volume of the speaker when someone approaches, so as to avoid hearing the sound played by the user electronic device by other people.
In order to improve the situation that a user often needs to manually adjust the volume of a loudspeaker, the prior art judges the size of the space where the electronic equipment is located by receiving and identifying the reflection of sound waves, so that the volume of the loudspeaker is adjusted according to the size of the space where the electronic equipment is located.
The manner in which the sound of the loudspeaker is regulated in the prior art also has the following drawbacks: when the loudspeaker is too loud, the privacy of the user cannot be protected under the condition that other people hear the sound played by the user electronic equipment; when the sound of the loudspeaker is too small, the problem that the loudspeaker cannot hear the played sound occurs, and the user experience is poor; namely, the mode of adjusting the sound of the loudspeaker in the prior art has the problems that users cannot hear the sound played by the loudspeaker and the privacy of the users is protected.
Disclosure of Invention
The embodiment of the application aims to provide a loudspeaker control method, a loudspeaker control device and electronic equipment, which can solve the problems that the mode of adjusting the sound of a loudspeaker in the prior art cannot be considered, a user can hear the loudspeaker to play the sound and the privacy of the user is protected.
In order to solve the technical problems, the application is realized as follows:
in a first aspect, an embodiment of the present application provides a method for controlling a speaker, including:
acquiring noise values of the environment and crowd information within a preset distance range;
determining a target loudspeaker, a target loudspeaker direction and a target volume according to the noise value and the crowd information;
and controlling the target loudspeaker to work in the target loudspeaker direction and the target volume.
In a second aspect, an embodiment of the present application provides a control device for a speaker, including:
the acquisition module is used for acquiring the noise value of the environment and crowd information within a preset distance range;
the determining module is used for determining a target loudspeaker, a target loudspeaker raising direction and target volume according to the noise value and the crowd information;
and the control module is used for controlling the target loudspeaker to work in the target loudspeaker direction and the target volume.
In a third aspect, an embodiment of the present application provides an electronic device including a speaker, a microphone, and a millimeter wave radar sensor, the electronic device further including a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the method for controlling a speaker according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which, when executed by a processor, implement the steps of the method of controlling a loudspeaker according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement a method for controlling a speaker according to the first aspect.
In the embodiment of the application, after the noise value of the environment and the crowd information in the preset distance range are obtained, the target speaker to be operated in the electronic equipment, the target speaker sound-raising direction of the target speaker and the target volume of the target speaker are determined according to the noise value and the crowd information, and then the target speaker is controlled to operate in the target sound-raising direction and the target volume, so that a user can be ensured to hear the sound played by the speaker, and meanwhile, the crowd in the environment where the electronic equipment is located cannot hear the sound played by the speaker, thereby protecting the privacy of the user and improving the audio experience of the user.
Drawings
Fig. 1 is a flowchart of steps of a method for controlling a speaker according to an embodiment of the present application;
fig. 2 is a flowchart of steps of a method for controlling a speaker according to an embodiment of the present application;
fig. 3 is a block diagram of a control device of a speaker according to an embodiment of the present application;
fig. 4 is a block diagram of a control device for a speaker according to an embodiment of the present application;
fig. 5 is a block diagram of an electronic device according to an embodiment of the present application;
fig. 6 is a schematic hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type, and are not limited to the number of objects, such as the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The following describes in detail a control method of a speaker according to the embodiment of the present application through specific embodiments and application scenarios thereof with reference to the accompanying drawings.
As shown in fig. 1, the method for controlling a speaker according to the embodiment of the present application includes the following steps:
and step 10, acquiring the noise value of the environment and crowd information within a preset distance range.
Step 10 may be performed by obtaining a noise value of an environment where the electronic device is located in any manner, and obtaining crowd information within a preset distance range of the electronic device in any manner.
For example, in one embodiment of the present application, as shown in FIG. 2, step 10 of obtaining the noise value of the environment may include:
and 11, acquiring sound information acquired by at least one microphone in the electronic equipment.
The sound information may include size information of sound, direction information of sound, or other information, among others.
Step 12, determining a noise value according to at least one sound information.
Step 12 may use any prior art technique to determine the noise value from at least one piece of sound information.
Specifically, when the at least one microphone is a plurality of microphones (two or more microphones), step 11 realizes multi-microphone pickup, step 12 determines a noise value from a plurality of sounds, and at this time, the accuracy of the noise value determined in step 12 is high.
In addition, the preset distance (for example, 5 meters) may be determined according to the volume of the speaker in the current electronic device, so as to allow the user to hear the sound played by the speaker and protect the privacy of the user (the crowd outside the preset distance cannot hear the sound played by the speaker in the current electronic device).
Optionally, the information such as the number of people and the movement direction of each person in the preset distance range of the electronic device may be determined by the millimeter wave radar sensor or other detection module, and then the number of people and the movement direction of each person determined by the millimeter wave radar sensor or other detection module may be used as the crowd information in step 10.
And step 20, determining a target loudspeaker, a target loudspeaker raising direction and a target volume according to the noise value and the crowd information.
Alternatively, the crowd information may include the number of people and the direction of movement of each person in the crowd, or other crowd information.
Optionally, the target speaker to be operated may be one speaker or a plurality of speakers, the target speaker may have an omnidirectional or preset arbitrary direction, and the target volume of the target speaker may be a preset arbitrary volume, which only needs to ensure that the user can hear the speaker to play sound and protect the privacy of the user.
Optionally, step 20 may determine the magnitude of the environmental noise according to the magnitude of the noise value, and further determine the target speaker to be operated in the electronic device, the target speaker's target volume according to the magnitude of the environmental noise and the crowd information.
And step 30, controlling the target loudspeaker to work in the target loudspeaker-raising direction and the target volume.
Step 30 may be any manner of controlling the target speaker to operate in the target speaker direction and the target volume.
The target loudspeaker is controlled to work in the target loudspeaker playing direction and the target volume in the step 30, so that a user can be ensured to hear the loudspeaker playing sound, and meanwhile, the crowd in the environment where the electronic equipment is located cannot hear the loudspeaker playing sound, so that the privacy of the user is protected, and the use experience of the user is improved.
Optionally, in a specific embodiment of the present application, as shown in fig. 2, the crowd information may include a number of people, and step 20 of determining, according to the noise value and the crowd information, a target speaker to be operated in the electronic device, a target speaker direction, and a target volume of the target speaker may include:
and step 21, determining that the target speakers are all speakers in the electronic equipment, the speaker direction of the target speakers is all directions and the target volume of the target speakers is the first preset volume under the condition that the noise value is smaller than the first preset value and the number of people is zero.
When the noise value is smaller than a first preset value, for example, 70 db, the noise of the environment where the electronic device is located is smaller, when the number of people is zero, no person is indicated in the preset distance range of the electronic device, for example, the privacy of the environment where the electronic device is located is good, for example, a user is in a personal room, at this time, it can be determined that the target speakers in the electronic device are all speakers, the speaking directions of the target speakers are all directions, and the target volume of the target speakers is the first preset volume, and all directions are all speaking directions of the target speakers, so that the audio experience of the user can be satisfied by playing the sound in all directions.
Step 22, determining that the target speakers are all speakers in the electronic equipment, the speaker direction of the target speakers is all directions and the target volume of the target speakers is a second preset volume when the noise value is larger than a first preset value and the number of people is zero; the second preset volume is larger than the first preset volume.
When the noise value is greater than the first preset value, the noise of the environment where the electronic device is located is larger, when the number of people is zero, no person is indicated in the preset distance range of the electronic device, for example, the privacy of the environment where the electronic device is located is good, for example, a user is in a KTV (Karaoke) room, at this time, it can be determined that the target speakers in the electronic device are all speakers, the speaker direction of the target speakers is omnidirectional, and the target volume of the target speakers is the second preset volume, so as to satisfy the audio experience of the user.
Step 23, determining that the target speaker is a speaker close to the user in the electronic device, the speaker direction of the target speaker is a first direction towards the user, and the target volume of the target speaker is a first preset volume when the noise value is smaller than the first preset value and the number of people is larger than zero.
When the noise value is smaller than a first preset value, the noise of the environment where the electronic equipment is located is smaller, when the number of people is larger than zero, the situation that the electronic equipment is located in the preset distance range is indicated, for example, the privacy of the environment where the electronic equipment is located is poor, a user is in an office, at the moment, the target loudspeaker can be determined to be a loudspeaker close to the user in the electronic equipment, the loudspeaker direction of the target loudspeaker is a first direction facing the user, and the target volume of the target loudspeaker is the first preset volume, so that the privacy requirement and the audio experience of the user are met.
And step 24, determining that the target loudspeaker is a loudspeaker close to the user in the electronic equipment, the loudspeaker direction of the target loudspeaker is a first direction facing the user, and the target volume of the target loudspeaker is a second preset volume when the noise value is larger than a first preset value and the number of people is larger than zero.
When the noise value is greater than a first preset value, the noise of the environment where the electronic equipment is located is larger, when the number of people is greater than zero, the situation that the electronic equipment is located in a preset distance range is indicated, for example, the privacy of the environment where the electronic equipment is located is poor, a user is in a restaurant, at this time, the target loudspeaker can be determined to be a loudspeaker close to the user in the electronic equipment, the loudspeaker direction of the target loudspeaker is a first direction facing the user, and the target volume of the target loudspeaker is a second preset volume, so that the privacy requirement and the audio experience of the user are met.
Optionally, in the case that the number of people is greater than zero, the crowd information further includes a motion direction of each person in the crowd, and after the target speaker is controlled to operate in the target speaker direction and the target volume, as shown in fig. 2, the control method may further include:
step 40, reducing the volume of the target speaker in the case that the movement direction of at least one person in the crowd is the direction toward the electronic device or the number of persons increases.
When the moving direction of at least one person in the crowd is the direction towards the electronic device or the number of people increases, the privacy of the environment where the electronic device is located is shown to be poor, and at this time, the volume of the target speaker is reduced through step 40, so that the crowd (including at least one person with the direction towards the electronic device as the moving direction) in the environment where the electronic device is located can be ensured to be unable to hear the speaker to play sound, the privacy of the user is protected, and the use experience of the user is improved.
Step 50, maintaining the volume of the target speaker or increasing the volume of the target speaker in the case that the movement direction of each person in the crowd is away from the electronic device or the number of people is reduced.
When the moving direction of each person in the crowd is the direction deviating from the electronic equipment or the number of people is reduced, the privacy of the environment where the electronic equipment is located is shown to be good, at this time, the volume of the target speaker is maintained or the volume of the target speaker is increased through the step 50, so that the crowd in the environment where the electronic equipment is located can be ensured to be unable to hear the speaker to play sound, the privacy of the user is protected, and the audio experience of the user is improved.
Optionally, when the number of people decreases to zero, the target speaker may be a speaker close to the user in the electronic device, and the speaker direction of the target speaker is a first direction facing the user, and the target speaker is all speakers in the electronic device, and the speaker direction of the target speaker is all directions.
Optionally, in a specific embodiment of the present application, as shown in fig. 2, the control method may further include:
step 60, if the noise value is greater than the first preset value and the number of people is zero, if the audio mode of the target speaker is the left and right channel audio mode, switching the audio mode of the target speaker to the mono audio mode.
Because the sound of the target loudspeaker in the mono audio mode is larger than that of the target loudspeaker in the left and right audio modes, the sound of the target loudspeaker can be further increased, the sound played by the loudspeaker is ensured to be heard by a user, and the audio experience of the user is improved.
In the embodiment of the application, after the noise value of the environment where the electronic equipment is located and the crowd information within the preset distance range of the electronic equipment are obtained, a target speaker to be operated in the electronic equipment, the target speaker sound-raising direction of the target speaker and the target volume of the target speaker are determined according to the noise value and the crowd information, so that the target speaker is controlled to operate in the target sound-raising direction and the target volume, and the volume of the target speaker is reduced under the condition that the movement direction of at least one person in the crowd is the direction towards the electronic equipment or the crowd increases; when the moving direction of each person in the crowd is the direction deviating from the electronic equipment or the number of people is reduced, the volume of the target speaker is maintained or the volume of the target speaker is increased, and when the noise value is larger than a first preset value and the number of people is zero, if the audio mode of the target speaker is a left-right channel audio mode, the audio mode of the target speaker is switched to be a mono audio mode. Therefore, the user can be ensured to hear the sound played by the loudspeaker, meanwhile, the crowd in the environment where the electronic equipment is located cannot hear the sound played by the loudspeaker, the privacy of the user is protected, and the sound and the audio mode of the loudspeaker are adjusted according to the crowd motion direction and the noise value of the environment where the electronic equipment is located, so that the audio experience of the user is improved.
It should be noted that, in the method for controlling a speaker according to the embodiment of the present application, the execution body may be a control device of the speaker, or a control module for executing the method for controlling a speaker in the control device of the speaker. In the embodiment of the present application, a method for controlling a speaker by using a speaker control device is taken as an example, and the speaker control device provided in the embodiment of the present application is described.
As shown in fig. 3, the embodiment of the application also discloses a control device of a speaker, which may include:
the acquisition module 10 is configured to acquire a noise value of an environment and crowd information within a preset distance range.
Alternatively, as shown in fig. 4, the acquisition module 10 may include:
and a sound information acquisition unit 11, configured to acquire sound information acquired by at least one microphone in the electronic device.
A noise value determination unit 12 for determining a noise value from at least one sound information.
The determining module 20 is configured to determine a target speaker, a target speaker direction, and a target volume according to the noise value and the crowd information.
The control module 30 is used for controlling the target loudspeaker to work in the target loudspeaker sound-raising direction and the target sound volume.
Alternatively, as shown in fig. 4, the crowd information includes the number of people, and the determining module 20 may include:
the first determining unit 21 is configured to determine that the target speaker is all speakers in the electronic device, that the speaker direction of the target speaker is all directions, and that the target volume of the target speaker is a first preset volume when the noise value is smaller than a first preset value and the number of people is zero.
A second determining unit 22, configured to determine that the target speaker is all speakers in the electronic device, the speaker direction of the target speaker is omnidirectional, and the target volume of the target speaker is a second preset volume when the noise value is greater than the first preset value and the number of people is zero; the second preset volume is larger than the first preset volume.
The third determining unit 23 is configured to determine that the target speaker is a speaker close to the user in the electronic device, the speaker direction of the target speaker is a first direction towards the user, and the target volume of the target speaker is a first preset volume when the noise value is smaller than a first preset value and the number of people is greater than zero.
And a fourth determining unit 24, configured to determine that the target speaker is a speaker close to the user in the electronic device, the speaker direction of the target speaker is a first direction towards the user, and the target volume of the target speaker is a second preset volume when the noise value is greater than the first preset value and the number of people is greater than zero.
Optionally, in the case that the number of people is greater than zero, the crowd information further includes a movement direction of each person in the crowd, and after the control module, as shown in fig. 4, the control device may further include:
the volume reduction module 40 is configured to reduce the volume of the target speaker in a case where the movement direction of at least one person in the crowd is a direction toward the electronic device or the crowd increases.
The volume increasing module 50 is configured to maintain the volume of the target speaker or increase the volume of the target speaker in a case where the movement direction of each person in the crowd is a direction away from the electronic device or the crowd is reduced.
Optionally, as shown in fig. 4, the control device may further include:
the audio mode switching module 60 is configured to switch the audio mode of the target speaker to a mono audio mode if the audio mode of the target speaker is a left-right channel audio mode if the noise value is greater than the first preset value and the number of people is zero.
In the embodiment of the application, after the noise value of the environment where the electronic equipment is located and the crowd information within the preset distance range of the electronic equipment are obtained, a target speaker to be operated in the electronic equipment, the target speaker sound-raising direction of the target speaker and the target volume of the target speaker are determined according to the noise value and the crowd information, so that the target speaker is controlled to operate in the target sound-raising direction and the target volume, and the volume of the target speaker is reduced under the condition that the movement direction of at least one person in the crowd is the direction towards the electronic equipment or the crowd increases; when the moving direction of each person in the crowd is the direction deviating from the electronic equipment or the number of people is reduced, the volume of the target speaker is maintained or the volume of the target speaker is increased, and when the noise value is larger than a first preset value and the number of people is zero, if the audio mode of the target speaker is a left-right channel audio mode, the audio mode of the target speaker is switched to be a mono audio mode. Therefore, the user can be ensured to hear the sound played by the loudspeaker, meanwhile, the crowd in the environment where the electronic equipment is located cannot hear the sound played by the loudspeaker, the privacy of the user is protected, and the sound and the audio mode of the loudspeaker are adjusted according to the crowd motion direction and the noise value of the environment where the electronic equipment is located, so that the audio experience of the user is improved.
The control device of the loudspeaker in the embodiment of the application can be a device, and can also be a component, an integrated circuit or a chip in the terminal. The device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a cell phone, tablet computer, notebook computer, palm computer, vehicle mounted electronic device, wearable device, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device may be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and embodiments of the present application are not limited in particular.
The control device of the speaker in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, and the embodiment of the present application is not limited specifically.
The control device of the loudspeaker provided by the embodiment of the application can realizeFIGS. 1 to 2The respective processes implemented by the method embodiments of (a) are not described herein in detail for avoiding repetition.
Optionally, as shown in fig. 5, an embodiment of the present application further provides an electronic device 500, including a speaker, a microphone, and a millimeter wave radar sensor, where the electronic device 500 further includes a processor 501, a memory 502, and a program or an instruction stored in the memory 502 and capable of running on the processor 501, where the program or the instruction when executed by the processor 501 implements each process of the foregoing speaker control method embodiment, and the same technical effects can be achieved, and will not be repeated herein. Wherein the number of speakers, microphones, and millimeter wave radar sensors may be greater than or equal to one.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
Fig. 6 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 600 includes, but is not limited to: radio frequency unit 601, network module 602, audio output unit 603 (including a microphone), input unit 604 (including a speaker), sensor 605 (including a millimeter wave radar sensor), display unit 606, user input unit 607, interface unit 608, memory 609, and processor 610.
Those skilled in the art will appreciate that the electronic device 600 may further include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 610 by a power management system to perform functions such as managing charge, discharge, and power consumption by the power management system. The electronic device structure shown in fig. 6 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
The processor 610 is configured to obtain a noise value of an environment and crowd information within a preset distance range;
determining a target loudspeaker, a target loudspeaker direction and a target volume according to the noise value and the clustered information;
and controlling the target loudspeaker to work in the target loudspeaker direction and the target volume.
In the embodiment of the application, after the noise value of the environment where the electronic equipment is located and the crowd information within the preset distance range of the electronic equipment are obtained, the target speaker to be operated in the electronic equipment, the target speaker direction of the target speaker and the target volume of the target speaker are determined according to the noise value and the crowd information, and then the target speaker is controlled to operate according to the target speaker direction and the target volume, so that a user can be ensured to hear the sound played by the speaker, and meanwhile, the crowd in the environment where the electronic equipment is located cannot hear the sound played by the speaker, the privacy of the user is protected, and the audio experience of the user is improved.
Optionally, the crowd information includes a number of people, and the processor 610 is further configured to:
under the condition that the noise value is smaller than a first preset value and the number of people is zero, determining that the target speakers are all speakers in the electronic equipment, the sound raising direction of the target speakers is all directions and the target volume of the target speakers is a first preset volume;
under the condition that the noise value is larger than the first preset value and the number of people is zero, determining that the target speakers are all speakers in the electronic equipment, the speaker direction of the target speakers is all directions and the target volume of the target speakers is a second preset volume; the second preset volume is larger than the first preset volume;
determining that the target speaker is a speaker close to a user in the electronic device, the speaker direction of the target speaker is a first direction towards the user, and the target volume of the target speaker is the first preset volume when the noise value is smaller than the first preset value and the number of people is larger than zero;
and under the condition that the noise value is larger than the first preset value and the number of people is larger than zero, determining that the target loudspeaker is a loudspeaker close to the user in the electronic equipment, the sound raising direction of the target loudspeaker is a first direction facing the user, and the target volume of the target loudspeaker is the second preset volume.
Optionally, in the case that the number of people is greater than zero, the crowd information further includes a motion direction of each person in the crowd, and after the processor 610 controls the target speaker to operate in the target speaker direction and the target volume, the processor 610 is further configured to:
decreasing the volume of the target speaker in case the direction of movement of at least one person in the crowd is a direction towards the electronic device or the number of persons increases;
and under the condition that the movement direction of each person in the crowd is away from the electronic equipment or the number of people is reduced, maintaining the volume of the target loudspeaker or increasing the volume of the target loudspeaker.
Optionally, the processor 610 is further configured to:
and if the noise value is larger than the first preset value and the number of people is zero, switching the audio mode of the target speaker to a mono audio mode if the audio mode of the target speaker is a left-right channel audio mode.
Optionally, the processor 610 is further configured to:
acquiring sound information acquired by at least one microphone in the electronic equipment;
the noise value is determined from the at least one sound information.
In the embodiment of the application, after the noise value of the environment where the electronic equipment is located and the crowd information within the preset distance range of the electronic equipment are obtained, a target speaker to be operated in the electronic equipment, the target speaker sound-raising direction of the target speaker and the target volume of the target speaker are determined according to the noise value and the crowd information, so that the target speaker is controlled to operate in the target sound-raising direction and the target volume, and the volume of the target speaker is reduced under the condition that the movement direction of at least one person in the crowd is the direction towards the electronic equipment or the crowd increases; when the moving direction of each person in the crowd is the direction deviating from the electronic equipment or the number of people is reduced, the volume of the target speaker is maintained or the volume of the target speaker is increased, and when the noise value is larger than a first preset value and the number of people is zero, if the audio mode of the target speaker is a left-right channel audio mode, the audio mode of the target speaker is switched to be a mono audio mode. Therefore, the user can be ensured to hear the sound played by the loudspeaker, meanwhile, the crowd in the environment where the electronic equipment is located cannot hear the sound played by the loudspeaker, the privacy of the user is protected, and the sound and the audio mode of the loudspeaker are adjusted according to the crowd motion direction and the noise value of the environment where the electronic equipment is located, so that the audio experience of the user is improved.
It should be understood that in an embodiment of the present application, the input unit 604 may include a graphics processor (Graphics Processing Unit, GPU) 6041 and a microphone 6042, and the graphics processor 6041 processes image data of still pictures or video obtained by an image capturing apparatus (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 607 includes a touch panel 6071 and other input devices 6072. The touch panel 6071 is also called a touch screen. The touch panel 6071 may include two parts of a touch detection device and a touch controller. Other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein. The memory 609 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 610 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 610.
The embodiment of the application also provides a readable storage medium, on which a program or an instruction is stored, which when executed by a processor, implements each process of the above-mentioned embodiment of the method for controlling a speaker, and can achieve the same technical effects, and in order to avoid repetition, the description is omitted here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium such as a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
The embodiment of the application further provides a chip, which comprises a processor and a communication interface, wherein the communication interface is coupled with the processor, and the processor is used for running programs or instructions to realize the processes of the embodiment of the control method of the loudspeaker, and the same technical effects can be achieved, so that repetition is avoided, and the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.

Claims (10)

1. A method of controlling a speaker, comprising:
acquiring noise values of the environment and crowd information within a preset distance range; the preset distance is determined according to the volume of the loudspeaker; the noise value is determined by a microphone; the crowd information is determined through a millimeter wave radar sensor; the crowd information comprises the number of people and the movement direction of each person in the crowd; the target speakers to be operated are a plurality of speakers; the electronic device includes the speaker, the microphone, and the millimeter wave radar sensor;
determining a target loudspeaker, a target loudspeaker direction and a target volume according to the noise value and the crowd information;
controlling the target loudspeaker to work in the target loudspeaker loudspeaking direction and the target volume;
reducing the volume of the target speaker when the number of people is greater than zero and the direction of movement of at least one person in the group of people is the direction towards the electronic device;
when the number of people is greater than zero and the motion direction of each person in the crowd is the direction away from the electronic equipment, maintaining the volume of the target speaker or increasing the volume of the target speaker;
wherein the microphone is a plurality of microphones, the noise value of acquisition environment includes:
the noise value of the environment is determined by the multi-microphone pick-up.
2. The control method according to claim 1, wherein the determining a target speaker, a target speaker direction, and a target volume according to the noise value and the crowd information includes:
under the condition that the noise value is smaller than a first preset value and the number of people is zero, determining that the target speakers are all speakers in the electronic equipment, the sound raising direction of the target speakers is all directions and the target volume of the target speakers is the first preset volume;
under the condition that the noise value is larger than the first preset value and the number of people is zero, determining that the target speakers are all speakers in the electronic equipment, the speaker direction of the target speakers is all directions and the target volume of the target speakers is a second preset volume; the second preset volume is larger than the first preset volume;
determining that the target speaker is a speaker close to a user in the electronic device, the speaker direction of the target speaker is a first direction towards the user, and the target volume of the target speaker is the first preset volume when the noise value is smaller than the first preset value and the number of people is larger than zero;
and under the condition that the noise value is larger than the first preset value and the number of people is larger than zero, determining that the target loudspeaker is a loudspeaker close to the user in the electronic equipment, the sound raising direction of the target loudspeaker is a first direction facing the user, and the target volume of the target loudspeaker is the second preset volume.
3. The control method according to claim 2, characterized by further comprising:
and if the noise value is larger than the first preset value and the number of people is zero, switching the audio mode of the target speaker to a mono audio mode if the audio mode of the target speaker is a left-right channel audio mode.
4. The control method according to claim 1, wherein the acquiring the noise value of the environment includes:
acquiring sound information acquired by at least one microphone in the electronic equipment;
the noise value is determined from the at least one sound information.
5. A control device for a speaker, comprising:
the acquisition module is used for acquiring the noise value of the environment and crowd information within a preset distance range; the preset distance is determined according to the volume of the loudspeaker; the noise value is determined by a microphone; the crowd information is determined through a millimeter wave radar sensor; the crowd information comprises the number of people and the movement direction of each person in the crowd; the target speakers to be operated are a plurality of speakers; the electronic device includes the speaker, the microphone, and the millimeter wave radar sensor;
the determining module is used for determining a target loudspeaker, a target loudspeaker raising direction and target volume according to the noise value and the crowd information;
the control module is used for controlling the target loudspeaker to work in the target loudspeaker direction and the target volume;
wherein, the microphone is a plurality of microphones, the acquisition module is still used for:
determining the noise value of the environment through multi-microphone pickup;
in the case where the number of persons is greater than zero, the control device further includes:
a volume reduction module for reducing the volume of the target speaker in the case that the movement direction of at least one person in the crowd is the direction toward the electronic device;
and the volume increasing module is used for maintaining the volume of the target loudspeaker or increasing the volume of the target loudspeaker under the condition that the movement direction of each person in the crowd is the direction deviating from the electronic equipment.
6. The control device of claim 5, wherein the determination module comprises:
the first determining unit is used for determining that the target speakers are all speakers in the electronic equipment, the speaker direction of the target speakers is all directions and the target volume of the target speakers is a first preset volume when the noise value is smaller than a first preset value and the number of people is zero;
the second determining unit is used for determining that the target speakers are all speakers in the electronic equipment, the sound raising direction of the target speakers is all directions and the target volume of the target speakers is a second preset volume when the noise value is larger than the first preset value and the number of people is zero; the second preset volume is larger than the first preset volume;
a third determining unit, configured to determine that, when the noise value is smaller than the first preset value and the number of people is greater than zero, the target speaker is a speaker close to a user in the electronic device, a speaker direction of the target speaker is a first direction towards the user, and a target volume of the target speaker is the first preset volume;
and a fourth determining unit, configured to determine that, when the noise value is greater than the first preset value and the number of people is greater than zero, the target speaker is a speaker close to the user in the electronic device, a speaker direction of the target speaker is a first direction towards the user, and a target volume of the target speaker is the second preset volume.
7. The control device according to claim 6, characterized by further comprising:
and the audio mode switching module is used for switching the audio mode of the target loudspeaker to be a mono audio mode if the audio mode of the target loudspeaker is a left-right channel audio mode under the condition that the noise value is larger than the first preset value and the number of people is zero.
8. The control device of claim 5, wherein the acquisition module comprises:
the sound information acquisition unit is used for acquiring sound information acquired by at least one microphone in the electronic equipment;
and the noise value determining unit is used for determining the noise value according to the at least one piece of sound information.
9. An electronic device comprising a loudspeaker, a microphone and a millimeter wave radar sensor, the electronic device further comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, which program or instructions when executed by the processor implement the steps of the method of controlling a loudspeaker according to any one of claims 1-4.
10. A readable storage medium, characterized in that the readable storage medium has stored thereon a program or instructions which, when executed by a processor, implement the steps of the method of controlling a loudspeaker according to any of claims 1-4.
CN202011194259.6A 2020-10-30 2020-10-30 Speaker control method, control device and electronic equipment Active CN112291672B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011194259.6A CN112291672B (en) 2020-10-30 2020-10-30 Speaker control method, control device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011194259.6A CN112291672B (en) 2020-10-30 2020-10-30 Speaker control method, control device and electronic equipment

Publications (2)

Publication Number Publication Date
CN112291672A CN112291672A (en) 2021-01-29
CN112291672B true CN112291672B (en) 2023-09-01

Family

ID=74353781

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011194259.6A Active CN112291672B (en) 2020-10-30 2020-10-30 Speaker control method, control device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112291672B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113055785B (en) * 2021-03-29 2022-05-27 珠海格力电器股份有限公司 Volume adjusting method, system and device
CN113746982B (en) * 2021-08-25 2023-02-28 维沃移动通信(杭州)有限公司 Audio playing control method and device, electronic equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103945062A (en) * 2014-04-16 2014-07-23 华为技术有限公司 User terminal volume adjusting method, device and terminal
CN107135308A (en) * 2017-04-26 2017-09-05 努比亚技术有限公司 Multimedia file plays audio control method, mobile terminal and readable storage medium storing program for executing
CN107318067A (en) * 2017-05-24 2017-11-03 广东小天才科技有限公司 The audio oriented player method and device of a kind of terminal device
CN108804180A (en) * 2018-05-25 2018-11-13 Oppo广东移动通信有限公司 Display methods, device, terminal and the storage medium of user interface

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9685926B2 (en) * 2014-12-10 2017-06-20 Ebay Inc. Intelligent audio output devices
US10271132B2 (en) * 2016-11-28 2019-04-23 Motorola Solutions, Inc. Method to dynamically change the directional speakers audio beam and level based on the end user activity

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103945062A (en) * 2014-04-16 2014-07-23 华为技术有限公司 User terminal volume adjusting method, device and terminal
CN107135308A (en) * 2017-04-26 2017-09-05 努比亚技术有限公司 Multimedia file plays audio control method, mobile terminal and readable storage medium storing program for executing
CN107318067A (en) * 2017-05-24 2017-11-03 广东小天才科技有限公司 The audio oriented player method and device of a kind of terminal device
CN108804180A (en) * 2018-05-25 2018-11-13 Oppo广东移动通信有限公司 Display methods, device, terminal and the storage medium of user interface

Also Published As

Publication number Publication date
CN112291672A (en) 2021-01-29

Similar Documents

Publication Publication Date Title
EP2957039B1 (en) Portable terminal for controlling hearing aid and method therefor
WO2018045536A1 (en) Sound signal processing method, terminal, and headphones
CN111370018B (en) Audio data processing method, electronic device and medium
CN111402913B (en) Noise reduction method, device, equipment and storage medium
CN109616135B (en) Audio processing method, device and storage medium
CN110870201A (en) Audio signal adjusting method and device, storage medium and terminal
CN111445901B (en) Audio data acquisition method and device, electronic equipment and storage medium
CN111696570B (en) Voice signal processing method, device, equipment and storage medium
CN111638779A (en) Audio playing control method and device, electronic equipment and readable storage medium
CN109062535B (en) Sound production control method and device, electronic device and computer readable medium
CN111562896B (en) Screen projection method and electronic equipment
CN111863020B (en) Voice signal processing method, device, equipment and storage medium
CN112291672B (en) Speaker control method, control device and electronic equipment
CN111033614B (en) Volume adjusting method and device, mobile terminal and storage medium
CN111477243B (en) Audio signal processing method and electronic equipment
CN111613213B (en) Audio classification method, device, equipment and storage medium
CN113542963B (en) Sound mode control method, device, electronic equipment and storage medium
CN108900688B (en) Sound production control method and device, electronic device and computer readable medium
WO2021098698A1 (en) Audio playback method and terminal device
CN112929739A (en) Sound production control method and device, electronic equipment and storage medium
CN105244037B (en) Audio signal processing method and device
CN109144461B (en) Sound production control method and device, electronic device and computer readable medium
CN113766385B (en) Earphone noise reduction method and device
CN112750449B (en) Echo cancellation method, device, terminal, server and storage medium
CN109587603B (en) Volume control method, device and storage medium

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