CN116204152A - Control method, control device, terminal and storage medium - Google Patents

Control method, control device, terminal and storage medium Download PDF

Info

Publication number
CN116204152A
CN116204152A CN202310214692.9A CN202310214692A CN116204152A CN 116204152 A CN116204152 A CN 116204152A CN 202310214692 A CN202310214692 A CN 202310214692A CN 116204152 A CN116204152 A CN 116204152A
Authority
CN
China
Prior art keywords
target
current user
speaker
loudspeaker
control method
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310214692.9A
Other languages
Chinese (zh)
Inventor
胡涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Netease Cloud Music Technology Co Ltd
Original Assignee
Hangzhou Netease Cloud Music Technology 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 Hangzhou Netease Cloud Music Technology Co Ltd filed Critical Hangzhou Netease Cloud Music Technology Co Ltd
Priority to CN202310214692.9A priority Critical patent/CN116204152A/en
Publication of CN116204152A publication Critical patent/CN116204152A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation
    • G06V40/166Detection; Localisation; Normalisation using acquisition arrangements
    • 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
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Engineering & Computer Science (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The application discloses a control method, a control device, a control terminal and a control storage medium, wherein the control method comprises the following steps: acquiring target equipment; determining a target placement mode corresponding to target equipment; under the target placement mode, acquiring a target position corresponding to the current user; and controlling the output volume of the loudspeaker in the target equipment based on the target position corresponding to the current user. According to the invention, the optimal placement mode (namely, the target placement mode) of the target equipment is obtained through the established database, and then the output volume of the loudspeaker in the target equipment is controlled by combining the positions of the user and the target equipment, so that the user obtains the optimal output volume of the loudspeaker, and the sound effect and the user experience are improved.

Description

Control method, control device, terminal and storage medium
Technical Field
The present invention relates to the field of computers, and in particular, to a control method, a control device, a terminal, and a storage medium.
Background
Many devices are now provided with speakers, such as mobile phones, tablet computers, etc., through which multimedia resources are played.
At present, most devices are standardized, the hardware configuration, the number and the positions of speakers are fixed, and when a user plays multimedia resources, the output volume of the speakers is adjusted only through a volume adjusting button on the device.
However, the optimum output volume of the speaker cannot be obtained by the above method.
Disclosure of Invention
The main objective of the present application is to provide a control method, a device, a terminal and a storage medium, so as to solve the problem that the existing method cannot obtain the optimal output volume of a speaker.
To achieve the above object, in a first aspect, the present application provides a control method, including:
acquiring target equipment;
determining a target placement mode corresponding to target equipment;
under a target placement mode, a target position corresponding to a current user is obtained, wherein the target position is used for representing the position of a central point of a face of the current user in a screen of target equipment;
and controlling the output volume of the loudspeaker in the target equipment based on the target position corresponding to the current user.
In one possible implementation manner, determining a target placement manner corresponding to the target device includes:
acquiring the position information of a loudspeaker in the target equipment from an established database;
determining a relative position of the speaker and the target device based on the positional information of the speaker;
and determining a target placement mode corresponding to the target equipment based on the relative positions of the loudspeaker and the target equipment.
In one possible implementation, determining a relative position of the speaker and the target device based on the speaker's position information includes:
counting the number of the loudspeakers according to the position information of the loudspeakers;
based on the location information and the number of speakers, a relative location of the speakers to the target device is determined.
In one possible implementation manner, in a target placement manner, acquiring a target position corresponding to a current user includes:
under the target placement mode, acquiring an image of a current user by using target equipment;
performing face recognition on the image of the current user, and determining the center point of the face of the current user;
the image of the current user is set in the screen of the target device, and the target position is calculated based on the reference point of the target device and the center point of the face of the current user.
In one possible implementation, controlling the output volume of a speaker in a target device based on a target location corresponding to a current user includes:
calculating a volume adjustment parameter of the speaker based on the target position;
the output volume of the speaker is determined based on the volume adjustment parameter of the speaker and the actual output volume of the target device.
In one possible implementation, calculating a volume adjustment parameter of a speaker based on a target position includes:
calculating the relative distance ratio of the current user and the loudspeaker through the target position and the relative position;
and calculating the volume adjustment parameter of the loudspeaker through the relative distance ratio and the number of the loudspeakers.
In one possible implementation manner, after determining the target placement mode corresponding to the target device based on the relative position of the speaker and the target device, the method further includes:
and generating prompt information, wherein the prompt information prompts a user to put the target equipment in a target putting mode.
In a second aspect, an embodiment of the present invention provides a control apparatus, including:
the first acquisition module is used for acquiring target equipment;
the placement mode determining module is used for determining a target placement mode corresponding to the target equipment;
the second acquisition module is used for acquiring a target position corresponding to the current user in a target placement mode, wherein the target position is used for representing the position of the center point of the face of the current user in the screen of the target device;
and the volume control module is used for controlling the output volume of the loudspeaker in the target equipment based on the target position corresponding to the current user.
In a third aspect, an embodiment of the present invention provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor implementing the steps of any one of the control methods described above when executing the computer program.
In a fourth aspect, embodiments of the present invention provide a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of any of the control methods described above.
The embodiment of the invention provides a control method, a control device, a terminal and a storage medium, comprising the following steps: and acquiring target equipment, determining a target placement mode corresponding to the target equipment, acquiring a target position corresponding to the current user in the target placement mode, and controlling the output volume of a loudspeaker in the target equipment based on the target position corresponding to the current user. According to the invention, the optimal placement mode (namely, the target placement mode) of the target equipment is obtained through the established database, and then the output volume of the loudspeaker in the target equipment is controlled by combining the positions of the user and the target equipment, so that the user obtains the optimal output volume of the loudspeaker, and the sound effect and the user experience are improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, are included to provide a further understanding of the application and to provide a further understanding of the application with regard to the other features, objects and advantages of the application. The drawings of the illustrative embodiments of the present application and their descriptions are for the purpose of illustrating the present application and are not to be construed as unduly limiting the present application. In the drawings:
fig. 1 is a schematic diagram of an application scenario of a control method provided in an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a control method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a tablet computer according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a relative position between a tablet pc and a current user according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a control device according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a terminal according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein.
It should be understood that, in various embodiments of the present invention, the sequence number of each process does not mean that the execution sequence of each process should be determined by its functions and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
It should be understood that in the present invention, "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements that are expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that in the present invention, "plurality" means two or more. "and/or" is merely an association relationship describing an association object, and means that three relationships may exist, for example, and/or B may mean: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship. "comprising A, B and C", "comprising A, B, C" means that all three of A, B, C comprise, "comprising A, B or C" means that one of the three comprises A, B, C, and "comprising A, B and/or C" means that any 1 or any 2 or 3 of the three comprises A, B, C.
It should be understood that in the present invention, "B corresponding to a", "a corresponding to B", or "B corresponding to a" means that B is associated with a, from which B can be determined. Determining B from a does not mean determining B from a alone, but may also determine B from a and/or other information. The matching of A and B is that the similarity of A and B is larger than or equal to a preset threshold value.
As used herein, "if" may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to detection" depending on the context.
The data related to the disclosure may be data authorized by a user or fully authorized by each party, and the collection, transmission, use, etc. of the data all conform to the requirements of national related laws and regulations, and the embodiments of the disclosure may be combined with each other.
The technical scheme of the invention is described in detail below by specific examples. The following embodiments may be combined with each other, and some embodiments may not be repeated for the same or similar concepts or processes.
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the following description will be made by way of specific embodiments with reference to the accompanying drawings.
Many devices are now provided with speakers, such as mobile phones, tablet computers, etc., through which multimedia resources are played.
Taking a tablet computer as an example, when the tablet computer externally plays songs, the tablet computer generally sounds through a built-in loudspeaker of the tablet computer, and a user defaults to use the tablet computer by a vertical screen. However, because the types of the tablet computers are different, specifications of the tablet computers are different, such as hardware configuration of the tablet computers and positions of speakers in the tablet computers are different, and in particular, if some tablet computers have only one speaker, some tablet computers have two or more speakers.
When the tablet personal computer plays the current song, the playing interface is displayed by vertical screen by default, the user is used to place equipment by vertical screen, and meanwhile, the relative positions of the tablet personal computer, the loudspeaker and the user are not subjected to targeted optimization, so that the listening experience of the user is not necessarily the best effect.
Therefore, based on the above-mentioned problems, the present application proposes a control method.
Referring to fig. 1, fig. 1 is a schematic diagram of an application scenario of a control method according to an embodiment of the present application. As shown in fig. 1, a client 102 communicates with a server 104, the client 102 acquires a target device, then transmits the target device to the server 104, the server 104 determines a target placement mode corresponding to the target device based on the target device and an established database, and acquires a target position corresponding to a current user in the target placement mode, wherein the target position is used for representing the position of a center point of a face of the current user in a screen of the target device; and controlling the output volume of the loudspeaker in the target equipment based on the target position corresponding to the current user.
Wherein the client 102 and the server 104 may communicate by any communication means, including but not limited to network communication, and the network may include but is not limited to: a wired network, a wireless network, wherein the wired network comprises: local area networks, metropolitan area networks, and wide area networks, the wireless network comprising: bluetooth, WIFI, and other networks that enable wireless communications. Wherein the client 102 includes, but is not limited to, at least one of: cell phones (e.g., android cell phones, iOS cell phones, etc.), notebook computers, tablet computers, palm computers, MIDs (Mobile Internet Devices ), PADs, desktop computers, smart televisions, etc. The server 104 may be a field server or a remote server, where the field server and the remote server may be implemented as separate servers or a service cluster formed by multiple servers. The above is merely an example, and is not limited in any way in the present embodiment.
Referring to fig. 2, fig. 2 is a flow chart of a control method according to an embodiment of the present application.
As shown in fig. 2, the method is applied to the server 104 shown in fig. 1, and includes the following steps:
step S201: and acquiring the target equipment.
The target device is a device with an internal or external speaker, such as a tablet computer, a mobile phone, a speaker and the like.
The model of the speaker is matched with the model or number of the target device, which is not particularly limited herein, and can be adjusted according to the device requirement. For example, some tablet computers have four speakers built in, and the four speakers are the same model or some of them are different.
Step S202: and determining a target placement mode corresponding to the target equipment.
Since the target device is generally rectangular, the placement at the target device generally includes two types, including placement along the lateral direction (screen) of the length of the target device and placement along the width of the target device.
The method comprises the steps of determining a target placement mode corresponding to target equipment based on the target equipment and an established database, acquiring position information of a loudspeaker in the target equipment from the established database, determining the relative position of the loudspeaker and the target equipment based on the position information of the loudspeaker, and determining the target placement mode corresponding to the target equipment based on the relative position of the loudspeaker and the target equipment.
The established database includes standard information of various target devices, such as names, models, lengths, widths, position coordinates of cameras, position coordinates of speakers and the like of the target devices.
Wherein determining the relative position of the speaker and the target device based on the positional information of the speaker comprises: the number of the speakers is counted through the position information of the speakers, and then the relative positions of the speakers and the target device are determined based on the position information and the number of the speakers.
The tablet personal computer provided with the target device stores standard information of the tablet personal computer in the established database, so that the established database stores labeling information of the tablet personal computer in the following mode. Optionally, referring to fig. 3, the length of the tablet computer is L, the width of the tablet computer is W, the upper left vertex of the camera of the tablet computer is taken as a reference point a (0, 0), and the speaker coordinates of the tablet computer are a (0, x 1), C (0, x 2), B (L, x 1), and D (L, x 2), respectively, and the upper right vertex B (L, 0), the lower left vertex C (0, W), and the lower right vertex D (L, W) of the tablet computer.
After the established database is consulted, the position information of the loudspeaker of the tablet computer is obtained, including a (0, x 1), c (0, x 2), b (L, x 1) and d (L, x 2), and the position of the loudspeaker relative to the tablet computer, namely the relative position of the loudspeaker and the target equipment can be deduced through the position coordinates and the number of the loudspeaker, because the reference point A (0, 0) is obtained, the length of the tablet computer is L, and the width is W.
After the position information of the speakers is obtained as a (0, x 1), c (0, x 2), b (L, x 1) and d (L, x 2), the number of the speakers can be obtained as four by a statistical method. The number of the acquired speakers can be four in a judging mode, and the specific judging mode is as follows: the coordinates are (0, x 1), (0, x 2) and (L, x 1), (L, x 2) are >0, and two speakers are arranged on two sides of the tablet personal computer, namely four speakers.
When the location information and number of speakers are determined, the relative locations of the speakers and the target device may be determined. For example, the position a (0, x 1) of the speaker and the reference point a (0, 0) can be used to determine the relative position of the speaker and the tablet pc by knowing that the speaker is located below x1 from the reference point, i.e. the speaker is located on the upper left side of the tablet pc. The relative positions of the other speakers and the tablet personal computer can be determined in the above manner, and the description is omitted here.
The relative positions of all the speakers of the tablet personal computer and the tablet personal computer are determined in the mode, namely, two speakers are arranged on two sides of the tablet personal computer, and the speakers on the two sides are symmetrically arranged.
Then, a prompt message can be generated, wherein the prompt message user prompts that the target equipment is placed in a target placement mode. Specifically, the display interface of the tablet personal computer prompts the current user to put the tablet personal computer on a horizontal screen, and the target putting mode of the tablet personal computer is obtained.
Step S203: and under the target placement mode, acquiring a target position corresponding to the current user.
The target position is used for representing the position of the central point of the face of the current user in the screen of the target device. Taking the target device as a tablet computer as an example, in connection with fig. 4, the center point of the face of the current user is at a position f (x, y) in the screen of the tablet computer.
Aiming at the situation that the target position corresponding to the current user is acquired in the target placement mode, the target device is required to acquire the image of the current user in the target placement mode, then face recognition is carried out on the image of the current user, the center point of the face of the current user is determined, the image of the current user is set in the screen of the target device, and the target position is calculated based on the reference point of the target device and the center point of the face of the current user.
In the embodiment, after the target device is taken as the tablet personal computer and the target placing mode of the tablet personal computer is obtained as the horizontal screen placing, the tablet personal computer is firstly placed on the horizontal screen. And then, the image of the current user can be acquired through the camera of the tablet personal computer.
After the image of the current user is obtained, a face recognition algorithm set in the tablet personal computer can be adopted to carry out face recognition on the image, or the image is sent to other servers or terminals to carry out face recognition so as to determine the center point f of the face of the current user.
After the center point f of the face of the current user is identified, an image carrying the center point f can be arranged in a screen of the tablet personal computer, and then the coordinates (x, y) of the center point f, namely the position (namely the target position) of the current user relative to the tablet personal computer, are calculated based on the reference point A (0, 0) and the center point f.
Step S204: and controlling the output volume of the loudspeaker in the target equipment based on the target position corresponding to the current user.
For controlling the output volume of the speaker in the target device based on the target position corresponding to the current user, the volume adjustment parameter of the speaker needs to be calculated based on the target position, and then the output volume of the speaker is determined based on the volume adjustment parameter of the speaker and the actual output volume of the target device.
Wherein calculating the volume adjustment parameter of the speaker based on the target position includes: and calculating the relative distance ratio of the current user and the loudspeaker through the target position and the relative position, and then calculating the volume adjustment parameter of the loudspeaker through the relative distance ratio and the number of the loudspeakers.
Based on the above embodiment, after the target position f (x, y) and the relative positions of the speakers with respect to the tablet pc are obtained, the relative distance ratio of each speaker to the current user may be calculated, specifically,
the relative distance ratio d1 of the current user from the speaker on the upper left side is:
Figure BDA0004115042810000091
the relative distance ratio d2 of the current user to the speaker on the upper right side is:
Figure BDA0004115042810000101
the relative distance ratio d3 of the current user from the speaker on the lower left side is:
Figure BDA0004115042810000102
the relative distance ratio d3 of the current user from the speaker on the lower right side is:
Figure BDA0004115042810000103
after calculating the relative distance ratio between each speaker and the current user, the average value of the distances between the current user and the speakers can be calculated by the relative distance ratio and the number n of the speakers, and the average value is specifically as follows:
Figure BDA0004115042810000104
then, the volume adjustment parameter of each speaker can be calculated through the relative distance ratio of each speaker to the current user and the average value of the distances between the current user and the speakers, and the volume adjustment parameter is specifically as follows:
the volume adjustment parameters of the speaker on the upper left side are: s is(s) 1 =d 1 /d avg
The volume adjustment parameters of the speaker on the upper right side are: s is(s) 2 =d 2 /d avg
The volume adjustment parameters of the speaker at the lower left side are: s is(s) 3 =d 3 /d avg
The volume adjustment parameters of the speaker at the lower right side are: s is(s) 4 =d 4 /d avg
After calculating the volume adjustment parameter of each speaker, the volume adjustment parameter of each speaker and the actual output volume V of the target device can be used Original The output volume of each speaker is determined and calculated as follows:
V n =V Original *s n
the output volume of the speaker on the upper left side is: v (V) 1 =V Original *s 1
The output volume of the speaker on the upper right side is: v (V) 2 =V original *s 2
The output volume of the speaker on the lower left side is: v (V) 3 =V Original *s 3
The output volume of the speaker on the lower right side is: v (V) 4 =V Original * 4
The embodiment of the invention provides a control method, which comprises the following steps: and acquiring target equipment, determining a target placement mode corresponding to the target equipment, acquiring a target position corresponding to the current user in the target placement mode, and controlling the output volume of a loudspeaker in the target equipment based on the target position corresponding to the current user. According to the invention, the optimal placement mode (namely, the target placement mode) of the target equipment is obtained through the established database, and then the output volume of the loudspeaker in the target equipment is controlled by combining the positions of the user and the target equipment, so that the user obtains the optimal output volume of the loudspeaker, and the sound effect and the user experience are improved.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present invention.
The following are device embodiments of the invention, for details not described in detail therein, reference may be made to the corresponding method embodiments described above.
Fig. 5 shows a schematic structural diagram of a control device according to an embodiment of the present invention, and for convenience of explanation, only a portion related to the embodiment of the present invention is shown, and the control device includes a first obtaining module 501, a placement mode determining module 502, a second obtaining module 503, and a volume control module 504, which are specifically as follows:
a first obtaining module 501, configured to obtain a target device;
the placement mode determining module 502 is configured to determine a target placement mode corresponding to the target device;
a second obtaining module 503, configured to obtain, in a target placement manner, a target position corresponding to the current user, where the target position is used to represent a position of a center point of a face of the current user in a screen of the target device;
and the volume control module 504 is used for controlling the output volume of the loudspeaker in the target device based on the target position corresponding to the current user.
In one possible implementation, the placement determination module 502 is further configured to obtain location information of a speaker in the target device from an established database;
determining a relative position of the speaker and the target device based on the positional information of the speaker;
and determining a target placement mode corresponding to the target equipment based on the relative positions of the loudspeaker and the target equipment.
In one possible implementation, the placement mode determining module 502 is further configured to count the number of speakers according to the location information of the speakers;
based on the location information and the number of speakers, a relative location of the speakers to the target device is determined.
In a possible implementation manner, the second obtaining module 503 is further configured to obtain, in a target placement manner, an image of the current user using the target device;
performing face recognition on the image of the current user, and determining the center point of the face of the current user;
the image of the current user is set in the screen of the target device, and the target position is calculated based on the reference point of the target device and the center point of the face of the current user.
In one possible implementation, the volume control module 504 is further configured to calculate a volume adjustment parameter of the speaker based on the target location;
the output volume of the speaker is determined based on the volume adjustment parameter of the speaker and the actual output volume of the target device.
In one possible implementation, the volume control module 504 is further configured to calculate a relative distance ratio of the current user to the speaker from the target location and the relative location;
and calculating the volume adjustment parameter of the loudspeaker through the relative distance ratio and the number of the loudspeakers.
In a possible implementation manner, the placement manner determining module 502 further includes a prompt module, where the prompt module is configured to generate prompt information, and the prompt information user prompts that the target device is placed in the target placement manner.
Fig. 6 is a schematic diagram of a terminal according to an embodiment of the present invention. As shown in fig. 6, the terminal 6 of this embodiment includes: a processor 601, a memory 602, and a computer program 603 stored in the memory 602 and executable on the processor 601. The steps of the various control method embodiments described above, such as steps 201 to 204 shown in fig. 2, are implemented when the processor 601 executes the computer program 603. Alternatively, the processor 601 may perform the functions of the modules/units in the respective control device embodiments described above, such as the functions of the modules/units 501 to 504 shown in fig. 5, when executing the computer program 603.
The present invention also provides a readable storage medium having stored therein a computer program for implementing the control method provided by the above-described various embodiments when the computer program is executed by a processor.
The readable storage medium may be a computer storage medium or a communication medium. Communication media includes any medium that facilitates transfer of a computer program from one place to another. Computer storage media can be any available media that can be accessed by a general purpose or special purpose computer. For example, a readable storage medium is coupled to the processor such that the processor can read information from, and write information to, the readable storage medium. In the alternative, the readable storage medium may be integral to the processor. The processor and the readable storage medium may reside in an application specific integrated circuit (Application Specific Integrated Circuits, ASIC for short). In addition, the ASIC may reside in a user device. The processor and the readable storage medium may reside as discrete components in a communication device. The readable storage medium may be read-only memory (ROM), random-access memory (RAM), CD-ROMs, magnetic tape, floppy disk, optical data storage device, etc.
The present invention also provides a program product comprising execution instructions stored in a readable storage medium. The at least one processor of the apparatus may read the execution instructions from the readable storage medium, and execution of the execution instructions by the at least one processor causes the apparatus to implement the control methods provided by the various embodiments described above.
In the above embodiment of the apparatus, it should be understood that the processor may be a central processing unit (english: central Processing Unit, abbreviated as CPU), or may be other general purpose processors, digital signal processors (english: digital Signal Processor, abbreviated as DSP), application specific integrated circuits (english: application Specific Integrated Circuit, abbreviated as ASIC), or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in a processor for execution.
The above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A control method, characterized by comprising:
acquiring target equipment;
determining a target placement mode corresponding to the target equipment;
under the target placement mode, a target position corresponding to the current user is obtained, wherein the target position is used for representing the position of the center point of the face of the current user in the screen of the target device;
and controlling the output volume of a loudspeaker in the target equipment based on the target position corresponding to the current user.
2. The control method of claim 1, wherein the determining the target placement mode corresponding to the target device includes:
acquiring the position information of a loudspeaker in the target equipment from an established database;
determining a relative position of the speaker and the target device based on the positional information of the speaker;
and determining a target placement mode corresponding to the target equipment based on the relative position of the loudspeaker and the target equipment.
3. The control method of claim 2, wherein the determining the relative position of the speaker and the target device based on the positional information of the speaker comprises:
counting the number of the loudspeakers according to the position information of the loudspeakers;
based on the location information and the number of speakers, a relative location of the speakers and the target device is determined.
4. The control method of claim 1, wherein the obtaining, in the target placement manner, the target position corresponding to the current user includes:
under the target placement mode, acquiring an image of the current user by using the target equipment;
performing face recognition on the image of the current user, and determining a center point of the face of the current user;
and setting the image of the current user in a screen of the target device, and calculating the target position based on the reference point of the target device and the center point of the face of the current user.
5. The control method according to claim 2, wherein the controlling the output volume of the speaker in the target device based on the target position corresponding to the current user includes:
calculating a volume adjustment parameter of the speaker based on the target position;
and determining the output volume of the loudspeaker based on the volume adjustment parameter of the loudspeaker and the actual output volume of the target device.
6. The control method of claim 5, wherein calculating the volume adjustment parameter of the speaker based on the target position comprises:
calculating the relative distance ratio of the current user and the loudspeaker through the target position and the relative position;
and calculating the volume adjustment parameter of the loudspeaker through the relative distance ratio and the number of the loudspeakers.
7. The control method according to claim 2, wherein after determining the target placement mode corresponding to the target device based on the relative positions of the speaker and the target device, the control method further comprises:
and generating prompt information, wherein the prompt information prompts the user to put the target equipment in the target putting mode.
8. A control apparatus, characterized by comprising:
the first acquisition module is used for acquiring target equipment;
the placement mode determining module is used for determining a target placement mode corresponding to the target equipment;
the second acquisition module is used for acquiring a target position corresponding to the current user in the target placement mode, wherein the target position is used for representing the position of the center point of the face of the current user in the screen of the target device;
and the volume control module is used for controlling the output volume of the loudspeaker in the target equipment based on the target position corresponding to the current user.
9. A terminal comprising a memory and one or more processors communicatively coupled to the memory;
stored in the memory are instructions executable by the one or more processors to cause the one or more processors to implement the control method of any one of claims 1 to 7.
10. A computer-readable storage medium, characterized by comprising a program or instructions which, when run on a computer, implement the control method of any one of claims 1 to 7.
CN202310214692.9A 2023-02-28 2023-02-28 Control method, control device, terminal and storage medium Pending CN116204152A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310214692.9A CN116204152A (en) 2023-02-28 2023-02-28 Control method, control device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310214692.9A CN116204152A (en) 2023-02-28 2023-02-28 Control method, control device, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN116204152A true CN116204152A (en) 2023-06-02

Family

ID=86511028

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310214692.9A Pending CN116204152A (en) 2023-02-28 2023-02-28 Control method, control device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN116204152A (en)

Similar Documents

Publication Publication Date Title
CN108196820B (en) Method and apparatus for adjusting play parameter
WO2018058899A1 (en) Sound volume adjusting method and apparatus of intelligent terminal
WO2017166603A1 (en) Sound quality adjustment method, terminal, electronic device, and non-volatile computer storage medium
EP3846020A1 (en) Sound effect adjusting method and apparatus, electronic device, and storage medium
CN110211578B (en) Sound box control method, device and equipment
CN112334978A (en) Electronic device supporting personalized device connection and method thereof
CN110809214A (en) Audio playing method, audio playing device and terminal equipment
CN113296728A (en) Audio playing method and device, electronic equipment and storage medium
KR20200124948A (en) Electronic device and Method of controlling thereof
CN107404587B (en) Audio playing control method, audio playing control device and mobile terminal
CN106597502B (en) Height above sea level determines method and device
CN113709629A (en) Frequency response parameter adjusting method, device, equipment and storage medium
CN111653284B (en) Interaction and identification method, device, terminal equipment and computer storage medium
CN110837557B (en) Abstract generation method, device, equipment and medium
CN111552452A (en) Method, apparatus and storage medium for matching audio output parameters
CN116204152A (en) Control method, control device, terminal and storage medium
CN114040319B (en) Method, device, equipment and medium for optimizing playback quality of terminal equipment
CN115955643A (en) Hearing aid fitting method, device, equipment, medium and program product
CN112307161B (en) Method and apparatus for playing audio
CN114358102A (en) Data classification method, device, equipment and storage medium
CN112333531A (en) Audio data playing method and device and readable storage medium
CN111179984A (en) Audio data processing method and device and terminal equipment
CN113873325B (en) Sound processing method, device, equipment and computer readable storage medium
CN112767965B (en) Method, system, medium, and service/terminal for generating/applying noise recognition model
CN114630240B (en) Direction filter generation method, audio processing 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