CN114531611B - Volume adjusting method, storage medium and terminal equipment - Google Patents

Volume adjusting method, storage medium and terminal equipment Download PDF

Info

Publication number
CN114531611B
CN114531611B CN202011322680.0A CN202011322680A CN114531611B CN 114531611 B CN114531611 B CN 114531611B CN 202011322680 A CN202011322680 A CN 202011322680A CN 114531611 B CN114531611 B CN 114531611B
Authority
CN
China
Prior art keywords
sound source
source data
determining
volume
reference sound
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011322680.0A
Other languages
Chinese (zh)
Other versions
CN114531611A (en
Inventor
周树荣
胡乐
曹芝勇
毛明海
药欣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL Digital Technology Co Ltd
Original Assignee
Shenzhen TCL Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL Digital Technology Co Ltd filed Critical Shenzhen TCL Digital Technology Co Ltd
Priority to CN202011322680.0A priority Critical patent/CN114531611B/en
Publication of CN114531611A publication Critical patent/CN114531611A/en
Application granted granted Critical
Publication of CN114531611B publication Critical patent/CN114531611B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/439Processing of audio elementary streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4438Window management, e.g. event handling following interaction with the user interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/485End-user interface for client configuration
    • H04N21/4858End-user interface for client configuration for modifying screen layout parameters, e.g. fonts, size of the windows

Abstract

The application discloses a volume adjusting method, a storage medium and terminal equipment, wherein the method comprises the steps of obtaining a sound source data set corresponding to target equipment; determining environmental parameters of the reference sound source data based on the sound source data set; and adjusting the volume of the target equipment based on the sound source data set and the environment parameter. According to the method and the device, the original sound source data and the reference sound source data of the target television are obtained, the volume of the target device is determined to be adjusted according to the environment parameters of the reference application data and the original sound source data, so that the volume can be automatically adjusted according to the sound source data, and convenience is brought to users.

Description

Volume adjusting method, storage medium and terminal equipment
Technical Field
The present disclosure relates to the field of terminal devices, and in particular, to a volume adjustment method, a storage medium, and a terminal device.
Background
Along with the rapid development of intelligent home of the Internet of things, intelligent home equipment such as intelligent televisions and intelligent air conditioners become an indispensable component of life of people. The intelligent television is used as an important member of important intelligent home, and is mainly used for providing large-screen audio and video experience for users. However, the sound effect of the existing intelligent television is often influenced by external environment, so that the user obtains the situation that the volume of the audio played by the intelligent television is larger or smaller, and the user agent is unchanged.
Disclosure of Invention
The technical problem to be solved by the application is to provide a volume adjusting method, a storage medium and terminal equipment aiming at the defects of the prior art.
In order to solve the above technical problem, a first aspect of an embodiment of the present application provides a volume adjustment method, where the method includes:
acquiring a sound source data set corresponding to target equipment, wherein the sound source data set comprises original sound source data and reference sound source data corresponding to the original sound source data;
determining an environmental parameter corresponding to the reference sound source data based on the sound source data set, wherein the environmental parameter is used for reflecting environmental information of terminal equipment for acquiring the reference sound source data;
and adjusting the volume of the target equipment based on the sound source data set and the environment parameter.
The volume adjustment method, wherein the obtaining the sound source data set of the target device specifically includes:
the original sound source data are sound source data played by the target equipment, and the reference sound source data are sound source data acquired based on the original sound source data played by the target terminal equipment.
The volume adjustment method, wherein the obtaining the sound source data set corresponding to the target device specifically includes:
acquiring original sound source data of the target equipment through network communication, and picking up reference sound source data of the target equipment through an audio pick-up device;
and taking the sound source data set formed by the acquired original sound source data and the reference sound source data as the sound source data set corresponding to the target equipment.
The volume adjusting method, wherein the determining, based on the sound source data set, the environmental parameter corresponding to the reference sound source data specifically includes:
determining sound source error information of the target device based on the original sound source data and the reference sound source data;
and determining the environmental parameters of the reference sound source data based on the sound source error information and the reference sound source data.
The volume adjusting method, wherein the determining, based on the sound source data set, the environmental parameter corresponding to the reference sound source data specifically includes:
determining sound source error information of the target device based on the original sound source data and the reference sound source data;
determining a volume adjustment factor of the target device based on the sound source error information, the environmental parameter, and the original sound source data;
and adjusting the volume of the target equipment based on the volume adjustment factor.
The method for adjusting volume, wherein the determining the audio error information of the target device based on the original audio data and the reference audio data specifically includes:
performing adaptive filtering processing on the reference sound source data to obtain filtered sound source data;
and acquiring error signals of the original sound source data and the filtered sound source data to obtain sound source error information of the target equipment.
The method for adjusting volume, wherein the performing adaptive filtering processing on the reference sound source data to obtain filtered sound source data specifically includes:
determining a convergence factor of adaptive filtering corresponding to the reference sound source data based on a steepest descent method;
and determining the filtered sound source data based on the convergence factor and the reference sound source data.
The volume adjusting method, wherein the determining, based on the audio error information, the environmental parameter of the reference audio data specifically includes:
acquiring the mean square error corresponding to the reference sound source data;
and determining environmental parameters of the reference sound source data based on the mean square error, the sound source error information and the reference sound source data.
A second aspect of the embodiments of the present application provides a volume adjustment device, including:
the acquisition module is used for acquiring a sound source data set corresponding to the target equipment, wherein the sound source data set comprises original sound source data and reference sound source data corresponding to the original sound source data;
the determining module is used for determining environmental parameters corresponding to the reference sound source data based on the sound source data set, wherein the environmental parameters are used for reflecting environmental position information of terminal equipment for acquiring the reference sound source data;
and the adjusting module is used for adjusting the volume of the target equipment based on the sound source data set and the environment parameter.
A third aspect of the embodiments provides a computer-readable storage medium storing one or more programs executable by one or more processors to implement steps in a volume adjustment method as described in any one of the above.
A fourth aspect of the present embodiment provides a terminal device, including: a processor, a memory, and a communication bus; the memory has stored thereon a computer readable program executable by the processor;
the communication bus realizes connection communication between the processor and the memory;
the processor, when executing the computer readable program, implements the steps of the volume adjustment method as described in any one of the above.
The beneficial effects are that: compared with the prior art, the application provides a volume adjusting method, a storage medium and a terminal device, wherein the method comprises the steps of obtaining a sound source data set corresponding to target equipment, wherein the sound source data set comprises original sound source data and reference sound source data, and the environment parameters of the original sound source data are higher than those of the reference sound source data; determining environmental parameters of the reference sound source data based on the sound source data set; and adjusting the volume of the target equipment based on the sound source data set and the environment parameter. According to the method and the device, the original sound source data and the reference sound source data of the target television are obtained, the volume of the target device is determined to be adjusted according to the environment parameters of the reference application data and the original sound source data, so that the volume can be automatically adjusted according to the sound source data, and convenience is brought to users.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without creative effort for a person of ordinary skill in the art.
Fig. 1 is a schematic diagram of an application scenario of a volume adjustment method provided in the present application.
Fig. 2 is a flowchart of a volume adjustment method provided in the present application.
Fig. 3 is a flow chart of a volume adjustment method provided in the present application.
Fig. 4 is a schematic structural diagram of a volume adjusting device provided by the application.
Fig. 5 is a schematic structural diagram of a terminal device provided in the present application.
Detailed Description
The present application provides a volume adjustment method, a storage medium, and a terminal device, and for making the purposes, technical solutions, and effects of the present application clearer and more specific, the present application will be described in further detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless expressly stated otherwise, as understood by those skilled in the art. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. The term "and/or" as used herein includes all or any element and all combination of one or more of the associated listed items.
It will be understood by those skilled in the art that all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs unless defined otherwise. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
The inventor finds that with the rapid development of the intelligent home of the Internet of things, intelligent home equipment such as intelligent televisions and intelligent air conditioners become an indispensable component of life of people. The intelligent television is used as an important member of important intelligent home, and is mainly used for providing large-screen audio and video experience for users. However, the sound effect of the existing smart tv is often affected by external environments, such as the environmental volume of a home scene where the smart tv is located, the distance between the user and the smart tv, and so on. When the external environment where the intelligent television is located changes, the volume of the audio played by the intelligent television heard by the user is increased or decreased, and at the moment, the user manually adjusts the volume of the intelligent television, so that inconvenience is brought to the user.
In order to solve the above problem, in the embodiment of the present application, a sound source data set corresponding to a target device is acquired, and based on the sound source data set, an environmental parameter of the reference sound source data is determined; and adjusting the volume of the target equipment based on the sound source data set and the environment parameter. According to the method and the device, the original sound source data and the reference sound source data of the target television are obtained, the volume of the target device is determined to be adjusted according to the environment parameters of the reference application data and the original sound source data, so that the volume can be automatically adjusted according to the sound source data, and convenience is brought to users.
By way of example, the embodiments of the present application may be applied to a scenario as shown in fig. 1. In this scenario, first, the smart tv 1 may play the original sound source data and send the original sound source data to the smart phone 2; the smart phone 1 picks up the original sound source data played by the smart television 2 through a sound pick-up arranged on the smart phone 1 to obtain reference sound source data, and receives the original sound source data sent by the smart television 2; after the reference sound source data and the original source data are acquired, determining environmental parameters of the reference sound source data based on the reference sound source data and the original source data; based on the sound source data set and the environmental parameters, determining the volume corresponding to the intelligent television 2, and sending volume information to the intelligent television 2; the smart tv 2 adjusts its own volume based on the volume information.
It is to be understood that, in the above application scenario, although the actions of the embodiments of the present application are described as being partially performed by the terminal device 2 and partially performed by the server 1, the present application is not limited in terms of the execution subject, as long as the actions disclosed in the embodiments of the present application are performed.
It should be noted that the above application scenario is only shown for the convenience of understanding the present application, and embodiments of the present application are not limited in this respect. Rather, embodiments of the present application may be applied to any scenario where applicable. For example, the smart television is connected with a sound box assembled on the smart air conditioner, and the audio played by the sound box is played through the sound box; after the intelligent television acquires the volume, the volume can be sent to the intelligent air conditioner based on the volume, so that the volume of the sound box configured by the intelligent air conditioner can be adjusted through the intelligent air conditioner, and the effect of adjusting the playing volume of the intelligent television can be achieved.
The application will be further described by the description of embodiments with reference to the accompanying drawings.
The present embodiment provides a volume adjustment method, as shown in fig. 2 and fig. 3, including:
s10, acquiring a sound source data set corresponding to the target equipment.
Specifically, the sound source data set includes original sound source data and reference sound source data, and the target device is a terminal device for playing the sound source data, for example, a smart television or the like. The original sound source data is data used by the target device to play as audio information, for example, the original sound source data is audio data sent to the target device by an external signal source, or the external signal source sends audio information in video data of the target device. The reference sound source data is sound source data picked up by the electronic device when the target device plays the original sound source data, where the electronic device may be a device for running the volume adjustment method provided in this embodiment, or may be a device connected to a device for the volume adjustment method provided in this embodiment, and when the electronic device is a device connected to a device for the volume adjustment method provided in this embodiment, the electronic device transmits the reference sound source data to the device for the volume adjustment method provided in this embodiment after picking up the parameter sound source data. In a specific implementation manner of this embodiment, the electronic device may be a smart phone.
In one implementation manner of this embodiment, the original sound source data is sound source data played by the target device, and the reference sound source data is sound source data obtained based on the original sound source data played by the target terminal device. Correspondingly, the acquiring the sound source data set corresponding to the target device specifically includes:
acquiring original sound source data of the target equipment through network communication, and picking up reference sound source data of the target equipment through an audio pick-up device;
and taking the sound source data set formed by the acquired original sound source data and the reference sound source data as the sound source data set corresponding to the target equipment.
Specifically, when the reference sound source data is the original sound source data played by the target device, the audio pick-up device picks up the sound source data. In other words, after the target device acquires the original sound source data, the target device plays the original sound source data and transmits the original sound source data to the electronic device (for example, a smart phone or the like) for running the volume adjustment method provided in this embodiment through network communication, and the electronic device receives the original sound source data and picks up the sound source data played by the target device through the audio pickup device, so as to obtain the reference sound source data.
In one implementation manner of this embodiment, since the reference audio source data is obtained by picking up the original audio source data by the audio pickup device, the similarity between the audio content corresponding to the original audio source data and the audio content corresponding to the reference audio source data may satisfy a preset condition, where the preset condition may be preset, and is used to measure whether the audio source data picked up by the pickup device may be used as a basis of the reference audio source data; when the similarity of the audio content corresponding to the audio data picked up by the pick-up device and the audio content corresponding to the original audio data meets a preset condition, the audio data picked up by the pick-up device can be used as reference audio data; on the contrary, when the similarity of the audio content corresponding to the audio data picked up by the pickup device and the audio content corresponding to the original audio data does not meet the preset condition, the audio data picked up by the pickup device cannot be used as the reference audio data. In a specific implementation manner of this embodiment, the similarity between the audio content corresponding to the original audio source data and the audio content corresponding to the reference audio source data is greater than a preset threshold, where the preset threshold may be preset, for example, 95%.
In addition, the reference sound source data is picked up by the audio pick-up device, and when the pick-up device picks up the reference sound source data, the pick-up device picks up the environmental sound of the environment where the target device is located, so that the reference sound source data carries noise, and therefore, the environmental parameters of the original sound source data are higher than those of the reference sound source data. For example, the pickup device picks up the user speaking voice or the like at the time of picking up the reference sound source data.
In one implementation manner of the present embodiment, in order to quickly acquire reference sound source data, before acquiring a sound source data set corresponding to a target device, an electronic device configured to execute the volume adjustment method provided by the present embodiment communicates with the target device, and negotiates a playing time period of the original sound source data; the target device plays the original sound source data in the playing time period, and the electronic device picks up the sound source data through the audio pick-up device (e.g. a pickup, a microphone, etc.) in the playing time period to obtain the reference sound source data corresponding to the target device.
In one implementation manner of the present embodiment, in order to improve the accuracy of the playing volume of the target device, the electronic device for executing the volume adjustment method provided in the present embodiment of the present invention may execute the volume adjustment method provided in the present embodiment once every preset time interval. For this reason, the target device negotiates with the electronic device for an interval time for executing the volume adjustment method provided in the present embodiment at an interval when it is connected to the electronic device, and for a time for executing the volume adjustment method provided in the present embodiment for the first time; the electronic device runs the volume adjustment method provided by the embodiment based on the time and the interval time of the first execution, and the target device transmits the original sound source data to the electronic device based on the time and the interval time of the first execution, so that the electronic device can acquire the original sound source data and the reference sound source data each time. Of course, in practical application, when the electronic device and the target device carry the time and the interval time of the first execution, the playing duration of the original sound source data is obtained each time the volume adjustment method provided in this embodiment is operated, so that the electronic device can determine the picking duration of playing the audio data by the electronic device each time. In addition, the electronic device can also pick up the sound source data played by the target device in real time, so that the volume of the target device is adjusted in real time. And when the electronic equipment is disconnected with the target equipment, the electronic equipment automatically stops running the volume adjusting method provided by the embodiment.
S20, determining the environmental parameters of the reference sound source data based on the sound source data set.
Specifically, the environmental parameter is used for reflecting environmental information of the terminal device acquiring the reference sound source data, where the environmental information may include a distance between the terminal device acquiring the reference sound source data and the target device, environmental noise of an environment where the terminal device acquiring the reference sound source data is located, and the like. In one implementation of this embodiment, when determining an environmental parameter based on a sound source data set, the signal strength and the signal-to-noise ratio of reference sound source data are used as influencing factors of the environmental parameter, and the environmental parameter is determined by comparing sound source error information based on the original sound source data and the reference sound source data. Thus, in one implementation manner of this embodiment, the determining, based on the sound source data set, the environmental parameter of the reference sound source data specifically includes:
determining sound source error information of the target device based on the original sound source data and the reference sound source data;
and determining the environmental parameters of the reference sound source data based on the sound source error information and the reference sound source data.
Specifically, the audio error information is used to reflect audio content that is different from the original audio data in the reference audio data. When the sound source error information of the target equipment is determined, the original sound source data are standard sound source data corresponding to the reference sound source data, and the sound source error information are difference audio information of the reference sound source data relative to the corresponding standard sound source data. In other words, the sound source error information is audio information different from the original sound source data in the reference sound source data.
In one implementation manner of this embodiment, the determining, based on the original sound source data and the reference sound source data, sound source error information of the target device specifically includes:
performing adaptive filtering processing on the reference sound source data to obtain filtered sound source data;
and acquiring error signals of the original sound source data and the filtered sound source data to obtain sound source error information of the target equipment.
Specifically, the adaptive filtering is a finite impulse response digital filtering method with adaptively adjustable parameters, and the input signal vector of the adaptive filtering is determined based on a reference sound source signal, for example, the reference sound source signal is sampled at different moments. In other words, when the adaptive filtering processing is performed on the reference sound source data, the reference sound source signal is first sampled at different moments to obtain an input signal, and then the input signal is adaptively filtered to obtain filtered sound source data, wherein the filtered sound source data is equal to the linear weighted sum of elements of the input signal.
For example, the input signal X (n) constitutes a sampled signal vector for the sampled signal X (n):
X(n)=[x(n),x(n-1),x(n-2),…x(n-L+1)]
then, the filtered sound source data y (n) can be expressed as:
y(n)=W(n) T X(n)
wherein W (n) is an x (n) weight coefficient.
Further, after determining the expression of the filtered sound source data, weight coefficients in the expression of the filtered sound source data may be learned based on a steepest descent method, and filtered sound source data corresponding to the reference sound source data may be determined based on the learned weight coefficients. Correspondingly, in an implementation manner of this embodiment, performing adaptive filtering processing on the reference sound source data to obtain filtered sound source data specifically includes:
determining a convergence factor of adaptive filtering corresponding to the reference sound source data based on a steepest descent method;
and determining the filtered sound source data based on the convergence factor and the reference sound source data.
Specifically, the steepest descent method is to determine a convergence factor of the adaptive filtering based on a steepest download principle of minimum mean square error and gradient estimation, wherein an objective function of the steepest descent method may be:
J(n)=E[e(n)] 2
e(n)=d(n)-y(n)
y(n)=W(n) T X(n)
X(n)=[x(n),x(n-1),x(n-2),...x(n-L+1)]
wherein, the error function corresponding to the e (n) error signal, X (n) is a sampling signal X (n) to form a sampling signal vector, X (n) is a sampling signal at the n-th moment, X (n-1) is a sampling signal at the n-1-th moment, d (n) is original sound source data, and L+1 represents the number of the sampling signals.
The convergence factor of the adaptive filtering is used for determining a weight coefficient corresponding to the reference sound source data, wherein the latter weight coefficient vector can be obtained from the weight coefficient vector of the previous moment, the error information of the previous moment, the input signal vector of the previous moment and the convergence factor of the adaptive filtering. For example, where the weight coefficient vector of n+1 is W (n+1) and the weight coefficient vector of n is W (n) at two adjacent times n+1 and n, then the relationship between W (n+1) and W (n) can be expressed as:
wherein,as the partial derivative of the error function, it can be used μX (n) T e (n) instead, the corresponding relationship of W (n+1) to W (n) may be expressed as:
W(n+1)=W(n)+μX(n) T e(n)
where μ represents the adaptive filter convergence factor.
Further, after determining the convergence factor of the adaptive filtering, filtered sound source data corresponding to the reference sound source data may be determined based on the convergence factor of the adaptive filtering, so that sound source error information corresponding to the target device may be determined, where the sound source error information is error information of the original sound source data and the filtered sound source data. For example, the filtered source data is denoted as y (n), the original source data is denoted as d (n), and then the error signal is: e (n) =d (n) -y (n).
In an implementation manner of this embodiment, the determining, based on the audio error information, the environmental parameter of the reference audio data specifically includes:
acquiring the mean square error corresponding to the reference sound source data;
and determining environmental parameters of the reference sound source data based on the mean square error, the sound source error information and the reference sound source data.
Specifically, the mean square error is the mean square error of each signal point included in the reference sound source data, where the calculation formula of the mean square error may be:
wherein n represents the number of sampling signals included in the reference audio source data, x i Representing the i-th sampling signal.
After the mean square error is obtained, calculating an environmental parameter based on the mean square error, the sound source error information and the reference sound source data, wherein a calculation formula of the environmental parameter may be:
J(n)=E[e(n)] 2
where S represents the mean square error, E (n) represents the source error information, and X (n) represents the sampling signal X (n) to constitute a sampling signal vector.
S30, adjusting the volume of the target equipment based on the sound source data set and the environment parameters.
Specifically, the volume refers to the volume set by the target device and used for playing the original audio data, and correspondingly, the volume adjustment of the target device refers to the volume adjustment used for playing the original audio data. The adjusting the volume of the target device may be that the electronic device running the volume adjusting method provided in this embodiment sends an adjusting instruction to the target device, so that the target device adjusts the volume based on the adjusting instruction; the electronic device running the volume adjustment method provided in this embodiment may send a target volume to the target device, where the target device directly adjusts its own configured volume to be the target volume, or determines whether volume adjustment is needed based on the target volume and its own configured current volume, and when volume adjustment is needed, automatically adjusts the configured volume to be the target volume; the electronic device running the volume adjustment method provided in this embodiment may send an adjustment coefficient to the target device, where the target device determines a target volume based on its own configured current volume and the adjustment coefficient, and adjusts its own configured current volume to the target volume. In the embodiment, the volume data of the target device is adjusted based on the sound source data set and the environmental parameter, and the signal-to-noise ratio of the reference sound source data and the signal strength corresponding to the original sound source data are used as the influence factors of the environmental parameter, because the signal strength can reflect the distance between the electronic device (such as a smart phone carried by a user) and the target device (such as a smart television), the signal-to-noise ratio can reflect the interference degree of the current environmental noise on the sound source, and the accuracy of the volume adjustment factor can be improved by adopting the signal strength and the signal-to-noise ratio as the influence factors.
In one implementation manner of this embodiment, adjusting the volume of the target device based on the sound source data set and the environmental parameter specifically includes:
determining sound source error information of the target device based on the original sound source data and the reference sound source data;
determining a volume adjustment factor of the target device based on the sound source error information, the environmental parameter, and the original sound source data;
and adjusting the volume of the target equipment based on the volume adjustment factor.
Specifically, the audio error information is the same as the audio error information described above, and the determination process is the same, which is not described herein, and reference may be made to the description of the audio error information described above. The volume adjustment factor is used for adjusting the volume of the target device, wherein a calculation formula of the volume adjustment factor may be:
wherein μ is a convergence factor, Q (n) is an environmental parameter, e (n) is sound source error information, S is a mean square error, X (n) is a sampling signal X (n) to form a sampling signal vector, Y (n) is original sound source data, and B (n) is a volume adjustment factor.
And after the volume adjustment factor is acquired, the volume adjustment factor is taken as an adjustment proportion to adjust the volume of the target equipment. For example, B (n) =1.5, for example, represents that the actual volume is 1.5 times the ideal volume, and the actual volume needs to be reduced by 1.5 times. In addition, in practical application, when the target device is connected with the sound box, the adjusted volume can be sent to the sound box, so that the sound box plays the original sound source data according to the volume. For example, the target device is connected with a sound box configured on the refrigerator, the target device sends the sound volume to the air conditioner, and the sound volume of the sound box is adjusted through the air conditioner, so that the sound volume of the sound box is matched with the adjusted sound volume of the target device, and the target device plays the adjustment of the sound volume.
In summary, the present embodiment provides a method for adjusting volume, which includes obtaining a sound source data set corresponding to a target device; determining environmental parameters of the reference sound source data based on the sound source data set; and adjusting the volume of the target equipment based on the sound source data set and the environment parameter. According to the method and the device for adjusting the volume of the target equipment, the original sound source data and the reference sound source data of the target television are obtained, and the volume of the target equipment is determined to be adjusted according to the environment parameters of the reference application data and the original sound source data, so that the volume can be automatically adjusted according to the sound source data, and convenience is brought to users.
Based on the above-mentioned volume adjustment method, the present embodiment provides a volume adjustment device, as shown in fig. 4, which includes
The acquisition module is used for acquiring a sound source data set corresponding to the target equipment, wherein the sound source data set comprises original sound source data and reference sound source data corresponding to the original sound source data;
the determining module is used for determining environmental parameters corresponding to the reference sound source data based on the sound source data set, wherein the environmental parameters are used for reflecting environmental position information of terminal equipment for acquiring the reference sound source data;
and the adjusting module is used for adjusting the volume of the target equipment based on the sound source data set and the environment parameter.
In one embodiment, the original sound source data is sound source data played by the target device, and the reference sound source data is sound source data acquired based on the original sound source data played by the target terminal device.
In one embodiment, the acquiring module specifically includes:
the acquisition unit is used for acquiring original sound source data of the target equipment through network communication and picking up reference sound source data of the target equipment through the audio pick-up equipment;
and the generating unit is used for taking the sound source data set formed by the acquired original sound source data and the reference sound source data as the sound source data set corresponding to the target equipment.
In one embodiment, the determining module includes:
a first determining unit configured to determine sound source error information of the target device based on the original sound source data and the reference sound source data;
and the second determining unit is used for determining the environmental parameters of the reference sound source data based on the sound source error information and the reference sound source data.
In one embodiment, the first determining unit specifically includes:
a first determination subunit, configured to determine, based on the original sound source data and the reference sound source data, sound source error information of the target device;
a second determining subunit, configured to determine a volume adjustment factor of the target device based on the sound source error information, the environmental parameter, and the original sound source data;
and adjusting the volume of the target equipment based on the volume adjustment factor.
In one embodiment, the first determining subunit specifically includes:
the filtering block is used for carrying out self-adaptive filtering processing on the reference sound source data so as to obtain filtered sound source data;
and the first acquisition block is used for acquiring error signals of the original sound source data and the filtered sound source data so as to obtain sound source error information of the target equipment.
In one embodiment, the filtering block is specifically configured to:
determining a convergence factor of adaptive filtering corresponding to the reference sound source data based on a steepest descent method;
and determining the filtered sound source data based on the convergence factor and the reference sound source data.
In one embodiment, the second determining subunit specifically includes:
the second acquisition block is used for acquiring the mean square error corresponding to the reference sound source data;
and the determining block is used for determining the environmental parameters of the reference sound source data based on the mean square error, the sound source error information and the reference sound source data.
Based on the above-described volume adjustment method, the present embodiment provides a computer-readable storage medium storing one or more programs executable by one or more processors to implement the steps in the volume adjustment method as described in the above-described embodiment.
Based on the above-mentioned volume adjustment method, the present application further provides a terminal device, as shown in fig. 5, which includes at least one processor (processor) 20; a display screen 21; and a memory (memory) 22, which may also include a communication interface (Communications Interface) 23 and a bus 24. Wherein the processor 20, the display 21, the memory 22 and the communication interface 23 may communicate with each other via a bus 24. The display screen 21 is configured to display a user guidance interface preset in the initial setting mode. The communication interface 23 may transmit information. The processor 20 may invoke logic instructions in the memory 22 to perform the methods of the embodiments described above.
Further, the logic instructions in the memory 22 described above may be implemented in the form of software functional units and stored in a computer readable storage medium when sold or used as a stand alone product.
The memory 22, as a computer readable storage medium, may be configured to store a software program, a computer executable program, such as program instructions or modules corresponding to the methods in the embodiments of the present disclosure. The processor 20 performs functional applications and data processing, i.e. implements the methods of the embodiments described above, by running software programs, instructions or modules stored in the memory 22.
The memory 22 may include a storage program area that may store an operating system, at least one application program required for functions, and a storage data area; the storage data area may store data created according to the use of the terminal device, etc. In addition, the memory 22 may include high-speed random access memory, and may also include nonvolatile memory. For example, a plurality of media capable of storing program codes such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or a transitory storage medium may be used.
In addition, the specific processes that the storage medium and the plurality of instruction processors in the terminal device load and execute are described in detail in the above method, and are not stated here.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting thereof; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.

Claims (10)

1. A method of volume adjustment, the method comprising:
acquiring a sound source data set corresponding to target equipment, wherein the sound source data set comprises original sound source data and reference sound source data corresponding to the original sound source data;
determining an environmental parameter corresponding to the reference sound source data based on the sound source data set, wherein the environmental parameter is used for reflecting environmental information of terminal equipment for acquiring the reference sound source data;
adjusting the volume of the target device based on the sound source data set and the environmental parameter;
wherein, based on the sound source data set, determining the environmental parameter corresponding to the reference sound source data specifically includes:
determining sound source error information of the target device based on the original sound source data and the reference sound source data;
and determining the environmental parameters of the reference sound source data based on the sound source error information and the reference sound source data, wherein the signal strength and the signal-to-noise ratio of the reference sound source data are used as influencing factors of the environmental parameters.
2. The method according to claim 1, wherein the original sound source data is sound source data played by a target device, and the reference sound source data is sound source data acquired based on the original sound source data played by a target terminal device.
3. The method for adjusting volume according to claim 2, wherein the acquiring the sound source data set corresponding to the target device specifically includes:
acquiring original sound source data of the target equipment through network communication, and picking up reference sound source data of the target equipment through an audio pick-up device;
and taking the sound source data set formed by the acquired original sound source data and the reference sound source data as the sound source data set corresponding to the target equipment.
4. The method for adjusting volume according to claim 1, wherein determining the environmental parameter corresponding to the reference sound source data based on the sound source data set specifically includes:
determining sound source error information of the target device based on the original sound source data and the reference sound source data;
determining a volume adjustment factor of the target device based on the sound source error information, the environmental parameter, and the original sound source data;
and adjusting the volume of the target equipment based on the volume adjustment factor.
5. The method for volume adjustment according to claim 4, wherein determining the sound source error information of the target device based on the original sound source data and the reference sound source data specifically includes:
performing adaptive filtering processing on the reference sound source data to obtain filtered sound source data;
and acquiring error signals of the original sound source data and the filtered sound source data to obtain sound source error information of the target equipment.
6. The method of claim 5, wherein the adaptively filtering the reference audio source data to obtain filtered audio source data specifically includes:
determining a convergence factor of adaptive filtering corresponding to the reference sound source data based on a steepest descent method;
and determining the filtered sound source data based on the convergence factor and the reference sound source data.
7. The method of volume adjustment according to claim 1, wherein determining the environmental parameter of the reference sound source data based on the sound source error information specifically includes:
acquiring the mean square error corresponding to the reference sound source data;
and determining environmental parameters of the reference sound source data based on the mean square error, the sound source error information and the reference sound source data.
8. A volume adjustment device, characterized in that the volume adjustment device comprises:
the acquisition module is used for acquiring a sound source data set corresponding to the target equipment, wherein the sound source data set comprises original sound source data and reference sound source data corresponding to the original sound source data;
the determining module is used for determining environmental parameters corresponding to the reference sound source data based on the sound source data set, wherein the environmental parameters are used for reflecting environmental position information of terminal equipment for acquiring the reference sound source data;
the adjusting module is used for adjusting the volume of the target equipment based on the sound source data set and the environment parameters;
wherein, based on the sound source data set, determining the environmental parameter corresponding to the reference sound source data specifically includes:
determining sound source error information of the target device based on the original sound source data and the reference sound source data;
and determining the environmental parameters of the reference sound source data based on the sound source error information and the reference sound source data, wherein the signal strength and the signal-to-noise ratio of the reference sound source data are used as influencing factors of the environmental parameters.
9. A computer-readable storage medium storing one or more programs executable by one or more processors to implement the steps in the volume adjustment method of any of claims 1-7.
10. A terminal device, comprising: a processor, a memory, and a communication bus; the memory has stored thereon a computer readable program executable by the processor;
the communication bus realizes connection communication between the processor and the memory;
the processor, when executing the computer readable program, implements the steps of the volume adjustment method according to any one of claims 1-7.
CN202011322680.0A 2020-11-23 2020-11-23 Volume adjusting method, storage medium and terminal equipment Active CN114531611B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011322680.0A CN114531611B (en) 2020-11-23 2020-11-23 Volume adjusting method, storage medium and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011322680.0A CN114531611B (en) 2020-11-23 2020-11-23 Volume adjusting method, storage medium and terminal equipment

Publications (2)

Publication Number Publication Date
CN114531611A CN114531611A (en) 2022-05-24
CN114531611B true CN114531611B (en) 2024-04-02

Family

ID=81618746

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011322680.0A Active CN114531611B (en) 2020-11-23 2020-11-23 Volume adjusting method, storage medium and terminal equipment

Country Status (1)

Country Link
CN (1) CN114531611B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6718036B1 (en) * 1999-12-15 2004-04-06 Nortel Networks Limited Linear predictive coding based acoustic echo cancellation
CN101600030A (en) * 1998-07-13 2009-12-09 艾利森电话股份有限公司 Digital adaptive filter and filtering method
JP2014168200A (en) * 2013-02-28 2014-09-11 Rion Co Ltd Hearing aid and muffled sound suppression device
CN108736982A (en) * 2017-04-24 2018-11-02 腾讯科技(深圳)有限公司 Acoustic communication processing method, device and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101600030A (en) * 1998-07-13 2009-12-09 艾利森电话股份有限公司 Digital adaptive filter and filtering method
US6718036B1 (en) * 1999-12-15 2004-04-06 Nortel Networks Limited Linear predictive coding based acoustic echo cancellation
JP2014168200A (en) * 2013-02-28 2014-09-11 Rion Co Ltd Hearing aid and muffled sound suppression device
CN108736982A (en) * 2017-04-24 2018-11-02 腾讯科技(深圳)有限公司 Acoustic communication processing method, device and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
田少勃.声学回声消除的DSP硬件实现.中国优秀硕士论文,2017,2.2,2.3,2.5.3部分. *

Also Published As

Publication number Publication date
CN114531611A (en) 2022-05-24

Similar Documents

Publication Publication Date Title
US11276414B2 (en) Method and device for processing audio signal using audio filter having non-linear characteristics to prevent receipt of echo signal
CN108630219B (en) Processing system, method and device for echo suppression audio signal feature tracking
CN106782584A (en) Audio signal processing apparatus, method and electronic equipment
CN110289009B (en) Sound signal processing method and device and interactive intelligent equipment
WO2013078474A1 (en) Processing signals
CN111405416B (en) Stereo recording method, electronic device and storage medium
CN108540895A (en) Intelligent equalization device design method and noise cancelling headphone with intelligent equalization device
CN109285554A (en) A kind of echo cancel method, server, terminal and system
CN103595849A (en) Volume control method and terminal thereof
CN114242100B (en) Audio signal processing method, training method, device, equipment and storage medium thereof
CN114531611B (en) Volume adjusting method, storage medium and terminal equipment
US20190122687A1 (en) Method for processing audio signal and electronic device for supporting the same
CN113963716A (en) Volume balancing method, device and equipment for talking doorbell and readable storage medium
CN111128216B (en) Audio signal processing method, processing device and readable storage medium
CN112929506B (en) Audio signal processing method and device, computer storage medium and electronic equipment
CN1983805A (en) Audio-frequency adjusting system
CN106341564B (en) Signal data processing method and device and intelligent conference equipment
CN110913312B (en) Echo cancellation method and device
CN112382305B (en) Method, apparatus, device and storage medium for adjusting audio signal
CN110971943A (en) Video code rate adjusting method, device, terminal and storage medium
CN109716432B (en) Gain processing method and device, electronic equipment, signal acquisition method and system
CN110972032B (en) Method for eliminating sound and electronic device for executing method
CN116013337B (en) Audio signal processing method, training method, device, equipment and medium for model
US20200395032A1 (en) Method for eliminating sound and electronic device performing the same
CN111083137B (en) Method and device for adjusting state of terminal equipment of Internet of things and operating system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant