Audio Adjustment Method, Device, Equipment and Computer Readable Storage Medium
By obtaining the spectrum information of the target audio and the number of devices and dynamically adjusting the audio parameters, the problem of insufficient adjustment capabilities of smart large-screen devices during audio switching is solved, and the automatic adjustment capability and user experience of audio switching is improved.
Patent Information
- Application Number
- CN202011184319.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-29
- Publication Date
- 2025-08-05
- Estimated Expiration
- 2040-10-29
AI Technical Summary
Smart large-screen devices have poor adjustment capabilities when switching audio, resulting in sudden volume changes and whistling, damaging the speaker, and affecting the user experience.
By obtaining the spectrum information of the target audio and the number of audio playback devices, setting the first audio adjustment parameters, and adjusting them to the second audio adjustment parameters according to the switching type and number of devices, dynamic adjustment is realized to avoid sudden changes in the audio parameters.
It improves the automatic adjustment ability of smart large-screen devices during audio switching, avoids the negative impact of sudden volume changes, and improves the user experience.
Smart Images

Figure CN112332792B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent terminals, and particularly to an audio adjustment method, device, equipment and computer-readable storage medium. Background Art
[0002] With the development of intelligent terminal technology, various devices with intelligent large screens have entered thousands of households due to their intelligence and convenience. The display technology of intelligent large screen devices is still constantly improving, which can provide users with a higher-quality viewing experience. However, the picture display is only one aspect affecting the user's viewing experience. In addition, the sound playback technology of intelligent large screen devices is also particularly important. In traditional intelligent large screen devices, the volume often mutates when the user switches the program source. The screeching noise generated by the sudden increase in volume is likely to cause damage to the speaker, resulting in the technical problem that the existing intelligent large screen devices have poor adjustment ability during audio switching. Summary of the Invention
[0003] The main purpose of the present invention is to provide an audio adjustment method, aiming to solve the technical problem that the existing intelligent large screen devices have poor adjustment ability during audio switching.
[0004] To achieve the above purpose, the present invention provides an audio adjustment method, which includes:
[0005] Obtain the spectrum information of the target audio, and set the first audio adjustment parameter of the target audio according to the spectrum information;
[0006] Obtain the number of audio playback devices, and obtain the second audio adjustment parameter based on the number of audio playback devices and the first audio adjustment parameter;
[0007] When playing the target audio, adjust the target audio according to the second audio adjustment parameter.
[0008] Optionally, the obtaining the spectrum information of the target audio and setting the first audio adjustment parameter of the target audio according to the spectrum information includes:
[0009] Enable switching event detection, and determine the switching type of the switching event when the switching event is detected;
[0010] Obtain the spectrum file of the target audio pointed to by the switching event, and identify the high-frequency volume ratio from the spectrum file as the spectrum information;
[0011] Combine the switching type and the high-frequency volume ratio to set the first audio adjustment parameter of the target audio.
[0012] Optionally, the first adjustment parameter includes the high-frequency gain attenuation ratio,
[0013] Setting the first audio adjustment parameter of the target audio in combination with the switching type and the high-frequency volume ratio includes:
[0014] Finding the high-frequency ratio threshold corresponding to the switching type from a preset type threshold comparison rule;
[0015] When the high-frequency volume ratio exceeds the high-frequency ratio threshold, setting the high-frequency gain attenuation ratio of the target audio to the complementary value of the high-frequency ratio threshold.
[0016] Optionally, obtaining the number of audio playback devices and obtaining the second audio adjustment parameter based on the number of audio playback devices and the first audio adjustment parameter includes:
[0017] Detecting the actual operating power of externally connected audio playback devices and obtaining the number of externally connected audio playback devices whose actual operating power is greater than a preset minimum power threshold as the number of audio playback devices;
[0018] Judging whether the number of audio playback devices is greater than 1;
[0019] If so, obtaining the adjustment average value of the first audio adjustment parameter evenly distributed to each externally connected speaker as the second audio adjustment parameter.
[0020] Optionally, after judging whether the number of audio playback devices is greater than 1, it further includes:
[0021] If not, when the number of audio playback devices is 1, taking the first audio adjustment parameter as the second audio adjustment parameter; or,
[0022] When the number of audio playback devices is 0, generating and outputting an exception prompt message.
[0023] Optionally, when playing the target audio, adjusting the target audio according to the second audio adjustment parameter includes:
[0024] When playing the target audio, transmitting the second audio adjustment parameter to an audio power amplifier to perform a smooth transition adjustment on the target audio based on the audio power amplifier.
[0025] Optionally, after adjusting the target audio according to the second audio adjustment parameter when playing the target audio, it further includes:
[0026] Generating and displaying an adjustment control for the audio parameter index corresponding to the second audio adjustment parameter for the user to independently adjust the audio parameter index based on the adjustment control.
[0027] In addition, to achieve the above object, the present invention further provides an audio adjustment device, and the audio adjustment device includes:
[0028] A first parameter setting module, configured to obtain the spectrum information of the target audio, and set a first audio adjustment parameter of the target audio according to the spectrum information;
[0029] A second parameter determining module, configured to obtain the number of audio playback devices, and obtain a second audio adjustment parameter based on the number of audio playback devices and the first audio adjustment parameter;
[0030] A target audio adjustment module, configured to adjust the target audio according to the second audio adjustment parameter when playing the target audio.
[0031] Optionally, the first parameter setting module includes:
[0032] A switching type determining unit, configured to enable switching event detection, and determine the switching type of the switching event when the switching event is detected;
[0033] A high-frequency volume ratio recognition unit, configured to obtain the spectrum file of the target audio pointed to by the switching event, and identify the high-frequency volume ratio from the spectrum file as the spectrum information;
[0034] A first parameter setting unit, configured to set a first audio adjustment parameter of the target audio by combining the switching type and the high-frequency volume ratio.
[0035] Optionally, the first adjustment parameter includes a high-frequency gain attenuation ratio,
[0036] The first parameter setting unit is further configured to:
[0037] Find the high-frequency ratio threshold corresponding to the switching type from a preset type threshold comparison rule;
[0038] When the high-frequency volume ratio exceeds the high-frequency ratio threshold, set the high-frequency gain attenuation ratio of the target audio to a complementary value of the high-frequency ratio threshold.
[0039] Optionally, the second parameter determining module includes:
[0040] An actual power detection unit, configured to detect the actual operating power of an externally connected audio playback device, and obtain the number of externally connected audio playback devices whose actual operating power is greater than a preset minimum power threshold as the number of audio playback devices;
[0041] [[ID=
[0042] A number of first determination units, which are used to, if so, obtain the adjusted average value of the first audio adjustment parameter evenly distributed to each of the external connected speakers, and use the adjusted average value as the second audio adjustment parameter.
[0043] Optionally, the second parameter determination module includes:
[0044] A number of second determination units, which are used to, if not, when the number of audio playback devices is 1, use the first audio adjustment parameter as the second audio adjustment parameter; or,
[0045] When the number of audio playback devices is 0, generate and output an exception prompt message.
[0046] Optionally, the target audio adjustment module includes:
[0047] A smooth transition adjustment unit, which is used to, when playing the target audio, transmit the second audio adjustment parameter to an audio power amplifier to perform a smooth transition adjustment on the target audio based on the audio power amplifier.
[0048] Optionally, the audio adjustment device further includes:
[0049] An adjustment control display module, which is used to generate and display an adjustment control for the audio parameter index corresponding to the second audio adjustment parameter, so that the user can independently adjust the audio parameter index based on the adjustment control.
[0050] In addition, to achieve the above object, the present invention also provides an audio adjustment device, which includes: a memory, a processor, and an audio adjustment program stored on the memory and executable on the processor. When the audio adjustment program is executed by the processor, the steps of the above method are implemented.
[0051] In addition, to achieve the above object, the present invention also provides a computer-readable storage medium, on which an audio adjustment program is stored. When the audio adjustment program is executed by a processor, the steps of the above method are implemented.
[0052] The present invention provides an audio adjustment method, device, equipment and computer-readable storage medium. Before playing a target audio, the audio adjustment method sets a first audio adjustment parameter according to the spectrum information of the target audio, so that the audio adjustment can match the actual spectrum situation of the target audio; then further adjusts the first audio adjustment parameter according to the number of audio playback devices to obtain a second audio adjustment parameter, so that the audio adjustment also adapts to the current number of audio playback devices; finally, adjusts the target audio according to the second audio adjustment parameter during playback, realizing dynamic adjustment of the audio parameters of the upcoming played audio during the audio switching process, avoiding the negative impacts on users and equipment caused by sudden changes in relevant audio parameters when switching audio, and improving the automatic adjustment ability of the intelligent large-screen device during audio switching, thereby solving the technical problem of poor adjustment ability of existing intelligent large-screen devices during audio switching. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 It is a schematic structural diagram of an audio adjustment device in the hardware operating environment related to the embodiment solution of the present invention;
[0054] Figure 2 It is a schematic flowchart of the first embodiment of the audio adjustment method of the present invention;
[0055] Figure 3 It is a schematic diagram of the functional modules of the audio adjustment device of the present invention.
[0056] The realization, functional features and advantages of the object of the present invention will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0057] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0058] As Figure 1 shown, Figure 1 It is a schematic structural diagram of an audio adjustment device in the hardware operating environment related to the embodiment solution of the present invention.
[0059] The audio adjustment device in the embodiment of the present invention is a terminal with an imaging device, preferably an intelligent TV.
[0060] As Figure 1As shown in the figure, the audio adjustment device may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to implement connection communication between these components. Optionally, the user interface 1003 may include a standard wired interface and a wireless interface. Optionally, the network interface 1004 may include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory). Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0061] Those skilled in the art can understand that Figure 1 the structure of the audio adjustment device shown in
[0062] does not constitute a limitation on the audio adjustment device, and may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements. Figure 1 As shown in the figure, the memory 1005, as a computer storage medium, may include an operating system, a network communication module, a user interface module, and an audio adjustment program.
[0063] In Figure 1 the audio adjustment device shown in the figure, the network interface 1004 is mainly used to connect to the background server and perform data communication with the background server; the user interface 1003 is mainly used to connect to the client (user side) and perform data communication with the client; and the processor 1001 may be used to call the audio adjustment program stored in the memory 1005 and perform the following operations:
[0064] Obtain the spectrum information of the target audio, and set the first audio adjustment parameter of the target audio according to the spectrum information;
[0065] Obtain the number of audio playback devices, and obtain the second audio adjustment parameter based on the number of audio playback devices and the first audio adjustment parameter;
[0066] When playing the target audio, adjust the target audio according to the second audio adjustment parameter.
[0067] Further, the obtaining the spectrum information of the target audio and setting the first audio adjustment parameter of the target audio according to the spectrum information includes:
[0068] Enable switching event detection, and determine the switching type of the switching event when the switching event is detected;
[0069] Obtain the spectrum file of the target audio pointed to by the switching event, and identify the proportion of high-frequency volume from the spectrum file as the spectrum information;
[0070] Combine the switching type and the proportion of high-frequency volume, and set the first audio adjustment parameter of the target audio.
[0071] Further, the first adjustment parameter includes the high-frequency gain attenuation ratio,
[0072] The combining the switching type and the proportion of high-frequency volume to set the first audio adjustment parameter of the target audio includes:
[0073] Find the high-frequency ratio threshold corresponding to the switching type from the preset type threshold comparison rule;
[0074] When the proportion of high-frequency volume exceeds the high-frequency ratio threshold, set the high-frequency gain attenuation ratio of the target audio to the complementary value of the high-frequency ratio threshold.
[0075] Further, the obtaining the number of audio playback devices and obtaining the second audio adjustment parameter based on the number of audio playback devices and the first audio adjustment parameter includes:
[0076] Detect the actual operating power of the externally connected audio playback devices, and obtain the number of externally connected audio playback devices whose actual operating power is greater than the preset minimum power threshold as the number of audio playback devices;
[0077] Judge whether the number of audio playback devices is greater than 1;
[0078] If so, obtain the adjustment average value of the first audio adjustment parameter evenly distributed to each externally connected speaker, and use the adjustment average value as the second audio adjustment parameter.
[0079] Further, after judging whether the number of audio playback devices is greater than 1, the processor 1001 can be used to call the audio adjustment program stored in the memory 1005 and perform the following operations:
[0080] If not, when the number of audio playback devices is 1, use the first audio adjustment parameter as the second audio adjustment parameter; or,
[0081] When the number of audio playback devices is 0, generate and output an exception prompt message.
[0082] Further, when playing the target audio, adjusting the target audio according to the second audio adjustment parameter includes:
[0083] When playing the target audio, the second audio adjustment parameter is transmitted to the audio power amplifier to perform a smooth transition adjustment on the target audio based on the audio power amplifier.
[0084] Further, after adjusting the target audio according to the second audio adjustment parameter when playing the target audio, the processor 1001 can be used to call the audio adjustment program stored in the memory 1005 and perform the following operations:
[0085] Generate and display an adjustment control for the audio parameter index corresponding to the second audio adjustment parameter, so that the user can independently adjust the audio parameter index based on the adjustment control.
[0086] Based on the above hardware structure, various embodiments of the audio adjustment method of the present invention are proposed.
[0087] With the development of intelligent terminal technology, various devices with intelligent large screens have entered thousands of households due to their intelligence and convenience. The display technology of intelligent large screen devices is still constantly improving, which can provide users with a higher-quality viewing experience. However, the picture display is only one aspect affecting the user's viewing experience. In addition, the sound playback technology of intelligent large screen devices is also particularly important. Traditional intelligent large screen devices often have a sudden change in volume when the user switches the program source. The screeching noise generated by the sudden increase in volume is likely to cause damage to the speaker, resulting in the technical problem that the existing intelligent large screen devices have poor adjustment ability during audio switching.
[0088] To solve the above technical problems, the present invention provides an audio adjustment method. That is, before playing the target audio, first set the first audio adjustment parameter according to the spectrum information of the target audio, so that the audio adjustment can match the actual spectrum situation of the target audio; then further adjust the first audio adjustment parameter according to the number of audio playback devices to obtain the second audio adjustment parameter, so that the audio adjustment is also adapted to the current number of audio playback devices; finally, adjust the target audio according to the second audio adjustment parameter during playback, realizing the dynamic adjustment of the audio parameters of the upcoming played audio during the audio switching process, avoiding the negative impacts on the user and the device caused by the sudden change of relevant audio parameters when switching audio, and improving the automatic adjustment ability of the intelligent large screen device during audio switching, thereby solving the technical problem that the existing intelligent large screen devices have poor adjustment ability during audio switching.
[0089] Refer to Figure 2 , Figure 2 For the flowchart of the first embodiment of the audio adjustment method.
[0090] The first embodiment of the present invention provides an audio adjustment method, which is applied to a master device. The audio adjustment method includes:
[0091] Step S10: Obtain the spectrum information of the target audio, and set the first audio adjustment parameter of the target audio according to the spectrum information;
[0092] In this embodiment, this method is applied to a smart terminal with an audio playback function or an externally connected audio playback device, such as a smart TV, a personal computer, a tablet, a smart washing machine, etc. The target audio refers to the audio to be played soon. It should be noted that when switching a smart terminal that is not in the working state to the working state and selecting a certain channel for playback, the audio of the program played on this channel, or when selecting an audio application to play audio, or when selecting a media video application to play video, the corresponding audio of this video is the target audio; when switching arbitrarily between channels, audio applications, and media video applications, the audio corresponding to the media file played after the switch is also the target audio. The spectrum information may specifically include information related to the volume distribution of high and low frequencies. The first audio adjustment parameter refers to an audio adjustment parameter obtained based on the spectrum information of the target audio, and this audio adjustment parameter can specifically adjust the volume of the target audio, the volume gain of high and low frequencies, etc.
[0093] Specifically, taking a smart TV as an example, if the current user watches a program through the smart TV at home and the user clicks the channel switch using the remote control, this is equivalent to sending an audio switch instruction to the smart TV. The smart TV receives the audio switch instruction currently sent by the user, determines the program name of the next channel to be played according to this instruction, and then obtains the spectrum information of the corresponding media file according to the program name, so as to calculate the first audio adjustment parameter based on this spectrum information.
[0094] Step S20: Obtain the number of audio playback devices, and obtain the second audio adjustment parameter based on the number of audio playback devices and the first audio adjustment parameter;
[0095] In this embodiment, the number of audio playback devices may specifically refer to the number of devices built in the smart terminal for playing audio, or the number of externally connected devices for playing audio on the smart terminal, or the number of devices built in and externally connected to the smart terminal for playing audio. Among them, when the smart terminal is a smart TV, the device for playing audio is usually a speaker. The second audio adjustment parameter refers to an audio adjustment parameter obtained by adjusting the first audio adjustment parameter according to the number of audio playback devices.
[0096] Specifically, still taking a smart TV as an example. If the smart TV detects that the number of current audio playback devices is 3, the first audio adjustment parameter can be proportionally distributed to these 3 audio playback devices. The specific proportion can be randomly set according to requirements. For example, when there is no obvious difference among the 3 audio playback devices, the first audio adjustment parameter is equally distributed to each audio playback device in equal proportion; when one of the 3 audio playback devices is a built-in device and the remaining two are external devices, the first audio adjustment parameter is split according to the ratio of 4:3:3, with the larger part being allocated to the built-in audio playback device and the remaining equal two parts being allocated to the external audio playback devices.
[0097] Step S30, when playing the target audio, adjust the target audio according to the second audio adjustment parameter.
[0098] In this embodiment, the smart terminal has obtained the above second audio adjustment parameter before playing the target audio. When the target audio is played, the target audio can be directly adjusted according to the second audio adjustment parameter to avoid the negative effects on the user or the device caused by excessive changes in the volume or frequency of the next audio.
[0099] Specifically, still taking a smart TV as an example. The user presses the channel switching button on the remote control, intending to switch from the current CCTV9 channel to the CCTV1 channel. The smart TV obtains the audio information of the "Weather Forecast" program currently being broadcast on CCTV1, sets the first audio adjustment parameter based on this, and then obtains that the number of currently external audio playback devices is 2. Then, the first audio adjustment parameter is evenly divided in half, and half of the first audio adjustment parameter is used as the second audio adjustment parameter, and this second audio adjustment parameter is sent to the external audio playback device for the audio playback device to adjust the target audio according to the second audio adjustment parameter when playing the target audio.
[0100] In this embodiment, by obtaining the spectral information of the target audio, the first audio adjustment parameter of the target audio is set according to the spectral information; the number of audio playback devices is obtained, and the second audio adjustment parameter is obtained based on the number of audio playback devices and the first audio adjustment parameter; when playing the target audio, the target audio is adjusted according to the second audio adjustment parameter. In the above manner, before playing the target audio, the present invention first sets the first audio adjustment parameter according to the spectral information of the target audio, so that the audio adjustment can match the actual spectral situation of the target audio; then further adjusts the first audio adjustment parameter according to the number of audio playback devices to obtain the second audio adjustment parameter, so that the audio adjustment is also adapted to the current number of audio playback devices; finally, the target audio is adjusted according to the second audio adjustment parameter during playback, realizing the dynamic adjustment of the audio parameters of the upcoming played audio during the audio switching process, avoiding the negative impacts on the user and the device caused by the sudden change of relevant audio parameters when switching audio, and improving the automatic adjustment ability of the intelligent large-screen device during audio switching, thereby solving the technical problem of the poor adjustment ability of the existing intelligent large-screen device during audio switching.
[0101] Further, based on the above Figure 2 shown in the first embodiment, the second embodiment of the audio adjustment method of the present invention is proposed. In this embodiment, step S10 includes:
[0102] Enable the switching event detection, and determine the switching type of the switching event when the switching event is detected;
[0103] Obtain the spectral file of the target audio pointed to by the switching event, and identify the high-frequency volume ratio from the spectral file as the spectral information;
[0104] Combine the switching type and the high-frequency volume ratio to set the first audio adjustment parameter of the target audio.
[0105] In this embodiment, for the sake of convenience in description, a smart TV is taken as an example hereinafter. When a smart TV is in a normal working state, a thread for detecting switching events is created. Among them, the switching events include: switching from one program to another program; switching from one program to an audio application or from an audio application to a program; switching from one program to a media video application or from a media video application to a program; switching from an audio application to a media video application or from a media video application to an audio application. Correspondingly, the switching types include: the type of switching to a program, the type of switching to an audio application, and the type of switching to a media video application. The smart TV obtains the target audio name after switching according to the currently detected switching event, and then obtains the corresponding spectrum file by the name. The smart TV calculates the proportion of high-frequency volume in the spectrum file, for example, 60%, and finally comprehensively considers the two factors of the switching type and the high-frequency volume proportion to set the first audio adjustment parameter.
[0106] Further, the first adjustment parameter includes a high-frequency gain attenuation ratio.
[0107] The setting of the first audio adjustment parameter of the target audio by combining the switching type and the high-frequency volume proportion includes:
[0108] Finding the high-frequency ratio threshold corresponding to the switching type from a preset type threshold comparison rule;
[0109] When the high-frequency volume proportion exceeds the high-frequency ratio threshold, setting the high-frequency gain attenuation ratio of the target audio to the complementary value of the high-frequency ratio threshold.
[0110] In this embodiment, the high-frequency gain attenuation ratio refers to the attenuation ratio value of the high-frequency volume gain. For example, if the original high-frequency gain is 60% and the high-frequency gain attenuation ratio is assumed to be 50%, then the high-frequency gain after attenuation is 30%. The preset type threshold comparison rule is the corresponding relationship between different switching types and high-frequency ratio thresholds set in advance. For example, the high-frequency ratio threshold corresponding to the switching type of switching to a program is 60%; the high-frequency ratio threshold corresponding to the switching type of switching to an audio application is 50%; the high-frequency ratio threshold corresponding to the switching type of switching to a media video application is 30%. The complementary value of the high-frequency ratio threshold refers to the value that adds up to 1 with the high-frequency ratio threshold. For example, if the high-frequency ratio threshold is 60%, its complementary value is 40%; if the high-frequency ratio threshold is 30%, its complementary value is 70%.
[0111] Specifically, if the smart TV detects that the current switching type is switching to a program, the high-frequency ratio threshold corresponding to this type is found to be 60% in the preset type threshold comparison rule. The smart TV determines whether the high-frequency volume ratio of the audio of the program after switching is greater than 60%. If it is greater, the smart TV calculates that the complementary value at this time should be 40%, meaning that the high-frequency gain of the target audio is attenuated to 40% of the original; if it is not greater, the smart TV plays the target audio as normal.
[0112] Further, step S20 includes:
[0113] Detect the actual operating power of the externally connected audio playback device, and obtain the number of externally connected audio playback devices whose actual operating power is greater than the preset minimum power threshold, as the number of the audio playback devices;
[0114] Judge whether the number of the audio playback devices is greater than 1;
[0115] If so, obtain the adjustment average value of the first audio adjustment parameter evenly distributed to each of the externally connected speakers, and use the adjustment average value as the second audio adjustment parameter.
[0116] In this embodiment, the preset minimum power threshold is the operating power value of the audio playback device in the normal working state. The smart TV searches for externally connected speakers and obtains the actual operating power of each speaker. Suppose there are 3 externally connected speakers, and the minimum power threshold of the speakers is 15W. The smart TV compares the actual operating power of each speaker with 15W to obtain the number of speakers whose actual power is greater than 15W. The smart TV judges whether the number of speakers whose actual power is greater than 15W is greater than 1. Suppose the number of speakers whose actual power is greater than 15W is 2, then it can be determined that it is greater than 1, and the smart TV can halve the high-frequency gain attenuation ratio, that is, the above-mentioned first audio adjustment parameter. For example, if the original high-frequency gain attenuation ratio is 40%, then after halving it, 20% is obtained, and 20% is the above-mentioned second audio adjustment parameter.
[0117] Further, after judging whether the number of the audio playback devices is greater than 1, it further includes:
[0118] If not, when the number of the audio playback devices is 1, use the first audio adjustment parameter as the second audio adjustment parameter; or,
[0119] When the number of the audio playback devices is 0, generate and output an exception prompt message.
[0120] In this embodiment, if the number of speakers with an actual power greater than 15W detected by the smart TV is 1, then there is no need to further process the first audio adjustment parameter, and it can be directly used as the second audio adjustment parameter; if the number of speakers with an actual power greater than 15W detected by the smart TV is 01, that is, there is currently no speaker that can play audio, the smart TV generates and displays an exception prompt message to prompt the user that there is no available device to play the target audio normally.
[0121] In this embodiment, the first audio adjustment parameter is further set by combining the switching type and the high-frequency volume ratio, making the setting of the first audio adjustment parameter more suitable for actual needs and improving the effectiveness of the first audio adjustment parameter; by classifying the number of audio playback devices and setting different determination methods for the second audio adjustment parameter according to different numbers, the differences in audio adjustment requirements in different numbers of cases are taken into account, further expanding the application scope of this application and improving the effectiveness of the second audio adjustment parameter.
[0122] Further, based on the Figure 2 shown first embodiment, a third embodiment of the audio adjustment method of the present invention is proposed. In this embodiment, step S30 includes:
[0123] When playing the target audio, the second audio adjustment parameter is transmitted to the audio power amplifier to perform a smooth transition adjustment on the target audio based on the audio power amplifier.
[0124] In this embodiment, both the audio power amplifier and the speaker are internal devices included in the sound system. When the smart TV calculates the second audio adjustment parameter, it transmits it to the audio power amplifier of the external sound system, so that the audio power amplifier attenuates the high-frequency gain of the target audio according to the second audio adjustment parameter and then plays the target audio through the speaker, and the switching method used during the switching process is smooth switching to improve the user experience.
[0125] Further, after step S30, it further includes:
[0126] Generate and display an adjustment control for the audio parameter index corresponding to the second audio adjustment parameter for the user to independently adjust the audio parameter index based on the adjustment control.
[0127] In this embodiment, to give users greater autonomy in adjusting audio, after the smart TV switches to the next target audio, it can also display the audio parameter indicators corresponding to the second audio adjustment parameter, such as the adjustment controls for high-frequency gain, volume, etc., on the screen, so that users can make independent adjustments according to their own wishes on the basis of the automatic adjustment of the device. Among them, the adjustment controls are generally set as adjustment percentage progress bars, increase and decrease adjustment buttons, etc., which can be set arbitrarily according to actual needs and are not specifically limited in this implementation.
[0128] In this embodiment, by further performing a smooth transition when switching the target audio, the switching process is not too abrupt, improving the user's audio-visual viewing experience; by displaying the corresponding adjustment controls, greater autonomy is provided to users, and users can make further adjustments to the sound effect parameters after setting the automatic adjustment according to actual needs or personal preferences, further improving the user experience and also enhancing the intelligence of the sound effect adjustment in this application.
[0129] The present invention also provides an audio adjustment device.
[0130] The audio adjustment device includes:
[0131] A first parameter setting module 10, configured to obtain the spectrum information of the target audio and set the first audio adjustment parameter of the target audio according to the spectrum information;
[0132] A second parameter determination module 20, configured to obtain the number of audio playback devices and obtain the second audio adjustment parameter based on the number of audio playback devices and the first audio adjustment parameter;
[0133] A target audio adjustment module 30, configured to adjust the target audio according to the second audio adjustment parameter when playing the target audio.
[0134] The present invention also provides an audio adjustment device.
[0135] The audio adjustment device includes a processor, a memory, and an audio adjustment program stored on the memory and executable on the processor. When the audio adjustment program is executed by the processor, the steps of the audio adjustment method described above are implemented.
[0136] Among them, the method implemented when the audio adjustment program is executed can refer to the various embodiments of the audio adjustment method of the present invention and will not be elaborated here.
[0137] The present invention also provides a computer-readable storage medium.
[0138] An audio adjustment program is stored on the computer-readable storage medium of the present invention. When the audio adjustment program is executed by a processor, the steps of the audio adjustment method described above are implemented.
[0139] Among them, for the method implemented when the audio adjustment program is executed, reference can be made to the various embodiments of the audio adjustment method of the present invention, which will not be elaborated here.
[0140] It should be noted that in this text, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or system comprising a series of elements not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such a process, method, article or system. Without further limitation, an element defined by the statement "comprising one..." does not exclude the existence of another identical element in the process, method, article or system comprising that element.
[0141] The serial numbers of the above embodiments of the present invention are only for description and do not represent the superiority or inferiority of the embodiments.
[0142] Through the description of the above embodiments, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product is stored in a storage medium as described above (such as ROM / RAM, magnetic disk, optical disc) and includes several instructions for causing an audio adjustment device to execute the methods described in the various embodiments of the present invention.
[0143] The above are only the preferred embodiments of the present invention, and do not limit the patent scope of the present invention accordingly. Any equivalent structure or equivalent process transformation made by using the specification and drawings of the present invention, or directly or indirectly applied to other related technical fields, shall be equally included in the patent protection scope of the present invention.
Claims
1. An audio adjustment method, characterized in that: The method comprises: Acquiring spectrum information of a target audio, and setting a first audio adjustment parameter of the target audio according to the spectrum information, includes: Obtaining a switching type of a switching event and a high-frequency volume ratio in a spectrum file corresponding to the switching event; In combination with the switching type and the high-frequency volume ratio, a first audio adjustment parameter of the target audio is set, where the first audio adjustment parameter includes a high-frequency gain attenuation ratio, including: Finding a high-frequency ratio threshold corresponding to the switching type from a preset type threshold comparison rule; When the high frequency volume ratio exceeds the high frequency ratio threshold, setting the high frequency gain attenuation ratio of the target audio to a complementary value of the high frequency ratio threshold; Acquire the number of audio playback devices, and obtain a second audio adjustment parameter based on the number of audio playback devices and the first audio adjustment parameter; When playing the target audio, the target audio is adjusted according to the second audio adjustment parameter.
2. The method according to claim 1, wherein The obtaining of the switching type of the switching event and the high frequency volume ratio in the spectrum file corresponding to the switching event includes: Starting handover event detection, and determining a handover type of the handover event when the handover event is detected; A spectrum file of the target audio pointed to by the switching event is obtained, and a high-frequency volume ratio is identified from the spectrum file as the spectrum information.
3. The method according to claim 1, wherein The acquiring the number of audio playback devices and obtaining the second audio adjustment parameter based on the number of audio playback devices and the first audio adjustment parameter includes: detecting actual operating power of the externally connected audio playback devices, and obtaining the number of externally connected audio playback devices having actual operating power greater than a preset minimum power threshold as the number of audio playback devices; Determine whether the number of audio playback devices is greater than 1; If so, obtain an adjustment average value of the first audio adjustment parameter divided equally among each of the externally connected speakers, and use the adjustment average value as the second audio adjustment parameter.
4. The method according to claim 3, wherein After determining whether the number of the audio playback devices is greater than 1, the method further includes: If not, when the number of the audio playback device is 1, the first audio adjustment parameter is used as the second audio adjustment parameter; or When the number of the audio playback devices is 0, an abnormal prompt message is generated and output.
5. The method according to claim 1, wherein The step of adjusting the target audio according to the second audio adjustment parameter when playing the target audio includes: When playing the target audio, the second audio adjustment parameter is transmitted to the audio power amplifier, so as to perform smooth transition adjustment on the target audio based on the audio power amplifier.
6. The method according to any one of claims 1 to 5, wherein After adjusting the target audio according to the second audio adjustment parameter when playing the target audio, the method further includes: An adjustment control of an audio parameter indicator corresponding to the second audio adjustment parameter is generated and displayed, so that the user can independently adjust the audio parameter indicator based on the adjustment control.
7. An audio adjustment device, characterized in that: The audio adjustment device comprises: a first parameter setting module, configured to obtain spectrum information of a target audio, and set a first audio adjustment parameter of the target audio according to the spectrum information; The first parameter setting module is further configured to obtain a switching type of a switching event and a high-frequency volume ratio in a spectrum file corresponding to the switching event; and set a first audio adjustment parameter of the target audio based on the switching type and the high-frequency volume ratio, wherein the first audio adjustment parameter includes a high-frequency gain attenuation ratio. The first parameter setting module is further configured to find a high-frequency ratio threshold value corresponding to the switching type from a preset type threshold comparison rule; when the high-frequency volume ratio exceeds the high-frequency ratio threshold value, set the high-frequency gain attenuation ratio of the target audio to a complementary value of the high-frequency ratio threshold value; a second parameter determination module, configured to obtain the number of audio playback devices and obtain a second audio adjustment parameter based on the number of audio playback devices and the first audio adjustment parameter; The target audio adjustment module is used to adjust the target audio according to the second audio adjustment parameter when playing the target audio.
8. An audio adjustment device, characterized in that: The audio adjustment device includes: a memory, a processor, and an audio adjustment program stored in the memory and executable on the processor. When the audio adjustment program is executed by the processor, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores an audio adjustment program, which implements the steps of the method according to any one of claims 1 to 6 when executed by a processor.
Citation Information
Patent Citations
Audio playing equipment and video control method
CN103533270A
Method for adjusting parameter of audio service and terminal
WO2020077510A1