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

Volume adjusting method, storage medium and terminal equipment Download PDF

Info

Publication number
CN114531611A
CN114531611A CN202011322680.0A CN202011322680A CN114531611A CN 114531611 A CN114531611 A CN 114531611A CN 202011322680 A CN202011322680 A CN 202011322680A CN 114531611 A CN114531611 A CN 114531611A
Authority
CN
China
Prior art keywords
sound source
source data
determining
volume
original
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.)
Granted
Application number
CN202011322680.0A
Other languages
Chinese (zh)
Other versions
CN114531611B (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

Images

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

Landscapes

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

Abstract

The application discloses a volume adjusting method, a storage medium and a terminal device, wherein the method comprises the steps of obtaining a sound source data group corresponding to a target device; determining environmental parameters of the reference sound source data based on the sound source data group; and adjusting the volume of the target equipment based on the sound source data group and the environment parameters. According to the method and the device, 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 environmental 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 the use of a user.

Description

Volume adjusting method, storage medium and terminal equipment
Technical Field
The present application relates to the field of terminal device technologies, and in particular, to a volume adjustment method, a storage medium, and a terminal device.
Background
With the rapid development of the internet of things smart home, smart home devices such as smart televisions and smart air conditioners become indispensable components for life of people. The smart television is an important member of important smart home and is mainly used for providing large-screen sound and picture experience for users. However, the sound effect of the existing smart television is often influenced by the external environment, so that the volume of the audio played by the user through the smart television is larger or smaller, and the user agent is not changed.
Disclosure of Invention
The technical problem to be solved by the present application is to provide a volume adjusting method, a storage medium, and a terminal device, aiming at the deficiencies 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 adjusting method, where the method includes:
acquiring a sound source data group corresponding to target equipment, wherein the sound source data group comprises original sound source data and reference sound source data corresponding to the original sound source data;
determining an environment parameter corresponding to the reference sound source data based on the sound source data group, wherein the environment parameter is used for reflecting environment information of the terminal equipment for acquiring the reference sound source data;
and adjusting the volume of the target equipment based on the sound source data group and the environment parameters.
The volume adjusting method, wherein the obtaining of the sound source data set of the target device specifically includes:
the original sound source data are sound source data played by 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 adjusting method, wherein the obtaining of 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 audio picking-up equipment;
and taking a sound source data group formed by the acquired original sound source data and the acquired reference sound source data as a sound source data group corresponding to the target equipment.
The volume adjustment method, wherein the determining, based on the sound source data group, the environmental parameter corresponding to the reference sound source data specifically includes:
determining sound source error information of the target equipment 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 adjustment method, wherein the determining, based on the sound source data group, the environmental parameter corresponding to the reference sound source data specifically includes:
determining sound source error information of the target equipment 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;
adjusting the volume of the target device based on the volume adjustment factor.
The volume adjustment method, wherein the determining sound source error information of the target device based on the original sound source data and the reference sound source data specifically includes:
carrying out self-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.
In the volume adjustment method, 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 filtering sound source data based on the convergence factor and the reference sound source data.
The volume adjustment method, wherein the determining the environmental parameter of the reference sound source data based on the sound source error information specifically includes:
acquiring a mean square error corresponding to the reference sound source data;
and 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.
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 an environment parameter corresponding to the reference sound source data based on the sound source data group, wherein the environment parameter is used for reflecting environment position information of the 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 group and the environment parameters.
A third aspect of embodiments of the present application provides a computer-readable storage medium storing one or more programs, which are executable by one or more processors to implement the steps in the volume adjusting method as described in any above.
A fourth aspect of embodiments of the present application 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 in the volume adjustment method as described in any one of the above.
Has the beneficial effects that: compared with the prior art, 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 environmental 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 group; and adjusting the volume of the target equipment based on the sound source data group and the environment parameters. According to the method and the device, 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 environmental 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 the use of a user.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without any inventive work.
Fig. 1 is a schematic view 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 schematic flow chart of a volume adjustment method provided in the present application.
Fig. 4 is a schematic structural diagram of a volume adjustment device according to the present application.
Fig. 5 is a schematic structural diagram of a terminal device provided in the present application.
Detailed Description
In order to make the purpose, technical scheme and effect of the present application clearer and clearer, the present application is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the present application 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 the context clearly indicates otherwise. 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. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those within the art that, unless otherwise defined, 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. 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 internet of things smart home, smart home devices such as smart televisions and smart air conditioners become indispensable components of life of people. The smart television is an important member of important smart home and is mainly used for providing large-screen sound and picture experience for users. However, the sound effect of the existing smart tv is often influenced by external environments, such as the ambient volume of the home scene where the smart tv is located, the distance between the user and the smart tv, and the like. When the external environment where the smart television is located changes, the volume of the audio played by the smart television heard by the user is increased or decreased, and at the moment, the user manually adjusts the volume of the smart 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 obtained, 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 group and the environment parameters. According to the method and the device, the original sound source data and the reference sound source data of the target television are obtained, and the volume of the target device is determined to be adjusted according to the environmental 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 the use of a user.
For example, the embodiment of the present application can be applied to the scenario shown in fig. 1. In the scene, firstly, the smart television 1 can play original sound source data and send the original sound source data to the smart phone 2; the smart phone 1 picks up original sound source data played by the smart television 2 through a sound pick-up configured by the smart phone to obtain reference sound source data, and receives the original source data sent by the smart television 2; after reference sound source data and original source data are obtained, determining environmental parameters of the reference sound source data based on the reference sound source data and the original source data; determining the volume corresponding to the intelligent television 2 based on the sound source data set and the environment parameters, 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 embodiment of the present application are described as being performed partially by the terminal device 2 and partially by the server 1, the present application is not limited in terms of the execution subject as long as the actions disclosed in the embodiment of the present application are performed.
It should be noted that the above application scenarios are only shown for the convenience of understanding the present application, and the embodiments of the present application are not limited in any way 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 smart television is played through the sound box; after the volume is obtained by the smart television, the volume can be sent to the smart air conditioner based on the volume, so that the volume of the sound box configured by the smart air conditioner can be adjusted through the smart air conditioner, and the effect of adjusting the playing volume of the smart television can be achieved.
The following further describes the content of the application by describing the embodiments with reference to the attached drawings.
The present embodiment provides a volume adjustment method, as shown in fig. 2 and 3, the method including:
and S10, acquiring a sound source data group 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 used 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 that is picked up by an electronic device when an original sound source data is played by a target device, where the electronic device may be a device for operating the volume adjustment method provided in this embodiment, or a device connected to the device for the volume adjustment method provided in this embodiment, and when the electronic device is a device connected to the device for the volume adjustment method provided in this embodiment, the electronic device picks up parameter sound source data and then transmits the reference sound source data to the device for the volume adjustment method provided in this embodiment. In a specific implementation manner of this embodiment, the electronic device may be a smart phone.
In an implementation manner of this embodiment, 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 the target terminal device. Correspondingly, the acquiring of 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 audio picking-up equipment;
and taking a sound source data group formed by the acquired original sound source data and the acquired reference sound source data as a sound source data group corresponding to the target equipment.
Specifically, the reference sound source data is sound source data that is picked up by an audio pickup device when the target device plays the original sound source data. In other words, after acquiring the original sound source data, the target device plays the original sound source data and transmits the original sound source data to an electronic device (for example, a smart phone, etc.) for operating the volume adjustment method provided in this embodiment through network communication, where the electronic device receives the original sound source data and picks up the sound source data played by the target device through an audio pickup device to obtain reference sound source data.
In an implementation manner of this embodiment, the reference sound source data is obtained by picking up original sound source data through an audio pickup device, so that a similarity between audio content corresponding to the original sound source data and audio content corresponding to the reference sound source data can satisfy a preset condition, where the preset condition is preset and is used to measure whether the sound source data picked up by the pickup device can be used as a basis for the reference sound source data; when the similarity between the audio content corresponding to the sound source data picked by the pickup equipment and the audio content corresponding to the original sound source data meets a preset condition, the sound source data picked by the pickup equipment can be used as reference sound source data; on the contrary, when the similarity between the audio content corresponding to the sound source data picked by the pickup device and the audio content corresponding to the original sound source data does not meet the preset condition, the sound source data picked by the pickup device cannot be used as the reference sound source data. In a specific implementation manner of this embodiment, a similarity between an audio content corresponding to original sound source data and an audio content corresponding to the reference sound 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 through the audio pickup equipment, and when the pickup equipment picks up the reference sound source data, the pickup equipment picks up the environmental sound of the environment where the target equipment 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 the environmental parameters of the reference sound source data. For example, the pickup device picks up a user speech sound or the like at the time of picking up the reference sound source data.
In an implementation manner of this embodiment, in order to quickly acquire reference sound source data, before acquiring a sound source data group corresponding to a target device, an electronic device for executing the volume adjustment method provided in this 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 an audio pickup device (e.g., a sound pickup, a microphone, etc.) in the playing time period to obtain reference sound source data corresponding to the target device.
In an implementation manner of this 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 this embodiment may execute the volume adjustment method provided in this embodiment once every preset time. For this purpose, when the target device is connected to the electronic device, negotiating an interval time for executing the volume adjustment method provided by this embodiment with the electronic device at intervals, and a time for executing the volume adjustment method provided by this embodiment for the first time; the electronic device operates the volume adjustment method provided by this embodiment based on the first execution time and the interval time, and the target device transmits the original sound source data to the electronic device based on the first execution time and the interval time, so that the electronic device can acquire the original sound source data and the reference sound source data each time. Certainly, in practical applications, when the electronic device and the target device carry the first execution time and the interval time, the playing time length of the original sound source data obtained when the volume adjustment method provided by the embodiment is operated each time is carried, so that the electronic device can determine the picking time length for picking up the audio data played 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 can be 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.
And S20, determining the environmental parameters of the reference sound source data based on the sound source data group.
Specifically, the environment parameter is used to reflect environment information of the terminal device that acquires the reference sound source data, where the environment information may include a distance between the terminal device that acquires the reference sound source data and the target device, and an environmental noise of an environment in which the terminal device that acquires the reference sound source data is located. In one implementation manner of this embodiment, when determining the environmental parameter based on the sound source data group, the signal intensity and the signal-to-noise ratio of the reference sound source data are used as the influence factors of the environmental parameter, and the environmental parameter is determined by using the sound source error information based on the original sound source data and the reference sound source data. Thus, in an implementation manner of this embodiment, the determining, based on the sound source data group, the environmental parameter of the reference sound source data specifically includes:
determining sound source error information of the target equipment based on the original sound source data and the reference sound source data;
and determining environmental parameters of the reference sound source data based on the sound source error information and the reference sound source data.
Specifically, the sound source error information is used for reflecting audio content different from the original sound source data in the reference sound source data. When sound source error information of the target equipment is determined, the original sound source data is standard sound source data corresponding to the reference sound source data, and the sound source error information is difference audio information of the reference sound source data relative to the corresponding standard sound source data. In other words, the excitation error information is audio information different from the original excitation data in the reference excitation data.
In an 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:
carrying out self-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 parameters adaptively adjustable, and the input signal vector of the adaptive filtering is determined based on the reference sound source signal, for example, obtained by sampling the reference sound source signal at different time instants. In other words, when the adaptive filtering process is performed on the reference excitation data, the reference excitation signal is first sampled at different time instants to obtain an input signal, and then the input signal is adaptively filtered to obtain filtered excitation data, wherein the filtered excitation data is equal to the sum of linear weights of elements of the input signal.
For example, the input signal x (n) is a sampling signal x (n) which forms a sampling signal vector:
X(n)=[x(n),x(n-1),x(n-2),…x(n-L+1)]
then, the filtered audio source data y (n) can be expressed as:
y(n)=W(n)TX(n)
wherein W (n) is x (n) weight coefficient.
Further, after determining the expression of the filtered sound source data, the weight coefficient in the expression of the filtered sound source data may be learned based on the steepest descent method, and the filtered sound source data corresponding to the reference sound source data may be determined based on the learned weight coefficient. Correspondingly, in an implementation manner of this embodiment, 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 filtering 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, where 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)TX(n)
X(n)=[x(n),x(n-1),x(n-2),...x(n-L+1)]
wherein, e (n) the error signal corresponds to the given error function, x (n) is the sampling signal x (n) to form the sampling signal vector, x (n) is the sampling signal at the nth moment, x (n-1) is the sampling signal at the nth-1 moment, d (n) is the original sound source data, and L +1 represents the number of the sampling signals.
The convergence factor of the adaptive filtering is used to determine the weight coefficient corresponding to the reference excitation data, where the latter weight coefficient vector may be obtained from the weight coefficient vector at the previous time, the error information at the previous time, the input signal vector at the previous time, and the convergence factor of the adaptive filtering. For example, when two adjacent time instances are n +1 and n, the weight coefficient vector of n +1 is W (n +1), and the weight coefficient vector of n is W (n), the relationship between W (n +1) and W (n) can be expressed as:
Figure BDA0002793375970000101
wherein the content of the first and second substances,
Figure BDA0002793375970000102
for the partial derivative of the error function, it can take μ X (n)Te (n) instead, the relationship of W (n +1) to W (n) may be expressed as:
W(n+1)=W(n)+μX(n)Te(n)
where μ denotes an adaptive filter convergence factor.
Further, after determining the convergence factor of the adaptive filtering, filtered sound source data corresponding to 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, where the filtered excitation data is represented by y (n) and the original excitation data is represented by d (n), the error signal is: e (n) d (n) -y (n).
In an implementation manner of this embodiment, the determining, based on the sound source error information, an environmental parameter of the reference sound source data specifically includes:
acquiring a mean square error corresponding to the reference sound source data;
and 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.
Specifically, the mean square error is a mean square error of each signal point included in the reference sound source data, wherein a calculation formula of the mean square error may be:
Figure BDA0002793375970000111
wherein n represents the number of sampling signals included in the reference sound source data, xiRepresenting the ith sample 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:
Figure BDA0002793375970000112
J(n)=E[e(n)]2
wherein, S represents the mean square error, E (n) represents the sound source error information, and X (n) represents the sampling signal x (n) to form the sampling signal vector.
And S30, adjusting the volume of the target equipment based on the sound source data group and the environment parameters.
Specifically, the volume refers to a volume set by a target device for playing original audio data, and correspondingly, adjusting the volume of the target device refers to adjusting the volume for playing the original audio data. The adjusting of 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 performs volume adjustment based on the adjusting instruction; or the electronic device running the volume adjustment method provided by this embodiment sends the target volume to the target device, and the target device directly adjusts the volume configured by itself to the target volume, or determines whether volume adjustment is needed based on the target volume and the current volume configured by itself, and automatically adjusts the configured volume to the target volume when volume adjustment is needed; the electronic device running the volume adjustment method provided by this embodiment may also send the adjustment coefficient to the target device, and the target device determines the target volume based on the current volume configured by itself and the adjustment coefficient, and adjusts the current volume configured by itself to the target volume. In this embodiment, volume data of the target device is adjusted based on the sound source data group and the environmental parameter, and both the signal-to-noise ratio of the reference sound source data and the signal intensity corresponding to the original sound source data are used as the influence factors of the environmental parameter, because the signal intensity can reflect the distance between the electronic device (for example, a smart phone carried by a user, etc.) and the target device (for example, a smart television, etc.), 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 using the signal intensity and the signal-to-noise ratio as the influence factors.
In an implementation manner of this embodiment, adjusting the volume of the target device based on the sound source data set and the environment parameter specifically includes:
determining sound source error information of the target equipment 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;
adjusting the volume of the target device based on the volume adjustment factor.
Specifically, the sound source error information is the same as the sound source error information described above, and the determination process is also the same, which is not repeated here, and the description about the sound source error information may be referred to specifically. The volume adjustment factor is used for adjusting the volume of the target device, wherein the volume adjustment factor may be calculated by the following formula:
Figure BDA0002793375970000121
Figure BDA0002793375970000122
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) forming a sampling signal vector, y (n) is original sound source data, and b (n) is a volume adjustment factor.
And after the volume adjusting factor is obtained, adjusting the volume of the target equipment by taking the volume adjusting factor as an adjusting proportion. For example, if b (n) is 1.5, 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 to the sound box, the adjusted volume may 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 to a sound box disposed on a refrigerator, the target device sends the volume to an air conditioner, and the volume of the sound box is adjusted by the air conditioner, so that the volume of the sound box matches the volume of the target device after adjustment, and the target device adjusts the playing volume.
In summary, the present embodiment provides a volume adjustment method, where the method includes acquiring a sound source data group corresponding to a target device; determining environmental parameters of the reference sound source data based on the sound source data group; and adjusting the volume of the target equipment based on the sound source data group and the environment parameters. According to the embodiment, the volume of the target equipment is determined to be adjusted by acquiring the original sound source data and the reference sound source data of the target television and according to the environmental 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 the use of a user.
Based on the volume adjusting method, the present embodiment provides a volume adjusting device, as shown in fig. 4, the volume adjusting device 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 an environment parameter corresponding to the reference sound source data based on the sound source data group, wherein the environment parameter is used for reflecting environment position information of the 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 group and the environment parameters.
In one embodiment, 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 the target terminal device.
In one embodiment, the obtaining 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 audio pick-up equipment;
and the generating unit is used for taking a sound source data group formed by the acquired original sound source data and the acquired reference sound source data as the sound source data group corresponding to the target equipment.
In one embodiment, the determining module comprises:
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:
the first determining subunit is configured to determine sound source error information of the target device based on the original sound source data and the reference sound source data;
a second determining subunit, configured to determine a volume adjustment factor of the target device based on the sound source error information, the environment parameter, and the original sound source data;
adjusting the volume of the target device 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 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 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;
a determination block for determining an environmental parameter of the reference audio source data based on the mean square error, the audio source error information, and the reference audio source data.
Based on the volume adjustment method, the present embodiment provides a computer-readable storage medium storing one or more programs, which are executable by one or more processors to implement the steps in the volume adjustment method according to the above embodiment.
Based on the above volume adjusting 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, and may further include a communication Interface (Communications Interface)23 and a bus 24. The processor 20, the display 21, the memory 22 and the communication interface 23 can communicate with each other through the 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 call logic instructions in the memory 22 to perform the methods in the embodiments described above.
Furthermore, the logic instructions in the memory 22 may be implemented in software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product.
The memory 22, which is 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 executes the functional application and data processing, i.e. implements the method in the above-described embodiments, by executing the software program, instructions or modules stored in the memory 22.
The memory 22 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. Further, the memory 22 may include a high speed random access memory and may also include a non-volatile memory. For example, a variety of media that can store program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, may also be transient storage media.
In addition, the specific processes loaded and executed by the storage medium and the instruction processors in the terminal device are described in detail in the method, and are not stated herein.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; 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 solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present application.

Claims (11)

1. A method of volume adjustment, the method comprising:
acquiring a sound source data group corresponding to target equipment, wherein the sound source data group comprises original sound source data and reference sound source data corresponding to the original sound source data;
determining an environment parameter corresponding to the reference sound source data based on the sound source data group, wherein the environment parameter is used for reflecting environment information of the terminal equipment for acquiring the reference sound source data;
and adjusting the volume of the target equipment based on the sound source data group and the environment parameters.
2. The volume adjustment method of 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 obtained based on the original sound source data played by the target terminal device.
3. The volume adjustment method of claim 2, wherein the obtaining of the sound source data set corresponding to the target device specifically comprises:
acquiring original sound source data of the target equipment through network communication, and picking up reference sound source data of the target equipment through audio picking-up equipment;
and taking a sound source data group formed by the acquired original sound source data and the acquired reference sound source data as a sound source data group corresponding to the target equipment.
4. The volume adjustment method of claim 1, wherein the determining, based on the sound source data group, an environmental parameter corresponding to the reference sound source data specifically comprises:
determining sound source error information of the target equipment 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.
5. The volume adjustment method of claim 1, wherein the determining, based on the audio source data group, the environmental parameter corresponding to the reference audio source data specifically comprises:
determining sound source error information of the target equipment 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;
adjusting the volume of the target device based on the volume adjustment factor.
6. The volume adjustment method according to claim 4 or 5, wherein the determining the sound source error information of the target device based on the original sound source data and the reference sound source data specifically comprises:
carrying out self-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.
7. The volume adjustment method of claim 6, wherein the adaptively filtering the reference sound source data to obtain filtered sound source data specifically comprises:
determining a convergence factor of adaptive filtering corresponding to the reference sound source data based on a steepest descent method;
and determining filtering sound source data based on the convergence factor and the reference sound source data.
8. The volume adjustment method of claim 4, wherein the determining the environmental parameters of the reference sound source data based on the sound source error information specifically comprises:
acquiring a mean square error corresponding to the reference sound source data;
and 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.
9. A volume adjustment device, characterized by comprising:
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 an environment parameter corresponding to the reference sound source data based on the sound source data group, wherein the environment parameter is used for reflecting environment position information of the 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 group and the environment parameters.
10. A computer-readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps in the volume adjustment method according to any one of claims 1 to 8.
11. 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 in the volume adjustment method of any one of claims 1-8.
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 true CN114531611A (en) 2022-05-24
CN114531611B 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硬件实现", 中国优秀硕士论文, pages: 2 *

Also Published As

Publication number Publication date
CN114531611B (en) 2024-04-02

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
CN104243732A (en) Use of vibration sensor in acoustic echo cancellation
CN103595849B (en) Method for controlling volume and terminal
CN113963716A (en) Volume balancing method, device and equipment for talking doorbell and readable storage medium
CN106341564B (en) Signal data processing method and device and intelligent conference equipment
CN114531611B (en) Volume adjusting method, storage medium and terminal equipment
CN111128216B (en) Audio signal processing method, processing device and readable storage medium
CN1983805A (en) Audio-frequency adjusting system
CN110971943B (en) Video code rate adjusting method, device, terminal and storage medium
CN111916100A (en) Echo cancellation method and apparatus, storage medium, and electronic device
CN113660512B (en) Audio processing method, device, server and computer readable storage medium
US20220095009A1 (en) Method and apparatus for controlling audio sound quality in terminal using network
CN109716432B (en) Gain processing method and device, electronic equipment, signal acquisition method and system
CN112653979A (en) Adaptive dereverberation method and device
CN112333531A (en) Audio data playing method and device and readable storage medium
CN113726969B (en) Reverberation detection method, device and equipment
CN111083137B (en) Method and device for adjusting state of terminal equipment of Internet of things and operating system
CN116013337B (en) Audio signal processing method, training method, device, equipment and medium for model
CN115762552B (en) Method for training echo cancellation model, echo cancellation method and corresponding device
CN113223543B (en) Speech enhancement method, device and storage medium
CN117873417A (en) Volume adjustment method, system, control device and computer readable storage medium
CN112735462B (en) Noise reduction method and voice interaction method for distributed microphone array
CN116132862A (en) Microphone control method and device, electronic equipment and storage medium
CN110972032B (en) Method for eliminating sound and electronic device for executing method

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