Speaker control method, apparatus, device and readable storage medium
The speaker control method in terminal devices addresses the issue of audio interference and personal information leakage by using reverse phase cancelling sound waves to cancel sound fields in prohibited areas, enhancing audio directivity and privacy.
Patent Information
- Application Number
- JP2023532444
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2022-12-21
- Filing Date
- 2023-04-10
- Publication Date
- 2025-04-08
- Estimated Expiration
- 2043-04-10
AI Technical Summary
Speakers in terminal devices often cause interference with non-target users and leak personal information of target users when they openly output audio to the surroundings.
A speaker control method that detects audio output events, determines a prohibited user sensing area, and controls the corresponding speaker to output reverse phase cancelling sound waves based on specific control parameters, thereby cancelling sound fields in prohibited areas.
Improves the directivity of terminal audio output, prevents personal information leakage, and reduces audio interference with unrelated users by effectively cancelling sound fields in prohibited areas.
Smart Images

Figure 0007659063000001 
Figure 0007659063000002 
Figure 0007659063000003
Abstract
Description
[Technical field]
[0001] The present invention relates to the field of acoustic technology, and in particular to a speaker control method, apparatus, device and readable storage medium. [Background technology]
[0002] Nowadays, with the rapid development of technology, various kinds of terminal devices are widely used in users' daily life and work. Such terminal devices are usually equipped with speakers for audio output, and when the terminal device outputs audio from the speakers, sound waves are propagated to the surroundings, forming a sound field around the terminal device.
[0003] However, in real situations, there may be cases where only target users in specific locations around the terminal device need to receive the output audio, and if the speaker outputs audio openly around the terminal device, it may cause interference to users other than the target user or cause the target user's personal information to be leaked. Summary of the Invention [Problem to be solved by the invention]
[0004] In order to solve the problem that at least in the related art, when a speaker outputs audio to a device in an open manner to the surroundings, it may cause interference to non-target users or leak personal information of a target user, the embodiments of the present invention provide a speaker control method, an apparatus, a device and a readable storage medium. [Means for solving the problem]
[0005] In order to solve the above technical problems, a first aspect of an embodiment of the present invention provides a speaker control method applicable to a terminal device, the method including: when an audio output event is detected, obtaining a prohibited user sensing area corresponding to a target audio signal, determining a corresponding first speaker based on the prohibited user sensing area, determining a corresponding inverse phase cancellation sound wave of the target audio signal, generating a corresponding first control parameter based on characteristic attributes of the inverse phase cancellation sound wave, and controlling the first speaker to output the inverse phase cancellation sound wave based on the first control parameter, wherein the target audio signal is an audio signal output in response to the audio output event.
[0006] In a second aspect of the embodiment of the present invention, there is provided a speaker control device applicable to a terminal device including an acquisition module, a determination module, a generation module, and a control module, wherein the acquisition module acquires a prohibited user sensing area corresponding to a target audio signal when an audio output event is detected, the determination module determines a corresponding first speaker based on the prohibited user sensing area and determines an inverse phase canceling sound wave corresponding to the target audio signal, the generation module generates a corresponding first control parameter based on characteristic attributes of the inverse phase canceling sound wave, and the control module controls the first speaker to output the inverse phase canceling sound wave based on the first control parameter, and the target audio signal is an audio signal output in response to the audio output event.
[0007] In a third aspect of the present invention, there is provided a terminal device including a memory, a processor, and a computer program stored in the memory and executable by the processor, the terminal device implementing the steps of the method according to the first aspect when the computer program is executed by the processor.
[0008] In a fourth aspect of an embodiment of the present invention, there is provided a storage medium having a computer program stored thereon, the computer program implementing the steps of the method according to the first aspect when executed by a processor. Effect of the Invention
[0009] In view of the above, the speaker control method, apparatus, device and readable storage medium according to the embodiment of the present invention obtain a prohibited user sensing area corresponding to a target audio signal when an audio output event is detected, determine a corresponding first speaker based on the prohibited user sensing area, determine an inverse phase canceling sound wave corresponding to the target audio signal, generate a corresponding first control parameter based on the characteristic attribute of the inverse phase canceling sound wave, and control the first speaker to obtain the inverse phase canceling sound wave based on the first control parameter. According to the present invention, a prohibited user sensing area corresponding to an audio signal output by a device is determined, and then a speaker at a corresponding position of the terminal is controlled to output an inverse phase canceling sound wave, and sound field cancellation is performed for the prohibited user sensing area, thereby improving the directionality of the terminal audio output and avoiding leaking personal information of the terminal user to unrelated users and causing voice interference. [Brief description of the drawings]
[0010] [Figure 1] FIG. 2 is a conceptual diagram of a hardware structure of a terminal device according to a first embodiment of the present invention. [Diagram 2] 1 is a conceptual diagram showing a basic flow of a speaker control method according to a first embodiment of the present invention. [Diagram 3] 10 is a detailed conceptual flow diagram of a speaker control method according to a second embodiment of the present invention. [Figure 4] FIG. 11 is a conceptual diagram of a program module of a speaker control device according to a third embodiment of the present invention. [Diagram 5] FIG. 11 is a conceptual diagram of the hardware structure of a terminal device according to a fourth embodiment of the present invention; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] In order to make the objectives, technical solutions and advantages of the present invention clearer and easier to understand, the present invention will be described clearly and in detail below with reference to the embodiments of the present application and the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, but are not all of them. It should be understood that all other embodiments that can be obtained by those skilled in the art without creative labor based on the embodiments of the present invention are also within the protection scope of the present application.
[0012] It should be noted that in the description of the embodiments of the present application, the terms "first" and "second" are used for descriptive purposes only and are not intended to be interpreted as indicating or implying relative importance or as implicitly indicating the technical features indicated. Thus, features qualified with "first" and "second" may explicitly or implicitly include one or more of these features. In the description of the embodiments of the present invention, "plurality" means two or more, unless otherwise defined.
[0013] In order to solve the problem that the open output of audio from a speaker around a device in the related art may cause interference to non-target users or leak personal information of a target user, the first embodiment of the present invention provides a speaker control method applied to a terminal device. The terminal device may be provided with multiple speakers, and the terminal device may include, but is not limited to, a smartphone, a tablet computer, a laptop computer, and a desktop computer. The multiple speakers may be preferably provided on different sides of the terminal. FIG. 1 is a hardware structure conceptual diagram of a terminal device according to this embodiment. In a typical embodiment, the terminal device of this embodiment is a double-sided screen mobile phone, and speakers may be arranged on the front and back of the double-sided screen mobile phone, respectively, and 101 and 102 in FIG. 1 are two speakers respectively provided on the front and back of the double-sided screen mobile phone.
[0014] FIG. 2 is a basic flow chart of a speaker control method according to the present embodiment. The speaker control method includes the steps of: Step 201: when an audio output event is detected, a prohibited user sensing area corresponding to a target audio signal is obtained.
[0015] Specifically, the audio output event in this embodiment includes, but is not limited to, a voice listening event, a voice notification event, an in-app sound effect trigger event, etc. When the terminal device detects the audio output event, the terminal device outputs a target audio signal to the outside in response to the audio output event.
[0016] Since multiple speakers are arranged on the terminal device, in the related art, multiple speakers usually output the target audio signal simultaneously, but this embodiment is different from the related art. In this embodiment, when outputting the target audio signal, the entire propagation area near the terminal device is divided into an allowed user detection area (which can be understood as an audio allowed detection area) and a prohibited user detection area (which can be understood as an audio prohibited detection area). The allowed user detection area is a user area in which the target audio signal needs to be effectively transmitted, and the prohibited user detection area is defined by the remaining area excluding the allowed user detection area around the terminal device, and the user in the area needs to block the target audio signal. It should be noted that the user detection area and the prohibited user detection area in this embodiment may be fixed or may be flexibly changed according to the use of the terminal device, but are not particularly limited.
[0017] In this embodiment, take the dual-screen mobile phone shown in Fig. 1 as an example. When the dual-screen mobile phone receives an incoming call alert, the terminal user inputs a voice response event through the front screen. Then, the speaker of the front screen becomes the target speaker that the terminal user listens to, and the spatial area defined by the voice output direction of the speaker also becomes the allowed user sensing area, and the spatial area toward the rear screen of the dual-screen mobile phone belongs to the prohibited user sensing area.
[0018] In some embodiments of this embodiment, before the step of acquiring a prohibited user sensing area corresponding to the above-mentioned target audio signal, the method further includes acquiring an event type corresponding to an audio output event, determining whether the event type satisfies a preset sound field control condition, and if so, triggering and executing the step of acquiring a prohibited user sensing area corresponding to the target audio signal; if not, controlling multiple speakers to simultaneously acquire the target audio signal.
[0019] Specifically, in practice, it is not necessary to perform sound field cancellation processing in all audio output scenes of a terminal device, for example, in a music playback scene, it is usually necessary for all users around the terminal device to be able to hear the audio played by the terminal device. Based on this, in this embodiment, after an audio output event is detected, it is determined whether the event type of the audio output event satisfies a preset sound field control condition, that is, it is determined whether there is a current sound field cancellation request. For example, it is determined whether the event type of the current audio output event belongs to a WeChat voice message playback event, a game sound effect playback event, etc. If the current audio output event has a sound field cancellation request, step 201 of this embodiment is triggered, but if not, it is determined that the current audio output event is an open audio output scene, and multiple speakers of the terminal device are notified to simultaneously output the target audio signal.
[0020] Step 202: determining a corresponding first speaker based on a prohibited user sensing area, and determining an inverse phase cancellation sound wave corresponding to the target audio signal.
[0021] Specifically, in this embodiment, a speaker whose sound wave output area corresponds to the prohibited user sensing area may be determined as the first speaker. Note that the number of the first speakers in this embodiment is at least one. In addition, in this embodiment, a sound field in which a target audio signal is propagated to the prohibited user sensing area is determined as a primary sound field, and based on an anti-phase canceling sound wave determined to have the same amplitude as the target audio signal and an anti-phase, the primary sound field is cancelled out by a secondary sound field formed by the anti-phase canceling sound wave.
[0022] In some embodiments of this embodiment, the step of determining an inverse phase canceling sound wave corresponding to the target audio signal includes controlling a microphone arranged corresponding to the first speaker to collect a first actual audio signal corresponding to the target audio signal, and determining a corresponding inverse phase canceling sound wave based on the first actual audio signal.
[0023] Specifically, in practice, sound waves propagate in space with a certain attenuation, and a microphone is usually also provided in the speaker of the terminal device, in order to improve the accuracy of the determined anti-phase canceling sound wave, in this embodiment, a microphone provided in the first speaker is used to collect an actual audio signal propagating in a space region corresponding to a target audio signal, and then a corresponding anti-phase canceling sound wave is determined according to the actual audio signal.
[0024] Step 203, generate a corresponding first control parameter according to the characteristic attribute of the opposite-phase cancellation sound wave.
[0025] Specifically, in this embodiment, the first control parameter can be generated based on the phase, amplitude, etc. of the antiphase canceling sound wave. Of course, in practice, in this embodiment, the first control parameter can be generated by combining the characteristic attributes of the antiphase canceling sound wave and the characteristic parameters of the first speaker. Note that the characteristic parameters of the speaker may include, but are not limited to, structural physical parameters, acoustic parameters, sound field performance indexes, etc. In addition, in this embodiment, the first control parameter can be generated by combining the characteristic attributes of the antiphase canceling sound wave, the event type of the audio output event, and the characteristic parameters of the first speaker.
[0026] Step 204, control the first speaker to output the anti-phase canceling sound waves according to the first control parameter.
[0027] Specifically, the first speaker in this embodiment outputs an inverse phase canceling sound wave to the prohibited user sensing area at the same time as the other speakers submit a target audio signal, and the target audio signal propagated to the prohibited user sensing area and the inverse phase canceling sound wave are superimposed to realize local spatial anechoicity, thereby preventing leakage of the terminal output audio, realizing audio privacy output, and avoiding the terminal output audio from interfering with unrelated users near the terminal device.
[0028] In some embodiments of this embodiment, before the step of obtaining a prohibited user sensing area corresponding to the above-mentioned target audio signal, the method further includes obtaining an allowed user sensing area corresponding to the target audio signal, determining a corresponding second speaker based on the allowed user sensing area, generating a corresponding second control parameter based on the audio output event, and controlling the second speaker to output the target audio signal related to the audio output event based on the second control parameter.
[0029] Specifically, in this embodiment, for a second speaker that outputs a target audio signal in the allowable user detection area, this embodiment controls the second speaker to output the target audio signal based on a second control parameter, thereby optimizing the sound field in the allowable user detection area and improving the user's listening experience.
[0030] In this embodiment, the number of the second speaker is at least one, and the sound field of the allowable user sensing area is optimized by strengthening or weakening optimization, or by overall optimization or sub-band optimization. The second control parameters may include, but are not limited to, amplitude, phase, and signal delay.
[0031] In addition, the first control parameter and the second control parameter in this embodiment may be time-varying, linear or nonlinear, and the two control parameters may control two different speakers, respectively. Of course, in practice, the first speaker and the second speaker are not limited to two different speakers, and may be the same speaker. In this case, the same speaker may be alternately controlled by the first control parameter and the second control parameter. That is, the same speaker is simultaneously involved in the sound field optimization of the allowable user detection area and the sound field cancellation of the forbidden user detection area.
[0032] In some embodiments of this embodiment, the step of obtaining an acceptable user detection area corresponding to the target audio signal includes obtaining a usage status of the terminal device, determining a relative positional relationship between the terminal user and the terminal device based on the usage status, and determining an acceptable user detection area corresponding to the target audio signal based on the relative positional relationship.
[0033] Specifically, in this embodiment, the relative positional relationship between the terminal user and the terminal device is determined based on the usage state when the terminal device receives the audio output event, and the allowable user sensing area of the audio signal waiting to be output is determined accordingly. Taking a double-screen mobile phone as an example, when the terminal user inputs an audio output event to the display screen arranged on one side, it is determined whether the current usage state is the front screen or the rear screen by gravity sensing or capacitance detection of the display screen, and the spatial area corresponding to the terminal user, that is, the allowable user sensing area is determined.
[0034] In some embodiments of this embodiment, the step of generating a corresponding second control parameter based on the above audio output event includes obtaining an event type corresponding to the audio output event, and generating a corresponding second control parameter based on the event type.
[0035] In this embodiment, the second control parameter may be generated by combining the event type and the feature parameters of the second speaker, and the speaker feature parameters may include, but are not limited to, structural physical parameters, acoustic parameters, sound field performance indexes, etc.
[0036] In some embodiments of this embodiment, after the step of controlling the first speaker to output the anti-phase cancellation sound waves based on the first control parameters, the method further includes controlling a microphone to collect a second actual audio signal after superimposition of the anti-phase cancellation sound waves and the target audio signal, comparing the second actual audio signal with the standard audio signal, and if the comparison does not match, adjusting the first control parameter based on a difference indicator between the second actual audio signal and the standard audio signal, and controlling the first speaker to output the anti-phase cancellation sound waves based on the adjusted first control parameters.
[0037] Specifically, this embodiment can further detect the sound field cancellation effect of the prohibited user sensing area. If the actual audio signal collected by the microphone does not match the standard audio signal of the sound field cancellation scene, the sound field cancellation effect is poor, and this embodiment can further trigger a feedback adjustment mechanism. That is, the difference indicator between the actual audio signal and the standard audio signal is used to adaptively adjust the first control parameter used in the sound field cancellation, so as to ensure the effect of the sound field cancellation.
[0038] Compared with the related art, the speaker control method according to the embodiment of the present invention includes the following steps when an audio output event is detected: obtain a prohibited user sensing area corresponding to a target audio signal, determine a corresponding first speaker according to the prohibited user sensing area, determine an inverse phase canceling sound wave corresponding to the target audio signal, generate a corresponding first control parameter according to a characteristic attribute of the inverse phase canceling sound wave, and control the first speaker to output the inverse phase canceling sound wave according to the first control parameter. According to the embodiment of the present invention, a prohibited user sensing area corresponding to an audio signal output by a device is determined, and then a speaker at a corresponding position of the terminal is controlled to output an inverse phase canceling sound wave, and sound field cancellation is performed for the prohibited user sensing area, thereby improving the directionality of the terminal audio output and avoiding leaking personal information of the terminal user to unrelated users and causing voice interference.
[0039] In order to facilitate understanding of the present invention, a second embodiment of the present invention provides a segmented speaker control method. Figure 3 is a conceptual flow diagram of the segmented speaker control method according to this embodiment, which includes the following steps: Step 301 includes determining an allowed user sensing region and a forbidden user sensing region corresponding to a target audio signal according to a usage state of a terminal device when an audio output event is detected.
[0040] In this embodiment, the terminal device may be a dual-screen mobile phone. The use state may include a front screen use state and a rear screen use state. The allowed user sensing area can be understood as an area where a user is allowed to effectively sense the target audio signal, and the prohibited user sensing area can be understood as an area where the target audio signal needs to be cancelled out.
[0041] Step 302: determining a corresponding audio output speaker based on an allowable user sensing area, and generating a corresponding audio output control parameter based on an audio output event.
[0042] Step 303, control an audio output speaker to output a target audio signal associated with the audio output event based on the audio output control parameter.
[0043] Specifically, in this embodiment, the sound field of the permitted user sensing area is optimized according to the audio output control parameters to improve the listening experience of the user in the audio permitted sensing area. The optimization form may include strengthening optimization or weakening optimization, and the optimization may include, but is not limited to, amplitude, phase, and signal delay.
[0044] In step 304, a corresponding sound field cancellation speaker is determined based on the prohibited user sensing area, and a microphone disposed corresponding to the sound field cancellation speaker is controlled to collect an actual audio signal corresponding to the target audio signal.
[0045] Step 305, determining a corresponding anti-phase canceling sound wave based on the actual audio signal.
[0046] Specifically, in this embodiment, an actual audio signal propagated in a spatial region of the cancellation sound field corresponding to a target audio signal is collected by a microphone, and then a corresponding anti-phase cancellation sound wave is determined based on the actual audio signal.
[0047] Step 306, generate corresponding sound field cancellation control parameters based on the characteristic attributes of the out-of-phase cancellation sound waves.
[0048] Step 307, control the sound field cancellation speaker to output anti-phase cancellation sound waves according to the sound field cancellation control parameters.
[0049] Specifically, the sound field canceling speaker of this embodiment outputs an inverse phase canceling sound wave to the prohibited user detection area at the same time as the audio output speaker outputs a target audio signal, and the target audio signal propagated to the prohibited user detection area and the inverse phase canceling sound wave are superimposed, thereby realizing local spatial anechoicity, that is, blocking of the target audio signal for the user in the audio prohibited detection area, thereby preventing leakage of the terminal output audio, realizing audio privacy output, and avoiding interference of the terminal output audio with unrelated users in the vicinity of the terminal device.
[0050] In this embodiment, the numbers of each step do not indicate the order in which the steps are executed, and the order in which each step is executed should be determined by its function and inherent logic, and does not constitute an inherent restriction on the implementation process.
[0051] FIG. 4 is a conceptual diagram of a program module of a speaker control device according to a third embodiment of the present invention. The speaker control device is for implementing the speaker control method in the above-mentioned embodiment. As shown in FIG. 4, the speaker control device mainly includes: an acquisition module 401 for acquiring a prohibited user sensing region corresponding to a target audio signal when an audio output event is detected; A determination module 402 for determining a corresponding first speaker based on a prohibited user sensing area and determining an inverse phase cancellation sound wave corresponding to the target audio signal; A generating module 403 for generating a corresponding first control parameter based on the characteristic attributes of the inverse phase cancellation sound wave; a control module 404 for controlling the first speaker to output the out-of-phase canceling sound waves based on a first control parameter; The target audio signal is the audio signal that is output in response to an audio output event.
[0052] In an alternative embodiment of this embodiment, the acquisition module is further used for acquiring an allowable user sensing area corresponding to the target audio signal. The determination module is further used for determining a corresponding second speaker based on the allowable user sensing area. The generation module is further used for generating a corresponding second control parameter based on the based audio output event. The control module is further used for controlling the second speaker to output the target audio signal related to the audio output event based on the second control parameter.
[0053] Furthermore, in an optional embodiment of this embodiment, when the acquisition module performs the function of acquiring an allowable user sensing area corresponding to a target audio signal, the acquisition module is specifically used for acquiring a usage status of the terminal device, determining a relative positional relationship between the terminal user and the terminal device based on the usage status, and determining an allowable user sensing area corresponding to the target audio signal based on the relative positional relationship.
[0054] Furthermore, in another optional embodiment of this embodiment, when the generation module performs the function of generating a corresponding second control parameter based on the above-mentioned audio output event, it is specifically used for obtaining an event type corresponding to the audio output event, and generating a corresponding second control parameter based on the event type.
[0055] In an optional embodiment of this embodiment, the acquisition module is specifically used for acquiring an event type corresponding to an audio output event, determining whether the event type meets a preset sound field control condition, and if so, acquiring a prohibited user sensing area corresponding to a target audio signal; accordingly, the control module is further used for controlling multiple speakers to simultaneously output the target audio signal if the event type does not meet the preset sound field control condition.
[0056] In an optional embodiment of this embodiment, when performing the function of determining an anti-phase cancellation sound wave corresponding to the above-mentioned target audio signal, the determination module is specifically used for controlling a microphone arranged corresponding to a first speaker to collect a first actual audio signal corresponding to the target audio signal, and determining a corresponding anti-phase cancellation sound wave based on the first actual audio signal.
[0057] In an optional embodiment of this embodiment, the control module is further used for controlling the microphone to collect a second actual audio signal after the anti-phase cancellation sound wave and the target audio signal are superimposed, comparing the second actual audio signal with the standard audio signal, and if the comparison shows a discrepancy, adjusting a first control parameter based on a difference indicator between the second actual audio signal and the standard audio signal, and controlling the first speaker to output the anti-phase cancellation sound wave based on the adjusted first control parameter.
[0058] In addition, the speaker control methods of the first and second embodiments can both be realized by the speaker control device of this embodiment, and for the sake of convenience and conciseness, those skilled in the art can refer to the corresponding processes of the above method embodiments for the specific operating process of the speaker control device described in this embodiment, so the description will be omitted.
[0059] Compared with the related art, the speaker control device according to the embodiment of the present invention obtains a prohibited user sensing area corresponding to a target audio signal when an audio output event is detected, determines a corresponding first speaker based on the prohibited user sensing area, determines a corresponding inverse phase canceling sound wave of the target audio signal, generates a corresponding first control parameter based on the characteristic attribute of the inverse phase canceling sound wave, and controls the first speaker to output the inverse phase canceling sound wave based on the first control parameter. According to the present invention, a prohibited user sensing area corresponding to an audio signal output by a device is determined, and then a speaker at a position corresponding to the terminal is controlled to output an inverse phase canceling sound wave, and sound field cancellation is performed for the prohibited user sensing area, thereby improving the directionality of the terminal audio output and avoiding leaking personal information of the terminal user to unrelated users and causing voice interference.
[0060] Referring to FIG. 5, FIG. 5 illustrates a terminal device according to a fourth embodiment of the present invention. The terminal device is used to implement the speaker control method in the above embodiment. As shown in FIG. 5, the terminal device mainly includes: The system includes a memory 501, a processor 502, a bus 503, and a computer program stored in the memory 501 and executable by the processor 502, and the memory 501 and the processor 502 are connected via the bus 503. When the processor 502 executes the computer program, the speaker control method of the above embodiment is realized. The number of processors may be one or more.
[0061] The memory 501 may be a high-speed random access memory (RAM) or a non-volatile memory such as a disk memory. The memory 501 is used to store executable program code, and the processor 502 is coupled to the memory 501.
[0062] In addition, the embodiment of the present invention further provides a computer-readable storage medium, which may be provided in the terminal device of each of the above embodiments, and the computer-readable storage medium may be the memory of the embodiment shown in FIG.
[0063] The computer-readable storage medium stores a computer program, and when the program is executed by a processor, the speaker control method of the above embodiment can be realized. Furthermore, the computer-readable storage medium may be a medium capable of storing program code, such as a USB memory, a mobile hard disk, a read-only memory (ROM), a RAM, a magnetic disk, or an optical disk.
[0064] In the embodiments of the present invention, it should be understood that the disclosed apparatus and method can be implemented in other ways. For example, the above-described apparatus embodiments are merely schematic, and the division of modules is merely a logical division of functions, and may be divided in other ways in actual implementation. For example, multiple module components may be combined or integrated into other systems. Or, some features may be ignored or not implemented. Furthermore, the illustrated or described mutual couplings or direct couplings or communication connections may be indirect couplings or communication connections through some interfaces, devices or modules, and may be in electrical, mechanical or other forms.
[0065] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, i.e., they may be located in one place or distributed across multiple network modules. Some or all of these modules may be selected to achieve the purpose of the present embodiment according to practical needs.
[0066] In addition, each functional module in the embodiment of the present invention may be integrated into one processing module, each module may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated module may be realized in the form of hardware or in the form of a software functional module.
[0067] When the integrated module is realized in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention can be embodied in the form of a software product, essentially or in part that contributes to the prior art, or a part of the technical solution, and the computer software product is stored in a storage medium and includes some instructions for causing a computer device (such as a personal computer, a server, or a network device) to execute all or some of the steps of the method according to each embodiment of the present invention. The readable storage medium includes various media capable of storing program code, such as USB memory, mobile hard disk, ROM, RAM, magnetic disk, optical disk, etc.
[0068] In addition, although the above method embodiments are described as a series of operations for ease of explanation, those skilled in the art should recognize that the present invention is not limited by the order of operations described, since some steps can be performed in other orders or simultaneously. Next, those skilled in the art should also recognize that the embodiments described herein are preferred embodiments, and the related operations and modules are not essential to the present invention.
[0069] In the above embodiments, the description of each embodiment has its own emphasis, and for the parts not described in detail in a specific embodiment, please refer to the relevant descriptions of other embodiments.
[0070] Although the speaker control method, apparatus, device and readable storage medium provided by the present invention have been described above, those skilled in the art can modify the specific implementation and application scope based on the knowledge of the embodiments of the present invention. The contents of this specification should not be understood as limitations of the present invention.
Claims
1. A speaker control method applied to a terminal device, comprising: When an audio output event is detected, obtaining a prohibited user sensing region corresponding to the target audio signal; determining a corresponding first speaker based on the prohibited user sensing area and determining a corresponding anti-phase cancellation sound wave of the target audio signal; generating a corresponding first control parameter based on a characteristic attribute of the antiphase canceling acoustic wave; controlling the first speaker to output the out-of-phase canceling sound waves based on the first control parameter; the target audio signal is an audio signal output in response to the audio output event; 4. The method of claim 3, further comprising: controlling a microphone disposed corresponding to the first speaker to collect a first actual audio signal corresponding to the target audio signal; determining a corresponding anti-phase canceling sound wave based on the first actual audio signal.
2. Before the step of obtaining a prohibited user sensing region corresponding to the target audio signal, further obtaining an allowable user sensing region corresponding to the target audio signal; determining a corresponding second speaker based on the allowable user sensing area and generating a corresponding second control parameter based on the audio output event; 2. The method of claim 1, further comprising: controlling the second speaker to output the target audio signal associated with the audio output event based on the second control parameter.
3. The step of obtaining an allowable user sensing region corresponding to the target audio signal includes: Obtaining a usage status of the terminal device; determining a relative positional relationship between a terminal user and the terminal device based on the usage state; and determining an allowable user sensing region corresponding to the target audio signal based on the relative positional relationship.
4. generating a corresponding second control parameter based on the audio output event, obtaining an event type corresponding to the audio output event; and generating a corresponding second control parameter based on the event type.
5. Before the step of obtaining a prohibited user sensing region corresponding to the target audio signal, further obtaining an event type corresponding to the audio output event; determining whether the event type satisfies a preset sound field control condition; If yes, performing obtaining a prohibited user sensing region corresponding to the target audio signal; If not, controlling the plurality of speakers to simultaneously output the target audio signal.
6. after the step of controlling the first speaker to output the anti-phase canceling sound waves based on the first control parameter, Controlling the microphone to collect a second actual audio signal after the out-of-phase cancellation sound wave and the target audio signal are superimposed; comparing the second actual audio signal with a standard audio signal; adjusting the first control parameter based on a difference measure between the second actual audio signal and the standard audio signal if the comparison indicates a mismatch; 2. The method of claim 1, further comprising: controlling the first speaker to output the anti-phase canceling sound waves based on the adjusted first control parameter.
7. A speaker control device applied to a terminal device, An acquisition module, a determination module, a generation module, and a control module, The acquisition module acquires a prohibited user sensing area corresponding to a target audio signal when an audio output event is detected; The determination module determines a corresponding first speaker based on the prohibited user sensing area, controls a microphone disposed corresponding to the first speaker to collect a first actual audio signal corresponding to the target audio signal, and determines a corresponding anti-phase cancellation sound wave based on the first actual audio signal; The generating module generates a corresponding first control parameter based on a characteristic attribute of the opposite-phase canceling sound wave; the control module controls the first speaker to output the anti-phase canceling sound waves based on the first control parameter; The target audio signal is an audio signal output in response to the audio output event.
8. A terminal device, comprising: a memory; a processor; and a computer program stored in the memory and executable by the processor; A terminal device which, when executed by said processor, performs the steps of the method of claim 1.
9. 1. A computer-readable storage medium, comprising: A storage medium storing a computer program, the computer program implementing the steps of the method of claim 1 when executed by a processor.
Citation Information
Patent Citations
Game device, game control method, and program
JP2011161028A
Method and device for controlling sound field, and storage medium
US20210160649A1
Audio device with privacy mode
US9159312B1
Adaptive directional audio for wearable audio devices
WO2021257620A1