Intelligent device and spatial sound field calibration method

By collecting attenuated sound from a room using smart devices and adjusting the sound using room acoustic correction algorithms, the problem of TV sound quality loss caused by different home decorations and furniture placements is solved, thus improving the user experience.

CN116248933BActive Publication Date: 2025-11-28HISENSE VISUAL TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211541073.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-02
Publication Date
2025-11-28
Estimated Expiration
2042-12-02

AI Technical Summary

Technical Problem

Different home decorations and furniture placements can cause TV sound quality loss or unsuitable volume in different environments, reducing the user experience.

Method used

By collecting attenuated sound in a room using smart devices and adjusting the sound using room acoustic correction algorithms, spatial sound field calibration is achieved, improving sound consistency.

Benefits of technology

Users can enjoy better sound effects in any room with different decor, enhancing the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116248933B_ABST
    Figure CN116248933B_ABST
Patent Text Reader

Abstract

Some embodiments of the present application show an intelligent device and a spatial sound field calibration method, the method comprising: in response to a user input instruction to start spatial sound field calibration, controlling the loudspeaker to play a preset standard sound at a first sound intensity; receiving a first audio file; calculating a first energy value of a preset frequency point based on the first audio file, and determining a first number of target size audio data in the first audio file; determining a first sound gain of the preset frequency point according to the first energy value, the first number, a preset target gain, a bandwidth and a manual adjustment offset; and calibrating a frequency response curve corresponding to the first sound intensity based on the first sound gain. The embodiments of the present application adjust the sound of the intelligent device according to the room acoustic correction algorithm by collecting the sound attenuated by the room, so that the user can enjoy better sound effect in any differently decorated room and improve the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of intelligent devices, and in particular to an intelligent device and a spatial sound field calibration method. BACKGROUND

[0002] Currently, televisions have been widely used in family and work life, and the sound and sound effect of the television are fixed after being adjusted by the user, that is, the sound and sound effect of the television can only be manually adjusted in size by a remote control and changed by selecting a sound effect and a sound mode in a setting menu. However, different users have different home decorations, such as different indoor structures, decoration materials, and furniture placement positions, which have different degrees of attenuation on sound. There is a certain degree of loss of sound quality or volume when watching television, which reduces the user experience. SUMMARY

[0003] Some embodiments of the present application provide an intelligent device and a spatial sound field calibration method, which adjusts the sound of the intelligent device according to a room acoustic correction algorithm by collecting the sound attenuated by the room, so that the user can enjoy better sound effects in any room with different decorations, and the user experience is improved.

[0004] In a first aspect, some embodiments of the present application provide a display device, comprising:

[0005] a loudspeaker;

[0006] a sound collector;

[0007] a controller configured to:

[0008] in response to a user input instruction for starting spatial sound field calibration, control the loudspeaker to play a preset standard sound at a first sound intensity;

[0009] receive a first audio file, the first audio file being a file generated by the sound collector collecting the preset standard sound;

[0010] calculate a first energy value of a preset frequency point based on the first audio file, and determine a first number of target size audio data in the first audio file;

[0011] determine a first sound gain of the preset frequency point according to the first energy value, the first number, a preset target gain, a bandwidth, and a manual adjustment offset;

[0012] calibrate a frequency response curve corresponding to the first sound intensity based on the first sound gain.

[0013] In some embodiments, the sound collector includes a control device, and the first audio file is a file generated by the user collecting the preset standard sound at a first position through the control device.

[0014] In some embodiments, the controller is configured to:

[0015] Receive a second audio file, which is a file generated by the user at a second location by acquiring the preset standard sound through a control device;

[0016] Calculate the second energy value of the preset frequency point based on the second audio file, and determine the second quantity of target-size audio data in the second audio file;

[0017] The second sound gain at the preset frequency point is determined based on the second energy value, the second quantity, the preset target gain, the bandwidth, and the manual adjustment offset.

[0018] In some embodiments, the controller performs an adjustment of the frequency response curve corresponding to the first sound intensity based on the first sound gain to obtain a calibrated frequency response curve, which is further configured as follows:

[0019] Calculate the average sound gain of the first sound gain and the second sound gain;

[0020] The frequency response curve corresponding to the first sound intensity is calibrated based on the average sound gain.

[0021] In some embodiments, the controller performs frequency response calibration based on the first sound gain to the frequency response curve corresponding to the first sound intensity, which is further configured to:

[0022] Determine a first weight corresponding to the first position and a second weight corresponding to the second position, wherein the first position and the second position are different;

[0023] Calculate the weighted average sound gain of the first sound gain and the second sound gain based on the first weight and the second weight;

[0024] The frequency response curve corresponding to the first sound intensity is calibrated based on the weighted average sound gain.

[0025] In some embodiments, the controller performs frequency response calibration based on the first sound gain to the frequency response curve corresponding to the first sound intensity, which is further configured to:

[0026] If the first sound gain at the preset frequency point is less than or equal to the adjustable maximum gain, the frequency response curve corresponding to the first sound intensity is calibrated based on the first sound gain.

[0027] In some embodiments, the controller is configured to determine the first sound gain of the preset frequency point according to the first energy value, the first number, a preset target gain, a bandwidth, and a manual adjustment offset, and further configured to:

[0028] convert the first energy value of the preset frequency point into the first gain of the preset frequency point according to the first number;

[0029] calculate a measured gain sum according to the first gain of the preset frequency point and the bandwidth of the preset frequency point;

[0030] calculate a target gain sum according to a preset target gain of the preset frequency point and the bandwidth of the preset frequency point;

[0031] calculate a ratio of the measured gain sum and the target gain sum;

[0032] determine a target adjustment gain of the preset frequency point based on the ratio and the preset target gain of the preset frequency point;

[0033] determine the first sound gain of the preset frequency point based on the target adjustment gain, the first gain, and the manual adjustment offset.

[0034] In some embodiments, the controller is configured to calibrate a frequency response curve corresponding to the first sound intensity based on the first sound gain, and further configured to:

[0035] if a difference between the first gain of the preset frequency point and the preset target gain of the preset frequency point is greater than or equal to a preset gain difference, calibrate the frequency response curve corresponding to the first sound intensity based on the first sound gain.

[0036] In some embodiments, the controller is configured to:

[0037] if the difference between the first gain of the preset frequency point and the preset target gain of the preset frequency point is less than the preset gain difference, control the loudspeaker to play a prompt audio, and a content of the prompt audio includes that the spatial sound field calibration cannot be performed due to small volume;

[0038] control the loudspeaker to play the preset standard sound at a second sound intensity, the second sound intensity being greater than the first sound intensity.

[0039] In a second aspect, some embodiments of the present application provide a spatial sound field calibration method, comprising:

[0040] in response to a user input instruction of starting the spatial sound field calibration, control the loudspeaker to play a preset standard sound at a first sound intensity;

[0041] receive a first audio file, the first audio file being a file generated by the sound collector for collecting the preset standard sound;

[0042] calculate a first energy value of a preset frequency point based on the first audio file, and determine a first quantity of target size audio data in the first audio file;

[0043] determine a first sound gain of the preset frequency point according to the first energy value, the first quantity, a preset target gain, a bandwidth, and a manual adjustment offset;

[0044] calibrate a frequency response curve corresponding to the first sound intensity based on the first sound gain.

[0045] Some embodiments of the present application provide an intelligent device and a space sound field calibration method. After receiving a user input instruction to start space sound field calibration, the intelligent device collects a preset standard sound corresponding to a first sound intensity and generates an audio file. After receiving the audio file, the intelligent device processes the audio file using a room acoustic correction algorithm. Specifically, the intelligent device calculates a first energy value of a preset frequency point based on the audio file and determines a quantity of target size audio data in the audio file. According to the first energy value, the quantity of target size audio data, a preset target gain, a bandwidth, and a manual adjustment offset, the intelligent device determines a first sound gain of the preset frequency point. Based on the first sound gain, the intelligent device calibrates a frequency response curve of the intelligent device. By collecting the sound after room attenuation, adjusting the sound in the intelligent device according to the room acoustic correction algorithm, and allowing the user to enjoy better sound effects in any differently decorated room, the user experience is improved. BRIEF DESCRIPTION OF DRAWINGS

[0046] Figure 1 An operating scenario between a display device and a control device according to some embodiments is shown;

[0047] Figure 2 A hardware configuration block diagram of the control device 100 according to some embodiments is shown;

[0048] Figure 3 A hardware configuration block diagram of the display device 200 according to some embodiments is shown;

[0049] Figure 4 A software configuration diagram in the display device 200 according to some embodiments is shown;

[0050] Figure 5 A flowchart of a controller performing a space sound field calibration method according to some embodiments is shown;

[0051] Figure 6 A schematic diagram of a space sound field interface according to some embodiments is shown;

[0052] Figure 7 A schematic diagram of a prompt interface for spatial sound field calibration is shown according to some embodiments;

[0053] Figure 8 A schematic diagram of an audio playing interface is shown according to some embodiments;

[0054] Figure 9 A flow chart of a method for a controller to calculate a first energy value of a preset frequency point based on a first audio file is shown according to some embodiments;

[0055] Figure 10 A schematic diagram of a frequency response curve is shown according to some embodiments;

[0056] Figure 11 A schematic diagram of a position prompt page is shown according to some embodiments;

[0057] Figure 12 A schematic diagram of another position prompt page is shown according to some embodiments;

[0058] Figure 13 A schematic diagram of yet another position prompt page is shown according to some embodiments;

[0059] Figure 14 A schematic diagram of a prompt interface is shown according to some embodiments;

[0060] Figure 15 A schematic diagram of another prompt interface is shown according to some embodiments. DETAILED DESCRIPTION

[0061] For the purpose of making the objects and implementation of the present application more clear, the present application will be described in detail below with reference to the accompanying drawings of the exemplary embodiments of the present application. Obviously, the described exemplary embodiments are only some of the embodiments of the present application, but not all of the embodiments of the present application.

[0062] It should be noted that the brief description of the terms in the present application is only for the convenience of understanding the following described embodiments, and is not intended to limit the embodiments of the present application. Unless otherwise specified, these terms should be understood according to their ordinary and general meanings.

[0063] The terms "first" and "second" and the like in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar or similar objects or entities, and do not necessarily mean to limit the specific order or sequence, unless otherwise specified. It should be understood that the terms used in this way can be interchanged under appropriate circumstances.

[0064] The term "comprising" and its variants are intended to cover both the inclusive and exclusive aspects of the term, such that the term "comprising" means the inclusion of one or more components, steps, or features, but not necessarily all of the components, steps, or features, and that the term "comprising" does not exclude the inclusion of other components, steps, or features.

[0065] The intelligent device provided by the embodiments of the present application can have various implementation forms, for example, can be a display device and an audio output device, etc. The audio output device includes a smart speaker and other devices for playing audio.

[0066] The display device provided by the embodiments of the present application can have various implementation forms, for example, can be a television, a smart television, a laser projection device, a monitor, an electronic bulletin board, an electronic table, etc. Figure 1 and Figure 2 As a specific embodiment of the display device of the present application.

[0067] Figure 1 As a specific embodiment of the display device of the present application. Figure 1 As shown in FIG. 1, a user can operate the display device 200 through the intelligent device 300 or the control device 100.

[0068] In some embodiments, the control device 100 can be a remote controller, and the communication between the remote controller and the display device includes infrared protocol communication or Bluetooth protocol communication, and other short-distance communication modes, to control the display device 200 through wireless or wired mode. The user can input user instructions through the keys on the remote controller, voice input, control panel input, etc., to control the display device 200.

[0069] In some embodiments, the intelligent device 300 (such as a mobile terminal, a tablet computer, a computer, a notebook computer, etc.) can also be used to control the display device 200. For example, the display device 200 is controlled by using an application program running on the intelligent device.

[0070] In some embodiments, the display device can not receive instructions using the above-mentioned intelligent device or control device, but can receive user control through touch or gesture, etc.

[0071] In some embodiments, the display device 200 can also be controlled in a manner other than the control device 100 and the intelligent device 300, for example, can directly receive user voice instructions control through a voice instruction acquisition module configured inside the display device 200, or can receive user voice instructions control through a voice control device arranged outside the display device 200.

[0072] In some embodiments, the display device 200 also communicates with the server 400. The display device 200 may communicate via a local area network (LAN), wireless local area network (WLAN), and other networks. The server 400 may provide various content and interactive features to the display device 200. The server 400 may be a cluster or multiple clusters, and may include one or more types of servers.

[0073] Figure 2 An exemplary block diagram of the configuration of the control device 100 according to an exemplary embodiment is shown. Figure 2 As shown, the control device 100 includes a controller 110, a communication interface 130, a user input / output interface 140, a memory, and a power supply. The control device 100 can receive user input operation commands and convert the operation commands into commands that the display device 200 can recognize and respond to, thus acting as an intermediary for interaction between the user and the display device 200.

[0074] like Figure 3 The display device 200 includes at least one of the following: a tuner 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a memory, a power supply, and a user interface.

[0075] In some embodiments, the controller includes a processor, a video processor, an audio processor, a graphics processor, RAM, ROM, and a first interface to an nth interface for input / output.

[0076] The display 260 includes a display screen assembly for presenting images, a driving assembly for driving image display, a component for receiving image signals from the controller output, and a user control UI interface for displaying video content, image content, menu control interface, and user control UI interface.

[0077] The display 260 can be an LCD display, an OLED display, or a projection display, and can also be a projection device and a projection screen.

[0078] The display 260 also includes a touch screen, which is used to receive input control commands from the user's fingers by sliding or clicking on the touch screen.

[0079] The communicator 220 is a component used to communicate with external devices or servers according to various communication protocol types. For example, the communicator may include at least one of the following: a Wi-Fi module, a Bluetooth module, a wired Ethernet module, other network communication protocol chips or near-field communication protocol chips, and an infrared receiver. The display device 200 can establish the transmission and reception of control signals and data signals with the external control device 100 or the server 400 through the communicator 220.

[0080] A user interface can be used to receive control signals of the control device 100 (e.g., an infrared remote controller, etc.).

[0081] The detector 230 is configured to collect signals of the external environment or interaction. For example, the detector 230 includes a light receiver configured to collect an ambient light intensity, or an image collector such as a camera configured to collect an external environment scene, a user attribute, or a user interaction gesture, or a sound collector such as a microphone configured to receive an external sound.

[0082] The external device interface 240 can include, but is not limited to, any one or more of a high-definition multimedia interface (HDMI), an analog or digital high-definition component input interface (component), a composite video input interface (CVBS), a USB input interface (USB), an RGB port, etc. The external device interface 240 can also be a composite input / output interface formed by a plurality of interfaces described above.

[0083] The tuner and demodulator 210 receives broadcast television signals through wired or wireless reception, and demodulates audio / video signals and EPG data signals from a plurality of broadcast television signals.

[0084] In some embodiments, the controller 250 and the tuner and demodulator 210 can be located in different devices, i.e., the tuner and demodulator 210 can be located in an external device of the main device where the controller 250 is located, such as an external set-top box, etc.

[0085] The controller 250 controls the operation of the display device and responds to user operations by storing various software control programs in the memory. The controller 250 controls the overall operation of the display device 200. For example, in response to receiving a user command for selecting a UI object displayed on the display 260, the controller 250 can perform an operation related to the object selected by the user command.

[0086] In some embodiments, the controller includes at least one of a central processing unit (CPU), a video processor, an audio processor, a graphics processing unit (GPU), a RAM (Random Access Memory), a ROM (Read-Only Memory), a first to nth interface for input / output, a communication bus, etc.

[0087] The user can input a user command through a graphic user interface (GUI) displayed on the display 260, and the user input interface receives the user input command through the graphic user interface (GUI). Alternatively, the user can input a user command through input of a specific sound or gesture, and the user input interface receives the user input command by recognizing the sound or gesture through a sensor.

[0088] A "user interface" is a medium interface for interaction and information exchange between an application program or an operating system and a user, which realizes conversion between an internal form of information and a form acceptable by the user. A commonly used form of the user interface is a graphic user interface (GUI), which refers to a user interface related to computer operation displayed in a graphic manner. The graphic user interface can be an interface element such as an icon, a window, a control, and the like displayed in a display screen of an electronic device, and the control can include a visible interface element such as an icon, a button, a menu, a tab, a text box, a dialog box, a status bar, a navigation bar, a widget, and the like.

[0089] Referring to Figure 4 In some embodiments, the system is divided into four layers from top to bottom, namely, an applications layer (referred to as "application layer" for short), an application framework layer (referred to as "framework layer" for short), an Android runtime and system library layer (referred to as "system runtime library layer" for short), and a kernel layer.

[0090] In some embodiments, at least one application program is run in the application layer, and the application program can be a window (Window) program, a system setting program, or a clock program provided by the operating system, or an application program developed by a third-party developer. In a specific implementation, the application program package in the application layer is not limited to the above examples.

[0091] The framework layer provides an application programming interface (API) and a programming framework for the application program. The application framework layer includes some pre-defined functions. The application framework layer is equivalent to a processing center, which decides to make the application program in the application layer act. The application program can access resources in the system and obtain services of the system in execution through the API interface.

[0092] As Figure 4As shown, the application framework layer in this embodiment includes managers, content providers, etc., wherein the managers include at least one of the following modules: ActivityManager, which interacts with all activities running in the system; LocationManager, which provides access to system location services for system services or applications; PackageManager, which retrieves various information related to application packages currently installed on the device; NotificationManager, which controls the display and clearing of notification messages; and WindowManager, which manages icons, windows, toolbars, wallpapers, and desktop widgets on the user interface.

[0093] In some embodiments, the Activity Manager manages the lifecycle of individual applications and common navigation and back functions, such as controlling application exit, opening, and back actions. The Window Manager manages all window programs, such as obtaining the screen size, determining if a status bar is present, locking the screen, capturing the screen, and controlling display window changes (e.g., shrinking the display window, shaking the display, distorting the display, etc.).

[0094] In some embodiments, the system runtime library layer provides support for the upper layer, namely the framework layer. When the framework layer is used, the Android operating system runs the C / C++ libraries contained in the system runtime library layer to implement the functions that the framework layer needs to perform.

[0095] In some embodiments, the kernel layer is a layer between hardware and software. For example... Figure 4 As shown, the kernel layer includes at least one of the following drivers: audio driver, display driver, Bluetooth driver, camera driver, WIFI driver, USB driver, HDMI driver, sensor driver (such as fingerprint sensor, temperature sensor, pressure sensor, etc.), and power driver.

[0096] Televisions are now widely used in homes and workplaces. The sound and audio effects of a television are fixed after user adjustments; that is, the only way to change the sound and audio effects is by manually adjusting the volume using the remote control and selecting sound modes through the settings menu. However, different homes have different interior designs, such as different building structures, building materials, and furniture placement, which can cause varying degrees of sound attenuation. This can result in some loss of sound quality or unsuitable volume when watching television, thus reducing the user experience.

[0097] To solve the above technical problems, the embodiments of the present application provide a smart device, and the embodiments further perfect some functions of the smart device, such as Figure 5 As shown in FIG. 25, the controller 250 performs the following steps:

[0098] Step S501: receiving an instruction of starting the spatial sound field calibration input by a user.

[0099] In some embodiments, the user enters a setting interface through a menu key of the control device, and selects a spatial sound field control in the setting interface to enter a spatial sound field interface. The spatial sound field interface includes a spatial sound field calibration control, and the user can select the spatial sound field calibration control to input the instruction of starting the spatial sound field calibration. For example, as shown in FIG. 6, the spatial sound field interface includes a spatial sound field switch control 61 and a spatial sound field calibration control 62, and the user can select the spatial sound field calibration control 62 to input the instruction of starting the spatial sound field calibration. Figure 6

[0100] In some embodiments, the user can press a voice key of the control device and say "turn on the spatial sound field calibration" to input the instruction of starting the spatial sound field calibration.

[0101] In some embodiments, the user can start the voice function by saying a far-field wake-up word, and say "turn on the spatial sound field calibration" when the display device or the audio output device starts to receive sound to input the instruction of starting the spatial sound field calibration.

[0102] Step S502: in response to the instruction of starting the spatial sound field calibration input by the user, controlling the display to display a prompt interface of the spatial sound field calibration, the prompt interface including prompt information and a start calibration control.

[0103] In some embodiments, in response to the instruction of starting the spatial sound field calibration input by the user, an application of the spatial sound field calibration is opened, and a prompt interface of the spatial sound field calibration application is displayed. The prompt information includes an operation mode of the spatial sound field calibration and matters needing attention. The operation mode of the spatial sound field calibration includes collecting sound played by the control device 100 or the smart device 300 at a specified position. The matters needing attention include that the spatial sound field calibration needs to be performed in a quiet environment, and needs to be performed when the control device 100 or the smart device 300 has been connected to the display device 200. For example, the Bluetooth remote controller needs to be paired with the display device before performing the spatial sound field calibration. The mobile phone and the display device need to be connected to a network, and an application program for controlling the display device 200 needs to be installed on the mobile phone.

[0104] For example, as shown in FIG. 6, the user selects the spatial sound field calibration control 61, and in response to the instruction input by the user, a user interface as shown in FIG. 7 is displayed. Figure 6 Figure 7 Figure 7 ​​​The prompt information 71, the start calibration control 72, the cancel calibration control 73, the Bluetooth control 74, and the focus 75 are included. When the Bluetooth remote controller is successfully paired with the display device, information that pairing is successful can be displayed on the Bluetooth control 74. If the Bluetooth remote controller is not paired with the display device, information that pairing is not successful is displayed on the Bluetooth control 74. The user can move the focus 75 to the position of the Bluetooth control 74 and select the Bluetooth control 74 to enable the display device to search for the current Bluetooth device and achieve pairing with the Bluetooth remote controller. After pairing is completed, the controller receives an instruction that the user selects the start calibration control 72 and performs a spatial sound field calibration process.

[0105] In some embodiments, the identification form of the focus is generally diversified. For example, the position of the focus object can be realized or identified by enlarging the item, or the position of the focus object can be realized or identified by setting the background color of the item, or the position of the focus object can be identified by changing the border line, size, color, transparency, and outline of the text or image of the focused item, and / or font.

[0106] Step S503: receiving an instruction that the user selects the start calibration control;

[0107] In some embodiments, the user can input a start calibration instruction to the controller by selecting the start calibration control.

[0108] Step S504: in response to the instruction that the user selects the start calibration control, controlling the loudspeaker to play a preset standard sound at a first sound intensity;

[0109] In some embodiments, when the loudspeaker plays the preset standard sound, the user needs to collect the preset standard sound played by the loudspeaker through the control device 100 or the smart device 300.

[0110] In some embodiments, when the loudspeaker plays the preset standard sound at the first sound intensity, the display displays an audio playing interface, and the audio playing interface includes a playing progress bar. The playing progress bar can facilitate the user to understand the playing progress of the current audio. For example, the audio playing interface is as shown in Figure 8 .

[0111] Step S505: receiving a first audio file, which is a file generated by the user collecting the preset standard sound at the first position through the control device;

[0112] In some embodiments, when the loudspeaker plays the preset standard sound, the user can collect by pressing the voice key of the Bluetooth remote controller. After the loudspeaker stops playing the preset standard sound, the user can end the collection by releasing the voice key of the Bluetooth remote controller. The Bluetooth remote controller sends the collected first audio file to the controller through Bluetooth.

[0113] In some embodiments, the user can start the collection by clicking the voice control in the user interface of the display device when the speaker plays the preset standard sound. The user can end the collection by clicking the end collection control in the user interface of the display device after the speaker stops playing the preset standard sound. After receiving the instruction of the user input to end the collection, the mobile phone sends the collected first audio file to the controller through the network.

[0114] In some embodiments, the first position where the user is located can not be limited, i.e., the user can collect the preset standard sound played by the display device at any position in front of the display device.

[0115] In some embodiments, the first position where the user is located is directly in front of the display device, or the first position where the user is located is within a preset distance from the display device. The prompt of the first position where the user is located can be displayed in a prompt page or in an audio playing interface.

[0116] In some embodiments, after receiving the instruction to start the spatial sound field calibration, the speaker plays the preset standard sound at a first sound intensity; while the preset standard sound is being played, the preset standard sound is collected by using a sound collector of the display device or the audio output device, and a first audio file is generated.

[0117] Step S506: calculating a first energy value of a preset frequency point based on the first audio file, and determining a first quantity of target size audio data in the first audio file.

[0118] In some embodiments, the preset frequency point to be adjusted can be set according to actual needs, and the number of preset frequency points is the number of frequency points. For example, the preset frequency points can be 120 Hz, 500 Hz, 1500 Hz, 5000 Hz, and 10000 Hz, which can be represented by using the numbers 0, 1, 2, 3, and 4 for simplification. The number of frequency points is 5. The frequency and number of preset frequency points are not limited in the embodiments of the present application.

[0119] In some embodiments, the step of calculating a first energy value of a preset frequency point based on the first audio file, and determining a first quantity of target size audio data in the first audio file includes:

[0120] reading audio data of a buffer size from the audio file;

[0121] The audio data is stored in an audio file, and needs to be read using a fread function. The buffer size is one of the parameters of the fread function, and can be set according to the situation. If the audio data in the audio file is small, it can be read at one time; if the audio data in the audio file is large, it is read in batches. The audio data of the buffer size is the target size of the target number of audio data. The target size can be 2, 4, or 8 bytes.

[0122] The fread is a function that reads data from a file stream, reads at most count items, each of size bytes, and returns the number of items actually read (less than or equal to count) on success, or 0 on failure or end-of-file.

[0123] In some embodiments, the target number is 640, and the target size is 2 bytes. The audio data of the buffer size read from the audio file is 640 audio data of 2 bytes.

[0124] The result value of the target size audio data corresponding to the preset frequency point is calculated by using a second-order filter difference equation.

[0125] In some embodiments, the second-order filter difference equation is y(n) = b0*x(n) + b1*x(n-1) + b2*x(n-2) + a1*y(n-1) + a2*y(n-2).

[0126] Wherein, b0, b1, b2, a1 and a2 are the coefficients of the filter, x(n) represents the data value (decimal representation) of the target size audio data processed n times; y(n) represents the result value obtained after n times of calculation; x(n-1) represents the data value of the target size audio data processed n-1 times; x(n-2) represents the data value of the target size audio data processed n-2 times; y(n-1) represents the result value obtained after n-1 times of calculation; y(n-2) represents the result value obtained after n-2 times of calculation, and n represents the number of calculations.

[0127] The first energy value of the preset frequency point is calculated according to the result value of the target size audio data corresponding to the preset frequency point.

[0128] In some embodiments, the first energy value of the preset frequency point is the cumulative result of the square of the result value of all target size audio data corresponding to the preset frequency point.

[0129] The first energy value of the frequency point

[0130] Wherein, y(j) represents the result value obtained after the jth calculation, n is the first number of target size audio data in the audio file, and i represents the frequency point.

[0131] It should be noted that the embodiment of the present application is to calculate the result value of each target size audio data after reading a buffer size of audio data and accumulate the square of the result value. After calculating the buffer size of audio data, it is necessary to determine whether the audio file is read completely; if the audio file is not read completely, the next buffer size of audio data is read and the related calculation is carried out. If the audio file is read completely, step S507 is executed.

[0132] After calculating the accumulated value of each frequency point in a buffer size of audio data, the number of target size audio data which has completed the calculation is calculated, and the first number of target size audio data in the first audio file can be counted when the audio file is read completely.

[0133] In some embodiments, the first energy value of the preset frequency point is calculated based on the first audio file, and the implementation method of determining the first number of target size audio data in the first audio file is as shown in Figure 9

[0134] Initialization, set various parameters, parameters include frequency point number, second order filter coefficients. The initial value of frequency point is 0, the number of processed target byte audio data is 0, and the number of target size audio data which has completed the calculation is 0; wherein the frequency point number is represented by bandcount, the target number is represented by Q, the second order filter coefficients are represented by b0, b1, b2, a1 and a2, the frequency point is represented by i, the number of processed target byte audio data is represented by j, and the number of target size audio data which has completed the calculation is represented by count, i.e. i=0, j=0, count=0.

[0135] Step S901: reading target number of target size audio data from the audio file;

[0136] Step S902: determining whether the frequency point is less than the frequency point number; that is, determining whether i

[0137] If the frequency point is less than the frequency point number, step S903 is executed: determining whether the number of processed target byte audio data is less than the target number; that is, if i

[0138] If the number of processed target byte audio data is less than the target number, step S904 is executed: calculating the target value by using the difference equation of the second order filter, and calculating the accumulated value of the square of the target value according to the target value;

[0139] That is, if j

[0140] ​The coefficients in the above formula are preset parameters set during initialization, and after each operation, the value of ff0 is assigned to ff1, the value of x is assigned to ff0, the value of fb0 is assigned to fb1, and the value of y is assigned to fb0.

[0141] power[i] = power[i] + y * y

[0142] Step S905: increment the number of processed target byte audio data by 1; that is, j = j + 1.

[0143] Step S903 is performed after step S905.

[0144] If the number of processed target byte audio data is greater than or equal to the target number, step S906 is performed: increment the number of frequency points by 1; that is, if j >= Q, i = i + 1.

[0145] Step S902 is performed after step S906.

[0146] If the frequency point is greater than or equal to the number of frequency points, step S907 is performed: increment the number of target size audio data for which the calculation is completed by the target number; that is, if i >= bandcount, count = count + Q.

[0147] Step S908: determine whether the audio file has been read completely?

[0148] If the audio file has not been read completely, step S901 is performed.

[0149] If the audio file has been read completely, the first energy value of the preset frequency point is determined to be the accumulated value of the target value square, the first number of target size audio data in the first audio file is determined to be the number of target size audio data for which the calculation is completed, and the process ends.

[0150] Taking five frequency points as an example, the first energy values corresponding to the frequency points 0, 1, 2, 3, and 4, that is, power[0], power[1], power[2], power[3], and power[4], and the first number of target size audio data in the first audio file count can be calculated from the above method.

[0151] Step S507: determine the first sound gain of the preset frequency point according to the first energy value, the first number, a preset target gain, a bandwidth, and a manually adjusted offset.

[0152] In some embodiments, the step of determining the first sound gain of the preset frequency point according to the first energy value, the first number, a preset target gain, a bandwidth, and a manually adjusted offset includes:

[0153] convert the first energy value of the preset frequency point into a first gain of the preset frequency point according to the first quantity;

[0154] In some embodiments, the method of converting the first energy value of the preset frequency point into the first gain is:

[0155] powerdb[i] = 10*log10(power[i] / count / 4e-10);

[0156] wherein powerdb is the first gain, power is the first energy value, count is the first quantity of target size audio data in the first audio file, and i is the frequency point.

[0157] The first gain of each preset frequency point is calculated by the above method. For example, powerdb[0], powerdb[1], powerdb[2], powerdb[3], powerdb[4].

[0158] calculate a test gain sum according to the first gain of the preset frequency point and the bandwidth of the preset frequency point;

[0159] In some embodiments, the product of the first gain of a frequency point and the bandwidth of the frequency point is the gain sum of the frequency point, and the gain sums of all frequency points are added to obtain the test gain sum. For example, the test gain sum sumtest = powerdb[0]*bandweight[0] + powerdb[1]*bandweight[1] + powerdb[2]*bandweight[2] + powerdb[3]*bandweight[3] + powerdb[4]*bandweight[4], wherein bandweight is the bandwidth.

[0160] calculate a target gain sum according to the preset target gain of the preset frequency point and the bandwidth of the preset frequency point;

[0161] In some embodiments, the product of the preset target gain of a frequency point and the bandwidth of the frequency point is the target gain sum of the frequency point, and the target gain sums of all frequency points are added to obtain the target gain sum. For example, the target gain sum sumtarget = targetdb[0]*bandweight[0] + targetdb[1]*bandweight[1] + targetdb[2]*bandweight[2] + targetdb[3]*bandweight[3] + targetdb[4]*bandweight[4]. Wherein the preset target gain and the bandwidth are values set at initialization.

[0162] calculating a ratio of the sum of the test gains and the sum of the target gains;

[0163] the ratio f1 = sumtest / sumtarget;

[0164] determining a target adjustment gain for the preset frequency point based on the ratio and the preset target gain of the preset frequency point;

[0165] The target adjustment gain of the preset frequency point is the product of the ratio and the preset target gain of the preset frequency point, i.e., the target adjustment gain f2 of the preset frequency point = f1*targetdb[i].

[0166] determining the first sound gain of the preset frequency point based on the target adjustment gain, the first gain, and a manual adjustment offset.

[0167] In some embodiments, a difference between the target adjustment gain and the first gain is calculated to determine the gain of the preset frequency point that needs to be adjusted, i.e., the gain f3 of the preset frequency point that needs to be adjusted = f2-powerdb[i]. When the manual adjustment offset is 0, the gain of the preset frequency point that needs to be adjusted is the first sound gain of the preset frequency point.

[0168] In some embodiments, the manual adjustment offset is an offset that can be manually adjusted according to actual effects and needs to be considered when calculating the first sound gain. The first sound gain is obtained by adding the gain of the preset frequency point that needs to be adjusted and the manual adjustment offset, i.e., the first sound gain correctiondb[i] = f3+manualadjustoffset[i], and manualadjustoffset is the manual adjustment offset.

[0169] It should be noted that the first sound gain is a deviation value of the sound gain, which can be positive, negative, or 0.

[0170] Step S508: calibrating the frequency response curve corresponding to the first sound intensity based on the first sound gain.

[0171] The frequency response curve refers to a curve recorded at the output end of a signal generator, which shows different frequency response values produced by changes in input signal frequency. Here, “frequency” refers to frequency, and “response” refers to response. The horizontal coordinate of the frequency response curve is frequency, and the vertical coordinate is sound gain or sound intensity, with units of decibels.

[0172] The frequency response curve of the preset standard sound played at the first sound intensity is saved in the display device.

[0173] The step of calibrating the frequency response curve corresponding to the first sound intensity based on the first sound gain includes:

[0174] determine the original sound gain corresponding to the preset frequency point in the frequency response curve;

[0175] calculate the sum of the original sound gain and the first sound gain of the preset frequency point to obtain a calibrated sound gain;

[0176] draw a calibrated frequency response curve based on the calibrated sound gain of the preset frequency point.

[0177] In some embodiments, the frequency response curve before calibration and the frequency response curve after calibration are as shown in Figure 10

[0178] In some embodiments, the spatial sound field calibration can be achieved by receiving an audio file collected by the user once.

[0179] In some embodiments, the spatial sound field calibration can be achieved by receiving multiple audio files collected by the user.

[0180] In some embodiments, after the step of determining the first sound gain of the preset frequency point, the controller further performs the following steps:

[0181] receive the second audio file sent by the control device, the second audio file being a file generated by the control device by collecting the preset standard sound at a second position;

[0182] calculate the second energy value of the preset frequency point based on the second audio file, and determine the second number of target size audio data in the second audio file;

[0183] determine the second sound gain of the preset frequency point according to the second energy value, the second number, a preset target gain, a bandwidth, and a manual adjustment offset.

[0184] The calculation method of the second sound gain is the same as that of the first sound gain, which will not be repeated here.

[0185] In some embodiments, after the steps of calculating the first sound gain and the second sound gain, the average sound gain of the first sound gain and the second sound gain is calculated;

[0186] For example, the average sound gain of the preset frequency point = (the first sound gain of the preset frequency point + the second sound gain of the preset frequency point) / 2.

[0187] In some embodiments, the user can be asked to collect audio files for 3-6 times, calculate the sound gain of each audio file, and calculate the average value of all sound gains.

[0188] calibrate the frequency response curve corresponding to the first sound intensity based on the average sound gain.

[0189] ​In some embodiments, after receiving the instruction of selecting the start calibration control by the user, the display device displays a position prompt page.

[0190] In some embodiments, the position prompt page comprises a position relationship between the user and the display device and a start collection control, the position relationship between the user and the display device comprises being in front of the display device, left side of the display device or right side of the display device.

[0191] In some embodiments, the position prompt page comprises a distance between the user and the display device and a start collection control, the distance between the user and the display device comprises being 10cm, 50cm or 100cm in front of the display device.

[0192] After the user completes the collection in the first position and the second position, the first sound gain and the second sound gain are calculated respectively.

[0193] The first weight corresponding to the first position and the second weight corresponding to the second position are determined.

[0194] In some embodiments, the weight in front of the display device is greater than the weight on the left side or the right side of the display device.

[0195] In some embodiments, the closer to the display device, the greater the weight, or the weight is the greatest when the distance between the user and the display device is within a comfortable range, and the weight is relatively small when the distance is less than or greater than the range.

[0196] The weighted average sound gain of the first sound gain and the second sound gain is calculated according to the first weight and the second weight.

[0197] For example, the weighted average sound gain of the preset frequency point = (the first sound gain of the preset frequency point * the first weight + the second sound gain of the preset frequency point * the second weight) / (the first weight + the second weight).

[0198] The frequency response curve corresponding to the first sound intensity is calibrated based on the weighted average sound gain.

[0199] In some embodiments, in Figure 7 , after the user selects the start calibration control 72, the position prompt page is displayed as shown in Figure 11 , the user is in front of the display device and selects the start collection control 111 to start the first sound file collection. After the collection is completed, the position prompt page is displayed as shown in Figure 12 , the user is on the left side of the display device and selects the start collection control 121 to start the second sound file collection. The weighted average sound gain is calculated according to the two collection files, and the frequency response curve corresponding to the first sound intensity is calibrated based on the weighted average sound gain.

[0200] In some embodiments, the user cannot select a suitable position according to the indication of the position prompt interface. The display device further comprises a camera, which can be an external camera or a built-in camera. After receiving the instruction of selecting the start calibration control by the user, the camera is controlled to capture a current indoor image; and a preset area is drawn in the indoor image according to image coordinates, and the display is controlled to display a position prompt page, which comprises the drawn indoor image, and the drawn indoor image comprises a first area control and a second area control.

[0201] In some embodiments, the camera can be turned downward to capture more ground images, so that the user can select a suitable position for spatial sound field calibration.

[0202] After receiving the instruction of selecting the first area control by the user after moving to the position corresponding to the first area control, the loudspeaker is controlled to play the preset standard sound at the first sound intensity, and the first audio file sent by the control device is received to obtain the first sound gain.

[0203] After receiving the instruction of selecting the second area control by the user after moving to the position corresponding to the second area control, the loudspeaker is controlled to play the preset standard sound at the first sound intensity, and the second audio file sent by the control device is received to obtain the second sound gain.

[0204] The first weight corresponding to the first area control and the second weight corresponding to the second area control are determined.

[0205] The weighted average sound gain of the first sound gain and the second sound gain is calculated according to the first weight and the second weight.

[0206] The frequency response curve corresponding to the first sound intensity is calibrated based on the weighted average sound gain.

[0207] In some embodiments, in Figure 7 After the user selects the start calibration control 72, a position prompt page is displayed as shown in Figure 13 The position prompt page comprises a drawn indoor image 131, and the drawn indoor image comprises area controls 1311-1319 and a focus 132. Each area control corresponds to a weight. The indoor furniture is various, and the user can select multiple suitable positions according to the situation and select the controls corresponding to the positions to perform spatial sound field calibration.

[0208] In some embodiments, the camera is a depth-of-field camera. The image of the user captured by the depth-of-field camera can determine the distance and direction of the user from the camera. The weight is determined according to the distance and direction of the user from the camera.

[0209] In some embodiments, after the step of determining the first sound gain of the preset frequency point, it is judged whether the first sound gain is greater than the adjustable maximum gain.

[0210] In order to protect the loudspeaker, that is, the output power of the loudspeaker cannot be too large, it is necessary to set an adjustable maximum gain value: Protectlimit, for example: the adjustable maximum gain value Protectlimit is 6 decibels.

[0211] If the first sound gain is greater than the adjustable maximum gain, it indicates that the noise is serious when the standard sound is collected. If the first sound gain is less than or equal to the adjustable maximum gain, it indicates that there is no noise or the noise is small enough to affect the result of the spatial sound field calibration when the standard sound is collected.

[0212] In some embodiments, if the first sound gain is greater than the adjustable maximum gain, the display is controlled to display first prompt information, and the first prompt information includes that the spatial sound field calibration cannot be performed due to serious noise.

[0213] In some embodiments, if the first sound gain is greater than the adjustable maximum gain, the loudspeaker is controlled to play first prompt audio, and the content of the first prompt audio includes that the spatial sound field calibration cannot be performed due to serious noise.

[0214] In some embodiments, after a preset time of displaying the prompt information, the display is controlled to display a prompt interface of the spatial sound field calibration,

[0215] It should be noted that in the embodiments of the present application, the first sound gain corresponding to a plurality of frequency points is calculated, and as long as the first sound gain of one frequency point in all frequency points is greater than the adjustable maximum gain, the display is controlled to display the first prompt information.

[0216] In some embodiments, as shown in FIG. 1, the prompt interface includes first prompt information 141 and a confirmation control 142. The first prompt information 141 is that the spatial sound field calibration cannot be performed due to serious noise, please retry in a quiet environment. Figure 14

[0217] If the first sound gain is less than or equal to the adjustable maximum gain, the frequency response curve corresponding to the first sound intensity is calibrated based on the first sound gain.

[0218] In some embodiments, after the step of determining the first sound gain of the preset frequency point, it is judged whether the difference between the first gain and a preset target gain is greater than or equal to a preset gain difference;

[0219] ​The difference between the first gain and the preset target gain being less than the preset gain difference indicates that the volume of the current audio file is small and cannot accurately perform the spatial sound field calibration. The difference between the first gain and the preset target gain being greater than or equal to the preset gain difference indicates that the volume of the current audio file can perform the spatial sound field calibration.

[0220] In some embodiments, if the difference between the first gain and the preset target gain is less than the preset gain difference, the display is controlled to display second prompt information, and the second prompt information includes that the spatial sound field calibration cannot be performed due to the small volume.

[0221] In some embodiments, if the difference between the first gain and the preset target gain is less than the preset gain difference, the loudspeaker is controlled to play second prompt audio, and the content of the second prompt audio includes that the spatial sound field calibration cannot be performed due to the small volume.

[0222] In some embodiments, after the display is controlled to display the second prompt information, the loudspeaker is controlled to play the preset standard sound at a second sound intensity, and the second sound intensity is greater than the first sound intensity.

[0223] The display device stores frequency response curves corresponding to different sound intensities, and a lower sound intensity is selected when performing the spatial sound field calibration for the first time, that is, the preset standard sound is played at a first sound intensity. If it is detected that the difference between the first gain and the preset target gain is less than the preset gain difference, a higher sound intensity is selected, that is, the preset standard sound is played at a second sound intensity, until the difference between the first gain and the preset target gain is greater than or equal to the preset gain difference.

[0224] In some embodiments, the prompt page further includes a recalibration control at the original sound intensity and a recalibration control to increase the sound intensity. If the volume is low due to the user's own collection, the user can select the recalibration control at the original sound intensity; if the user's own collection is not a problem, the recalibration control to increase the sound intensity can be selected.

[0225] After the loudspeaker is controlled to play the preset standard sound at the second sound intensity, the first sound gain is calculated by the same method, and the frequency response curve corresponding to the second sound intensity is calibrated based on the first sound gain.

[0226] It should be noted that in the embodiments of the present application, the first gain corresponding to a plurality of frequency points is calculated, and as long as the first gain of one frequency point is less than the preset gain difference, the display is controlled to display the second prompt information.

[0227] In some embodiments, as Figure 15As shown, the prompt interface includes second prompt information 151, an exit control 152, a recalibrate with original sound intensity control 153, and a recalibrate with increased sound intensity control 154. The second prompt information 152 is that the spatial sound field calibration cannot be performed due to a small collected volume, please retry. An instruction of receiving user selection of the recalibrate with increased sound intensity control 154 plays the preset standard sound at a second sound intensity to perform spatial sound field calibration.

[0228] If the difference between the first gain and the preset target gain is greater than or equal to the preset gain difference, the frequency response curve corresponding to the first sound intensity is calibrated based on the first sound gain.

[0229] In some embodiments, if the number of consecutive spatial sound field calibration failures is detected to exceed a preset number of times, the application of the spatial calibration sound field is directly exited. Wherein, the spatial sound field calibration failure refers to that the first sound gain is greater than the maximum adjustable gain or the difference between the first gain and the preset target gain is less than the preset gain difference.

[0230] In some embodiments, when multiple files need to be collected, if there is a spatial sound field calibration failure, all data of the current spatial sound field calibration is deleted, and the spatial sound field calibration is performed again. For example, the first sound gain is obtained by the first spatial sound field calibration, and the second spatial sound field calibration fails. The first sound gain and the second sound gain are deleted, and the first spatial sound field calibration is performed again.

[0231] In some embodiments, when multiple files need to be collected, if there is a spatial sound field calibration failure, the data of the current spatial sound field calibration is deleted, and the spatial sound field calibration is continued. For example, the first sound gain is obtained by the first spatial sound field calibration, and the second spatial sound field calibration fails. The second sound gain is deleted, and the second spatial sound field calibration and the calculation of the second sound gain are performed again.

[0232] In some embodiments, if the spatial sound field calibration fails due to that the first sound gain is greater than the maximum adjustable gain, i.e. the noise is serious, the data of the current spatial sound field calibration is deleted, and the spatial sound field calibration is continued. If the spatial sound field calibration fails due to that the first sound gain is greater than the maximum adjustable gain, i.e. the volume is small, all data of the current spatial sound field calibration is deleted, the preset standard sound is played at an increased sound intensity, and the spatial sound field calibration is performed again.

[0233] In some embodiments, if an instruction of user input of factory reset is detected, the frequency response curve is restored to the reference value at factory.

[0234] Some embodiments of the present application provide a spatial sound field calibration method, which is suitable for a smart device including a loudspeaker, a sound collector and a controller, the controller is configured to: in response to a user input instruction to start spatial sound field calibration, control the loudspeaker to play a preset standard sound at a first sound intensity; receive a first audio file, the first audio file is a file generated by the sound collector collecting the preset standard sound; calculate a first energy value of a preset frequency point based on the first audio file, and determine a first quantity of target size audio data in the first audio file; determine a first sound gain of the preset frequency point according to the first energy value, the first quantity, a preset target gain, a bandwidth and a manual adjustment offset; and calibrate a frequency response curve corresponding to the first sound intensity based on the first sound gain. The embodiments of the present application adjust the sound of the smart device according to the room acoustic correction algorithm by collecting the sound attenuated by the room, so that the user can enjoy better sound effect in any differently decorated room, and the user experience is improved.

[0235] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement to part or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.

[0236] For the convenience of explanation, the above description has been made in combination with specific embodiments. However, the above exemplary discussion is not intended to exhaust or limit the embodiments to the specific forms disclosed above. Various modifications and variations can be derived according to the above teachings. The selection and description of the above embodiments are to better explain the principles and practical applications, so that those skilled in the art can better use the embodiments and various different modified embodiments suitable for specific use considerations.

Claims

1. A smart device, characterized in that, include: speaker; Sound acquisition device; The controller is configured as follows: In response to a user-input command to initiate spatial sound field calibration, the speaker is controlled to play a preset standard sound at a first sound intensity; Receive a first audio file, wherein the first audio file is a file generated by the sound collector from the preset standard sound; Read a target number of audio data from the first audio file, wherein the size of the audio data is the target size; Determine if the frequency point is less than the number of frequency points included in the parameters set during initialization; If the frequency point is less than the number of frequency points, determine whether the number of processed target byte audio data is less than the target number. If the number of processed target byte audio data is less than the target number, calculate the result value using the second-order filter difference equation, calculate the sum of the squares of the result value, add 1 to the number of processed target byte audio data, and then determine again whether the number of processed target byte audio data is less than the target number. The first energy value is determined by the sum of the squares of the result values. If the number of processed target byte audio data is greater than or equal to the target number, add 1 to the value of the frequency point, and then return to determine whether the frequency point is less than the number of frequency points. If the frequency point is greater than or equal to the number of frequency points, the number of audio data of the target size that has been calculated is added to the target number to determine the first number. If the first audio file has not been completely read, the operation of reading the target number of audio data from the first audio file continues until the first audio file is completely read. The first sound gain at the preset frequency point is determined based on the first energy value, the first quantity, the preset target gain, the bandwidth, and the manual adjustment offset. The frequency response curve corresponding to the first sound intensity is calibrated based on the first sound gain.

2. The intelligent device according to claim 1, characterized in that, The sound acquisition device includes a control unit, and the first audio file is a file generated by the user acquiring the preset standard sound at a first location through the control unit.

3. The intelligent device according to claim 2, characterized in that, The controller is configured as follows: Receive a second audio file, which is a file generated by the user at a second location by acquiring the preset standard sound through a control device; Calculate the second energy value of the preset frequency point based on the second audio file, and determine the second quantity of target-size audio data in the second audio file; The second sound gain at the preset frequency point is determined based on the second energy value, the second quantity, the preset target gain, the bandwidth, and the manual adjustment offset.

4. The intelligent device according to claim 3, characterized in that, The controller performs an adjustment of the frequency response curve corresponding to the first sound intensity based on the first sound gain, resulting in a calibrated frequency response curve, which is further configured as follows: Calculate the average sound gain of the first sound gain and the second sound gain; The frequency response curve corresponding to the first sound intensity is calibrated based on the average sound gain.

5. The intelligent device according to claim 3, characterized in that, The controller performs frequency response curve calibration based on the first sound gain corresponding to the first sound intensity, and is further configured to: Determine a first weight corresponding to the first position and a second weight corresponding to the second position, wherein the first position and the second position are different; Calculate the weighted average sound gain of the first sound gain and the second sound gain based on the first weight and the second weight; The frequency response curve corresponding to the first sound intensity is calibrated based on the weighted average sound gain.

6. The intelligent device according to claim 1, characterized in that, The controller performs frequency response curve calibration based on the first sound gain corresponding to the first sound intensity, and is further configured to: If the first sound gain at the preset frequency point is less than or equal to the adjustable maximum gain, the frequency response curve corresponding to the first sound intensity is calibrated based on the first sound gain.

7. The intelligent device according to claim 1, characterized in that, The controller, by performing a process of determining a first sound gain at the preset frequency point based on the first energy value, the first quantity, the preset target gain, the bandwidth, and a manually adjusted offset, is further configured to: Based on the first quantity, the first energy value of the preset frequency point is converted into the first gain of the preset frequency point; The total gain is calculated and determined based on the first gain of the preset frequency point and the bandwidth of the preset frequency point; Calculate the total target gain based on the preset target gain of the preset frequency point and the bandwidth of the preset frequency point; Calculate the ratio of the measured total gain to the target total gain; The target adjustment gain of the preset frequency point is determined based on the ratio and the preset target gain of the preset frequency point; Based on the target adjustment gain, the first gain, and the manual adjustment offset, the first sound gain at the preset frequency point is determined.

8. The intelligent device according to claim 7, characterized in that, The controller performs frequency response curve calibration based on the first sound gain corresponding to the first sound intensity, and is further configured to: If the difference between the first gain at the preset frequency point and the preset target gain at the preset frequency point is greater than or equal to the preset gain difference, the frequency response curve corresponding to the first sound intensity is calibrated based on the first sound gain.

9. The intelligent device according to claim 8, characterized in that, The controller is configured as follows: If the difference between the first gain of the preset frequency point and the preset target gain of the preset frequency point is less than the preset gain difference, then the speaker is controlled to play a prompt audio. The content of the prompt audio includes the inability to perform spatial sound field calibration due to low volume. The speaker is controlled to play the preset standard sound at a second sound intensity, which is greater than the first sound intensity.

10. A spatial sound field calibration method, characterized in that, include: In response to a user-input command to initiate spatial sound field calibration, the speaker is controlled to play a preset standard sound at a first sound intensity; Receive a first audio file, wherein the first audio file is a file generated by the sound collector from the preset standard sound; Read a target number of audio data from the first audio file, wherein the size of the audio data is the target size; Determine if the frequency point is less than the number of frequency points included in the parameters set during initialization; If the frequency point is less than the number of frequency points, determine whether the number of processed target byte audio data is less than the target number. If the number of processed target byte audio data is less than the target number, calculate the result value using the second-order filter difference equation, calculate the sum of the squares of the result value, add 1 to the number of processed target byte audio data, and then determine again whether the number of processed target byte audio data is less than the target number. The first energy value is determined by the sum of the squares of the result values. If the number of processed target byte audio data is greater than or equal to the target number, add 1 to the value of the frequency point, and then return to determine whether the frequency point is less than the number of frequency points. If the frequency point is greater than or equal to the number of frequency points, the number of audio data of the target size that has been calculated is added to the target number to determine the first number. If the first audio file has not been completely read, the operation of reading the target number of audio data from the first audio file continues until the first audio file is completely read. The first sound gain at the preset frequency point is determined based on the first energy value, the first quantity, the preset target gain, the bandwidth, and the manual adjustment offset. The frequency response curve corresponding to the first sound intensity is calibrated based on the first sound gain.

Citation Information

Patent Citations

  • Method for calibrating sound playing of loudspeaker and electronic device

    CN106068009A

  • Loudspeaker equipment as well as calibration method, device and equipment thereof

    CN108966084A

  • Audio playing method, device and equipment

    CN112133332A