CN103533271A - Electronic equipment and method for regulating powered-on volume of electronic equipment - Google Patents

Electronic equipment and method for regulating powered-on volume of electronic equipment Download PDF

Info

Publication number
CN103533271A
CN103533271A CN201310495148.2A CN201310495148A CN103533271A CN 103533271 A CN103533271 A CN 103533271A CN 201310495148 A CN201310495148 A CN 201310495148A CN 103533271 A CN103533271 A CN 103533271A
Authority
CN
China
Prior art keywords
signal value
output
volume
voice
value
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
CN201310495148.2A
Other languages
Chinese (zh)
Other versions
CN103533271B (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 New Technology Co Ltd
Original Assignee
Shenzhen TCL New 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 New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN201310495148.2A priority Critical patent/CN103533271B/en
Publication of CN103533271A publication Critical patent/CN103533271A/en
Application granted granted Critical
Publication of CN103533271B publication Critical patent/CN103533271B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Circuit For Audible Band Transducer (AREA)

Abstract

The invention discloses a method for regulating the powered-on volume of electronic equipment and the electronic equipment. The method comprises the following steps: receiving the voice powered-on instruction of a user; acquiring the voice volume of the voice powered-on instruction and acquiring the output volume of the electronic equipment; comparing the voice volume with the output volume, and regulating the output volume value according to a comparison result. The voice volume in the voice powered-on instruction of the user and the output volume of the electronic equipment are calculated through the precision conversion of audio signals according to the distribution condition of audio signal values, and the output volume of the electronic equipment is regulated to a value which is equal to the voice volume in the voice powered-on instruction of the user so as to regulate the output volume of the electronic equipment to the powered-on volume required by the user. The user does not need to carry out additional setting, the operation is extremely simple and handy, the regulated powered-on volume more accurately reflects the perception volume of the auditory sense of human ears, and the experience of the user is improved.

Description

The method of adjustment of electronic equipment opening sound volume and electronic equipment
Technical field
The present invention relates to the volume adjustment technology field of electronic equipment, relate in particular to a kind of method of adjustment and electronic equipment of electronic equipment opening sound volume.
Background technology
Along with the technical development of electronic equipment, people experience and have higher requirement the user of electronic product.And at present, volume when most of electronic equipments are all last shutdown as the opening sound volume of television set, but difference is accustomed in watching of different user, also can be different to the requirement of opening sound volume, even same user in the different time periods when daytime and the late into the night watched TV, also can be different to the requirement of opening sound volume, therefore, volume when opening sound volume adopts last shutdown can be brought a lot of inconvenience to user.
In prior art, be generally by increasing " opening sound volume " menu option, to reach the object of restriction opening sound volume, the method implementation structure is simple, but its weak point is to need user to do extra parameter setting, operate more loaded down with trivial details, to user, use and bring inconvenience, and cannot meet a plurality of users' requirement simultaneously.
Summary of the invention
Main purpose of the present invention is to provide a kind of method of adjustment and electronic equipment of electronic equipment opening sound volume, is intended to simply and accurately adjust the opening sound volume of electronic equipment.
In order to achieve the above object, the present invention proposes a kind of method of adjustment of electronic equipment opening sound volume, comprising:
Receive user's voice start-up command;
Obtain the speech volume in described voice start-up command, and obtain the output volume of electronic equipment;
Described speech volume and described output volume are compared, and according to comparative result, adjust the size of described output volume.
Preferably, the step of obtaining the speech volume in described voice start-up command described in comprises:
16 precision voice audio signals in the described voice start-up command collecting are converted to 8 precision voice audio signals;
Analyze the voice signal value of described 8 precision voice audio signals and the relation of its probability of occurrence;
The accumulated value of the probability of occurrence of voice signal value in the distributed area that calculating is comprised of described voice signal value, on described distributed area, be limited to the maximum of voice signal value, under described distributed area, be limited in some values of the descending arrangement of voice signal value, when described accumulated value is greater than predetermined threshold value, using the lower limit of described distributed area as first signal value; And
According to described first signal value, calculate and obtain described speech volume;
The described step of obtaining the output volume of electronic equipment comprises:
The output gain coefficient of electronic equipment is set to default gain coefficient;
The electronic equipment collecting is converted to 8 precision output audio signals according to 16 precision output audio signals of described default gain coefficient output;
Analyze the relation of output signal value and its probability of occurrence of described 8 precision output audio signals;
The accumulated value of the probability of occurrence of output signal value in the distributed area that calculating is comprised of described output signal value, on described distributed area, be limited to the maximum of output signal value, under described distributed area, be limited in some values of the descending arrangement of output signal value, when described accumulated value is greater than predetermined threshold value, using the lower limit of described distributed area as secondary signal value; And
According to described secondary signal value, calculate and obtain described output volume.
Preferably, the step of obtaining the speech volume in described voice start-up command described in also comprises:
16 precision voice audio signals in the described voice start-up command collecting are converted to 8 precision voice audio signals;
Analyze the voice signal value of described 8 precision voice audio signals and the relation of its probability of occurrence;
The accumulated value S of the probability of occurrence of voice signal value in the distributed area that calculating is comprised of described voice signal value, shown in the following formula of accumulated value S of the probability of occurrence of described voice signal value:
S = 1 N Σ k = a k = b y ( k )
Wherein, S is the accumulated value of the probability of occurrence of voice signal value, and N is frame length, and k is voice signal value, and [a, b] is the distributed area of voice signal value k, is y(k) the occurrence number accumulated value of voice signal value k; When accumulated value S is greater than predetermined threshold value, by the lower limit a of distributed area [a, b] as first signal value; And
According to described first signal value a calculating, obtaining described speech volume is specially shown in following formula:
20 log a 2 B - 1
Wherein, in above formula, B quantizes length;
The described step of obtaining the output volume of electronic equipment comprises:
The output gain coefficient of electronic equipment is set to default gain coefficient;
The electronic equipment collecting is converted to 8 precision output audio signals according to 16 precision output audio signals of described default gain coefficient output;
Analyze the relation of output signal value and its probability of occurrence of described 8 precision output audio signals;
The accumulated value S1 of the probability of occurrence of output signal value in the distributed area that calculating is comprised of described output signal value, the accumulated value S1 of the probability of occurrence of described output signal value is shown in following formula:
S 1 = 1 N 1 Σ k = a 1 k = b 1 y ( k 1 )
Wherein, S1 is the accumulated value of the probability of occurrence of described output signal value, and N1 is frame length, and k1 is output signal value, and [a1, b1] is the distributed area of output signal value k1, is y(k1) the occurrence number accumulated value of output signal value k1; When accumulated value S1 is greater than predetermined threshold value, by the lower limit a1 of distributed area [a1, b1] as secondary signal value; And
According to described secondary signal value a1 calculating, obtaining described output volume is specially shown in following formula:
20log a 1 2 B 1 - 1
Wherein, in above formula, B1 quantizes length.
Preferably, the described big or small step of adjusting described output volume according to comparative result comprises:
If described output volume is less than described speech volume, increase the output gain coefficient of electronic equipment, until the equal and opposite in direction of described output volume and described speech volume;
If described output volume is greater than described speech volume, reduce the output gain coefficient of electronic equipment, until the equal and opposite in direction of described output volume and described speech volume.
Preferably, before the described step that 16 precision voice audio signals in the described voice start-up command collecting is converted to 8 precision voice audio signals, also comprise:
By the output gain coefficient initialization of electronic equipment, be 0.
The present invention also proposes a kind of electronic equipment of adjusting opening sound volume, comprising:
Receiver module, for receiving user's voice start-up command;
Acquisition module, for obtaining the speech volume of described voice start-up command and the output volume of electronic equipment;
Relatively adjusting module, for described speech volume and described output volume are compared, and adjusts the size of described output volume according to comparative result.
Preferably, described acquisition module is used for:
16 precision voice audio signals in the described voice start-up command collecting are converted to 8 precision voice audio signals;
Analyze the voice signal value of described 8 precision voice audio signals and the relation of its probability of occurrence;
The accumulated value of the probability of occurrence of voice signal value in the distributed area that calculating is comprised of described voice signal value, on described distributed area, be limited to the maximum of voice signal value, under described distributed area, be limited in some values of the descending arrangement of voice signal value, when described accumulated value is greater than predetermined threshold value, using the lower limit of described distributed area as first signal value; And
According to described first signal value, calculate and obtain described speech volume;
The described step of obtaining the output volume of electronic equipment comprises:
The output gain coefficient of electronic equipment is set to default gain coefficient;
The electronic equipment collecting is converted to 8 precision output audio signals according to 16 precision output audio signals of described default gain coefficient output;
Analyze the relation of output signal value and its probability of occurrence of described 8 precision output audio signals;
The accumulated value of the probability of occurrence of output signal value in the distributed area that calculating is comprised of described output signal value, on described distributed area, be limited to the maximum of output signal value, under described distributed area, be limited in some values of the descending arrangement of output signal value, when described accumulated value is greater than predetermined threshold value, using the lower limit of described distributed area as secondary signal value; And
According to described secondary signal value, calculate and obtain described output volume.
Preferably, described acquisition module also for:
16 precision voice audio signals in the described voice start-up command collecting are converted to 8 precision voice audio signals;
Analyze the voice signal value of described 8 precision voice audio signals and the relation of its probability of occurrence;
The accumulated value S of the probability of occurrence of voice signal value in the distributed area that calculating is comprised of described voice signal value, shown in the following formula of accumulated value S of the probability of occurrence of described voice signal value:
S = 1 N Σ k = a k = b y ( k )
Wherein, S is the accumulated value of the probability of occurrence of voice signal value, and N is frame length, and k is voice signal value, and [a, b] is the distributed area of voice signal value k, is y(k) the occurrence number accumulated value of voice signal value k; When accumulated value S is greater than predetermined threshold value, by the lower limit a of distributed area [a, b] as first signal value; And
According to described first signal value a calculating, obtaining described speech volume is specially shown in following formula:
20 log a 2 B - 1
Wherein, in above formula, B quantizes length;
The described step of obtaining the output volume of electronic equipment comprises:
The output gain coefficient of electronic equipment is set to default gain coefficient;
The electronic equipment collecting is converted to 8 precision output audio signals according to 16 precision output audio signals of described default gain coefficient output;
Analyze the relation of output signal value and its probability of occurrence of described 8 precision output audio signals;
The accumulated value S1 of the probability of occurrence of output signal value in the distributed area that calculating is comprised of described output signal value, the accumulated value S1 of the probability of occurrence of described output signal value is shown in following formula:
S 1 = 1 N 1 Σ k = a 1 k = b 1 y ( k 1 )
Wherein, S1 is the accumulated value of the probability of occurrence of described output signal value, and N1 is frame length, and k1 is output signal value, and [a1, b1] is the distributed area of output signal value k1, is y(k1) the occurrence number accumulated value of output signal value k1; When accumulated value S1 is greater than predetermined threshold value, by the lower limit a1 of distributed area [a1, b1] as secondary signal value; And
According to described secondary signal value a1 calculating, obtaining described output volume is specially shown in following formula:
20log a 1 2 B 1 - 1
Wherein, in above formula, B1 quantizes length.
Preferably, described relatively adjusting module is used for:
If described output volume is less than described speech volume, increase the output gain coefficient of electronic equipment, until the equal and opposite in direction of described output volume and described speech volume;
If described output volume is greater than described speech volume, reduce the output gain coefficient of electronic equipment, until the equal and opposite in direction of described output volume and described speech volume.
Preferably, described acquisition module also for:
By the output gain coefficient initialization of electronic equipment, be 0.
Method of adjustment and the electronic equipment of a kind of electronic equipment opening sound volume that the present invention proposes, by audio signal being carried out to precision conversion and calculating the speech volume that obtains in user speech start-up command and the output volume of electronic equipment according to the distribution situation of audio signal value, again the output volume of electronic equipment is adjusted into the speech volume in user speech start-up command and equates the output volume of electronic equipment to be adjusted into the required opening sound volume of user, without user, carry out extra setting, very simple and efficient, and the opening sound volume of adjusting reflects the perception volume of human auditory system more accurately, promoted user's experience.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the method for adjustment preferred embodiment of electronic equipment opening sound volume of the present invention;
Fig. 2 is the structural representation that the present invention adjusts the electronic equipment preferred embodiment of opening sound volume.
In order to make technical scheme of the present invention clearer, clear, below in conjunction with accompanying drawing, be described in further detail.
Embodiment
The solution of the embodiment of the present invention is mainly: by audio signal being carried out to precision conversion and calculating the speech volume that obtains in user speech start-up command and the output volume of electronic equipment according to the distribution situation of audio signal value, then the output volume of electronic equipment is adjusted into the speech volume in user speech start-up command and equates the output volume of electronic equipment to be adjusted into the required opening sound volume of user.
As shown in Figure 1, preferred embodiment of the present invention proposes a kind of method of adjustment of electronic equipment opening sound volume, comprising:
Step S101, reception user's voice start-up command;
At present, most of electronic equipments are if TV etc. is all with voice power up function, take TV describe as example at this.When user's wish is opened TV, first to television transmission voice start-up command, the voice signal that comprises user in this voice start-up command, user's voice start-up command is detected and accepted to TV.
Step S102, obtains speech volume in described voice start-up command and the output volume of electronic equipment;
First, gather the voice signal comprising in user's voice start-up command, and carry out following steps and obtain the speech volume in described voice start-up command:
1, the voice signal collecting is changed, the voice signal gathering is generally that precision is the voice audio signals of 16, the voice audio signals x (n) that is 16 to sampling precision carries out shifting function and obtains 8 precision voice audio signals x ' (n), wherein, n=0~N-1, N is frame length, the computing formula of shifting function is: x ' (n)=x (n) " 8, the voice audio signals x of 16 precision (n) is moved to right to 8, fill with zero the position that after moving to right, the left side is vacated, and obtains the voice audio signals x ' of 8 precision (n).It is the voice audio signals of 8 that the voice audio signals that is 16 by sampling precision is converted to precision, in the accuracy that volume is calculated, impact is little, and it is that the audio signal of 8 is carried out follow-up calculating and can greatly be reduced operand that the audio signal that is 16 by sampling precision is converted to precision, at the hardware resource that guarantees can save to greatest extent under the accuracy that volume is calculated great majority electronic equipments as limited in disposal abilities such as TVs.
2,, to be converted to 8 precision voice audio signals statistics accumulated values, obtain the voice signal value k(db of 8 precision voice audio signals) distribution situation, k=abs(x ' is (n)), abs is the function that calculates absolute value, k=0~2 7-1, i.e. k=0~127.The occurrence number accumulated value y(k of the signal value k of 8 precision voice audio signals of statistics).According to voice signal value k and occurrence number accumulated value y(k thereof) can calculate the distribution situation of voice signal value k.
3, the accumulated value S that obtains the probability of occurrence of voice signal value k in the distributed area being comprised of voice signal value k according to the distribution situation of voice signal value k, computing formula is particularly wherein, N is frame length, [a, b] be the distributed area of voice signal value k, upper limit b gets the maximum 127 of voice signal value k, and lower limit a arranges value from high to low by 127 beginnings, and a gets 127,126,125 ... 0, interval [a of Computation distribution, b] in voice signal value k probability of occurrence and be also its accumulated value S, when accumulated value S surpasses a predetermined threshold value P, obtain distributed area [a, b] value of lower limit a, using lower limit a as first signal value.Predetermined threshold value P is according to the sample rate of audio signal and frame length and obtains by many experiments synthetic setting, this accumulated value S has reacted the distribution situation of voice signal value k in voice signal, accumulated value S is larger, react this distributed area [a, b] in comprise the voice signal value k in more voice signal more, this distributed area [a, b] more can embody the feature of this voice signal, when accumulated value S surpasses predetermined threshold value P, prove now this distributed area [a, b] can embody the feature of this voice signal completely, the perception volume of volume now and people's ear is the most approaching, now the voice signal value as the lower limit a of critical value is also that first signal value is to determine this distributed area [a, b] the value of accumulated value S, due to this distributed area [a now, b] can embody the feature of this voice signal completely, therefore the voice signal value of lower limit a can be met to the optimum value of human auditory system in this voice audio signals, rather than simply using being worth extremely greatly as optimum value in voice audio signals, can reflect more accurately the perception volume of human auditory system like this.
4, according to first signal value a, calculate the volume value that obtains voice audio signals and also obtain described speech volume, computing formula is:
Figure BDA0000398280620000072
wherein, B quantizes length, and the quantification length is here 8, as: if first signal value a is 64, the final described speech volume of determining equals
20log 64 2 7 = 20 log 0.5 = - 6 dB .
Further, in an optional execution mode of the present embodiment, also can in gathering user's voice start-up command, comprise voice signal time, by the output gain coefficient initialization of TV, be 0, the output volume of TV is also 0 accordingly, now TV is in mute state, and the user's who therefore gathers voice signal can be avoided the interference of TV output volume, more accurate.
The step of obtaining the output volume of electronic equipment comprises:
1, the output gain coefficient of electronic equipment is set to default gain coefficient, electronic equipment is set to default gain coefficient as the output gain coefficient of TV, the large I of this default gain coefficient is set according to user's use habit, the output gain coefficient of TV is set to after default gain coefficient, TV can be according to default gain coefficient output volume, and TV gathers this output volume;
2, the output audio signal gathering is changed, the output audio signal gathering is generally that precision is the output audio signal of 16, the output audio signal x (n1) that is 16 to sampling precision carries out shifting function and obtains 8 precision output audio signal x ' (n1), wherein, n1=0~N1-1, N1 is frame length, the computing formula of shifting function is: x ' (n1)=x (n1) " 8, the output audio signal x (n1) of 16 precision is moved to right to 8, fill with zero the position that after moving to right, the left side is vacated, and obtains the output audio signal x ' of 8 precision (n1).It is the output audio signal of 8 that the output audio signal that is 16 by sampling precision is converted to precision, in the accuracy that volume is calculated, impact is little, and it is that the audio signal of 8 is carried out follow-up calculating and can greatly be reduced operand that the audio signal that is 16 by sampling precision is converted to precision, at the hardware resource that guarantees can save to greatest extent under the accuracy that volume is calculated great majority electronic equipments as limited in disposal abilities such as TVs.
3,, to be converted to 8 precision output audio signals statistics accumulated values, obtain the output signal value k1(db of 8 precision output audio signals) distribution situation, k1=abs(x ' is (n1)), abs is the function that calculates absolute value, k1=0~2 7-1, i.e. k1=0~127.The occurrence number accumulated value y(k1 of the output signal value k1 of 8 precision output audio signals of statistics).According to output signal value k1 and occurrence number accumulated value y(k1 thereof) can calculate the distribution situation of output signal value k1.
4, the accumulated value S1 that obtains the probability of occurrence of output signal value k1 in the distributed area being comprised of output signal value k1 according to the distribution situation of output signal value k1, computing formula is particularly
Figure BDA0000398280620000081
wherein, N1 is frame length, [a1, b1] be the distributed area of output signal value k1, upper limit b1 gets the maximum 127 of output signal value k1, and lower limit a1 arranges value from high to low by 127 beginnings, and a1 gets 127,126,125 ... 0, interval [the a1 of Computation distribution, b1] in output signal value k1 probability of occurrence and be also its accumulated value S1, when accumulated value S1 surpasses a predetermined threshold value P1, obtain distributed area [a1, b1] value of lower limit a1, using lower limit a1 as secondary signal value.Predetermined threshold value P1 is according to the sample rate of audio signal and frame length and obtains by many experiments synthetic setting, this accumulated value S1 has reacted the distribution situation of output signal value k1 in output audio signal, accumulated value S1 is larger, react this distributed area [a1, b1] in comprise the output signal value k1 in more output audio signals, this distributed area [a1, b1] more can embody the feature of this output audio signal, when accumulated value S1 surpasses predetermined threshold value P1, the perception volume of volume now of proof and people's ear is the most approaching, now the voice signal value as the lower limit a1 of critical value is also that secondary signal value is to determine this distributed area [a1, b1] the value of accumulated value S1, due to this distributed area [a1 now, b1] can embody the feature of this output audio signal completely, therefore the output signal value of lower limit a1 can be met in this output audio signal to the optimum value of human auditory system, rather than simply using being worth extremely greatly as optimum value in output audio signal, can reflect more accurately the perception volume of human auditory system like this.
5, according to secondary signal value a1, calculate the volume value that obtains output audio signal and also obtain described output volume, computing formula is:
Figure BDA0000398280620000091
wherein, B1 quantizes length, and the quantification length is here 8.
Step S103, compares described speech volume and described output volume, and according to comparative result, adjusts the size of described output volume.
User allows TV know the opening sound volume that it is required according to self the current speech volume that need to control in described voice start-up command when sending described voice start-up command, is also that described speech volume is exactly the current required opening sound volume of user; The described speech volume obtaining and described output volume are compared,
If described output volume is less than described speech volume, show that now the output volume of TV is less than the required opening sound volume of user, progressively increase the output gain coefficient of TV, the output volume of TV also progressively increases thereupon, until the equal and opposite in direction of described output volume and described speech volume is adjusted into the output volume of TV the current required opening sound volume of user;
If described output volume is greater than described speech volume, show that now the output volume of TV is greater than the required opening sound volume of user, progressively reduce the output gain coefficient of TV, the output volume of TV also progressively reduces thereupon, until the equal and opposite in direction of described output volume and described speech volume is adjusted into the output volume of TV the current required opening sound volume of user.
The present embodiment passes through such scheme, without user, carry out extra setting and the output volume of electronic equipment can be adjusted into the required opening sound volume of user, very simple and efficient, and the opening sound volume of adjusting reflects the perception volume of human auditory system more accurately, promoted user's experience.
As shown in Figure 2, preferred embodiment of the present invention proposes a kind of electronic equipment of adjusting opening sound volume, comprising: receiver module 201, acquisition module 202 and comparison adjusting module 203, wherein:
Receiver module 201, for receiving user's voice start-up command;
At present, most of electronic equipments are if TV etc. is all with voice power up function, take TV describe as example at this.When user's wish is opened TV, first to television transmission voice start-up command, the voice signal that comprises user in this voice start-up command, user's voice start-up command is detected and accepted to TV.
Acquisition module 202, for obtaining the speech volume of described voice start-up command and the output volume of electronic equipment;
First, gather the voice signal comprising in user's voice start-up command, and carry out following steps and obtain the speech volume in described voice start-up command:
1, the voice signal collecting is changed, the voice signal gathering is generally that precision is the voice audio signals of 16, the voice audio signals x (n) that is 16 to sampling precision carries out shifting function and obtains 8 precision voice audio signals x ' (n), wherein, n=0~N-1, N is frame length, the computing formula of shifting function is: x ' (n)=x (n) " 8, the voice audio signals x of 16 precision (n) is moved to right to 8, fill with zero the position that after moving to right, the left side is vacated, and obtains the voice audio signals x ' of 8 precision (n).It is the voice audio signals of 8 that the voice audio signals that is 16 by sampling precision is converted to precision, in the accuracy that volume is calculated, impact is little, and it is that the audio signal of 8 is carried out follow-up calculating and can greatly be reduced operand that the audio signal that is 16 by sampling precision is converted to precision, at the hardware resource that guarantees can save to greatest extent under the accuracy that volume is calculated great majority electronic equipments as limited in disposal abilities such as TVs.
2,, to be converted to 8 precision voice audio signals statistics accumulated values, obtain the voice signal value k(db of 8 precision voice audio signals) distribution situation, k=abs(x ' is (n)), abs is the function that calculates absolute value, k=0~2 7-1, i.e. k=0~127.The occurrence number accumulated value y(k of the signal value k of 8 precision voice audio signals of statistics).According to voice signal value k and occurrence number accumulated value y(k thereof) can calculate the distribution situation of voice signal value k.
3, the accumulated value S that obtains the probability of occurrence of voice signal value k in the distributed area being comprised of voice signal value k according to the distribution situation of voice signal value k, computing formula is particularly
Figure BDA0000398280620000101
wherein, N is frame length, [a, b] be the distributed area of voice signal value k, upper limit b gets the maximum 127 of voice signal value k, and lower limit a arranges value from high to low by 127 beginnings, and a gets 127,126,125 ... 0, interval [a of Computation distribution, b] in voice signal value k probability of occurrence and be also its accumulated value S, when accumulated value S surpasses a predetermined threshold value P, obtain distributed area [a, b] value of lower limit a, using lower limit a as first signal value.Predetermined threshold value P is according to the sample rate of audio signal and frame length and obtains by many experiments synthetic setting, this accumulated value S has reacted the distribution situation of voice signal value k in voice signal, accumulated value S is larger, react this distributed area [a, b] in comprise the voice signal value k in more voice signal more, this distributed area [a, b] more can embody the feature of this voice signal, when accumulated value S surpasses predetermined threshold value P, prove now this distributed area [a, b] can embody the feature of this voice signal completely, the perception volume of volume now and people's ear is the most approaching, now the voice signal value as the lower limit a of critical value is also that first signal value is to determine this distributed area [a, b] the value of accumulated value S, due to this distributed area [a now, b] can embody the feature of this voice signal completely, therefore the voice signal value of lower limit a can be met to the optimum value of human auditory system in this voice audio signals, rather than simply using being worth extremely greatly as optimum value in voice audio signals, can reflect more accurately the perception volume of human auditory system like this.
4, according to first signal value a, calculate the volume value that obtains voice audio signals and also obtain described speech volume, computing formula is:
Figure BDA0000398280620000111
wherein, B quantizes length, and the quantification length is here 8, as: if first signal value a is 64, the final described speech volume of determining equals
20log 64 2 7 = 20 log 0.5 = - 6 dB .
Further, in an optional execution mode of the present embodiment, also can in gathering user's voice start-up command, comprise voice signal time, by the output gain coefficient initialization of TV, be 0, the output volume of TV is also 0 accordingly, now TV is in mute state, and the user's who therefore gathers voice signal can be avoided the interference of TV output volume, more accurate.
The step of obtaining the output volume of electronic equipment comprises:
1, the output gain coefficient of electronic equipment is set to default gain coefficient, electronic equipment is set to default gain coefficient as the output gain coefficient of TV, the large I of this default gain coefficient is set according to user's use habit, the output gain coefficient of TV is set to after default gain coefficient, TV can be according to default gain coefficient output volume, and TV gathers this output volume;
2, the output audio signal gathering is changed, the output audio signal gathering is generally that precision is the output audio signal of 16, the output audio signal x (n1) that is 16 to sampling precision carries out shifting function and obtains 8 precision output audio signal x ' (n1), wherein, n1=0~N1-1, N1 is frame length, the computing formula of shifting function is: x ' (n1)=x (n1) " 8, the output audio signal x (n1) of 16 precision is moved to right to 8, fill with zero the position that after moving to right, the left side is vacated, and obtains the output audio signal x ' of 8 precision (n1).It is the output audio signal of 8 that the output audio signal that is 16 by sampling precision is converted to precision, in the accuracy that volume is calculated, impact is little, and it is that the audio signal of 8 is carried out follow-up calculating and can greatly be reduced operand that the audio signal that is 16 by sampling precision is converted to precision, at the hardware resource that guarantees can save to greatest extent under the accuracy that volume is calculated great majority electronic equipments as limited in disposal abilities such as TVs.
3,, to be converted to 8 precision output audio signals statistics accumulated values, obtain the output signal value k1(db of 8 precision output audio signals) distribution situation, k1=abs(x ' is (n)), abs is the function that calculates absolute value, k1=0~2 7-1, i.e. k1=0~127.The occurrence number accumulated value y(k1 of the output signal value k1 of 8 precision output audio signals of statistics).According to output signal value k1 and occurrence number accumulated value y(k1 thereof) can calculate the distribution situation of output signal value k1.
4, the accumulated value S1 that obtains the probability of occurrence of output signal value k1 in the distributed area being comprised of output signal value k1 according to the distribution situation of output signal value k1, computing formula is particularly
Figure BDA0000398280620000121
wherein, N1 is frame length, [a1, b1] be the distributed area of output signal value k1, upper limit b1 gets the maximum 127 of output signal value k1, and lower limit a1 arranges value from high to low by 127 beginnings, and a1 gets 127,126,125 ... 0, interval [the a1 of Computation distribution, b1] in output signal value k1 probability of occurrence and be also its accumulated value S1, when accumulated value S1 surpasses a predetermined threshold value P1, obtain distributed area [a1, b1] value of lower limit a1, using lower limit a1 as secondary signal value.Predetermined threshold value P1 is according to the sample rate of audio signal and frame length and obtains by many experiments synthetic setting, this accumulated value S1 has reacted the distribution situation of output signal value k1 in output audio signal, accumulated value S1 is larger, react this distributed area [a1, b1] in comprise the output signal value k1 in more output audio signals, this distributed area [a1, b1] more can embody the feature of this output audio signal, when accumulated value S1 surpasses predetermined threshold value P1, the perception volume of volume now of proof and people's ear is the most approaching, now the voice signal value as the lower limit a1 of critical value is also that secondary signal value is to determine this distributed area [a1, b1] the value of accumulated value S1, due to this distributed area [a1 now, b1] can embody the feature of this output audio signal completely, therefore the output signal value of lower limit a1 can be met in this output audio signal to the optimum value of human auditory system, rather than simply using being worth extremely greatly as optimum value in output audio signal, can reflect more accurately the perception volume of human auditory system like this.
5, according to secondary signal value a1, calculate the volume value that obtains output audio signal and also obtain described output volume, computing formula is:
Figure BDA0000398280620000122
wherein, B1 quantizes length, and the quantification length is here 8.
Relatively adjusting module 203, for described speech volume and described output volume are compared, and adjusts the size of described output volume according to comparative result.
User allows TV know the opening sound volume that it is required according to self the current speech volume that need to control in described voice start-up command when sending described voice start-up command, is also that described speech volume is exactly the current required opening sound volume of user; The described speech volume obtaining and described output volume are compared,
If described output volume is less than described speech volume, show that now the output volume of TV is less than the required opening sound volume of user, progressively increase the output gain coefficient of TV, the output volume of TV also progressively increases thereupon, until the equal and opposite in direction of described output volume and described speech volume is adjusted into the output volume of TV the current required opening sound volume of user;
If described output volume is greater than described speech volume, show that now the output volume of TV is greater than the required opening sound volume of user, progressively reduce the output gain coefficient of TV, the output volume of TV also progressively reduces thereupon, until the equal and opposite in direction of described output volume and described speech volume is adjusted into the output volume of TV the current required opening sound volume of user.
The present embodiment passes through such scheme, without user, carry out extra setting and the output volume of electronic equipment can be adjusted into the required opening sound volume of user, very simple and efficient, and the opening sound volume of adjusting reflects the perception volume of human auditory system more accurately, promoted user's experience.
The method of adjustment of above-mentioned electronic equipment opening sound volume and electronic equipment, by audio signal being carried out to precision conversion and calculating the speech volume that obtains in user speech start-up command and the output volume of electronic equipment according to the distribution situation of audio signal value, again the output volume of electronic equipment is adjusted into the speech volume in user speech start-up command and equates the output volume of electronic equipment to be adjusted into the required opening sound volume of user, without user, carry out extra setting, very simple and efficient, and the opening sound volume of adjusting reflects the perception volume of human auditory system more accurately, promoted user's experience.
Those skilled in the art can be well understood to, for convenience and simplicity of description, only the division with above-mentioned each functional unit, module is illustrated, in practical application, can above-mentioned functions be distributed and by different functional units or module, completed as required, the internal structure that is about to device is divided into different functional units or module, to complete all or part of function described above.Each functional unit in embodiment, module can be integrated in a processing unit, also can be that the independent physics of unit exists, also can be integrated in a unit two or more unit, above-mentioned integrated unit both can adopt the form of hardware to realize, and also can adopt the form of SFU software functional unit to realize.In addition, the concrete title of each functional unit, module also, just for the ease of mutual differentiation, is not limited to the application's protection range.The specific works process of unit, module in said apparatus, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
The foregoing is only the preferred embodiments of the present invention; not thereby limit the scope of the claims of the present invention; every equivalent structure or flow process conversion that utilizes specification of the present invention and accompanying drawing content to do; or be directly or indirectly used in other relevant technical field, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. a method of adjustment for electronic equipment opening sound volume, is characterized in that, comprising:
Receive user's voice start-up command;
Obtain the speech volume in described voice start-up command, and obtain the output volume of electronic equipment;
Described speech volume and described output volume are compared, and according to comparative result, adjust the size of described output volume.
2. method according to claim 1, is characterized in that, described in obtain the speech volume in described voice start-up command step comprise:
16 precision voice audio signals in the described voice start-up command collecting are converted to 8 precision voice audio signals;
Analyze the voice signal value of described 8 precision voice audio signals and the relation of its probability of occurrence;
The accumulated value of the probability of occurrence of voice signal value in the distributed area that calculating is comprised of described voice signal value, on described distributed area, be limited to the maximum of voice signal value, under described distributed area, be limited in some values of the descending arrangement of voice signal value, when described accumulated value is greater than predetermined threshold value, using the lower limit of described distributed area as first signal value; And
According to described first signal value, calculate and obtain described speech volume;
The described step of obtaining the output volume of electronic equipment comprises:
The output gain coefficient of electronic equipment is set to default gain coefficient;
The electronic equipment collecting is converted to 8 precision output audio signals according to 16 precision output audio signals of described default gain coefficient output;
Analyze the relation of output signal value and its probability of occurrence of described 8 precision output audio signals;
The accumulated value of the probability of occurrence of output signal value in the distributed area that calculating is comprised of described output signal value, on described distributed area, be limited to the maximum of output signal value, under described distributed area, be limited in some values of the descending arrangement of output signal value, when described accumulated value is greater than predetermined threshold value, using the lower limit of described distributed area as secondary signal value; And
According to described secondary signal value, calculate and obtain described output volume.
3. method according to claim 1, is characterized in that, described in obtain the speech volume in described voice start-up command step comprise:
16 precision voice audio signals in the described voice start-up command collecting are converted to 8 precision voice audio signals;
Analyze the voice signal value of described 8 precision voice audio signals and the relation of its probability of occurrence;
The accumulated value S of the probability of occurrence of voice signal value in the distributed area that calculating is comprised of described voice signal value, shown in the following formula of accumulated value S of the probability of occurrence of described voice signal value:
S = 1 N Σ k = a k = b y ( k )
Wherein, S is the accumulated value of the probability of occurrence of voice signal value, and N is frame length, and k is voice signal value, and [a, b] is the distributed area of voice signal value k, is y(k) the occurrence number accumulated value of voice signal value k; When accumulated value S is greater than predetermined threshold value, by the lower limit a of distributed area [a, b] as first signal value; And
According to described first signal value a calculating, obtaining described speech volume is specially shown in following formula:
20 log a 2 B - 1
Wherein, in above formula, B quantizes length;
The described step of obtaining the output volume of electronic equipment comprises:
The output gain coefficient of electronic equipment is set to default gain coefficient;
The electronic equipment collecting is converted to 8 precision output audio signals according to 16 precision output audio signals of described default gain coefficient output;
Analyze the relation of output signal value and its probability of occurrence of described 8 precision output audio signals;
The accumulated value S1 of the probability of occurrence of output signal value in the distributed area that calculating is comprised of described output signal value, the accumulated value S1 of the probability of occurrence of described output signal value is shown in following formula:
S 1 = 1 N 1 Σ k = a 1 k = b 1 y ( k 1 )
Wherein, S1 is the accumulated value of the probability of occurrence of described output signal value, and N1 is frame length, and k1 is output signal value, and [a1, b1] is the distributed area of output signal value k1, is y(k1) the occurrence number accumulated value of output signal value k1; When accumulated value S1 is greater than predetermined threshold value, by the lower limit a1 of distributed area [a1, b1] as secondary signal value; And
According to described secondary signal value a1 calculating, obtaining described output volume is specially shown in following formula:
20log a 1 2 B 1 - 1
Wherein, in above formula, B1 quantizes length.
4. according to the method described in claim 1,2 or 3, it is characterized in that, the described big or small step of adjusting described output volume according to comparative result comprises:
If described output volume is less than described speech volume, increase the output gain coefficient of electronic equipment, until the equal and opposite in direction of described output volume and described speech volume;
If described output volume is greater than described speech volume, reduce the output gain coefficient of electronic equipment, until the equal and opposite in direction of described output volume and described speech volume.
5. method according to claim 2, is characterized in that, before the described step that 16 precision voice audio signals in the described voice start-up command collecting is converted to 8 precision voice audio signals, also comprises:
By the output gain coefficient initialization of electronic equipment, be 0.
6. an electronic equipment of adjusting opening sound volume, is characterized in that, comprising:
Receiver module, for receiving user's voice start-up command;
Acquisition module, for obtaining the speech volume of described voice start-up command and the output volume of electronic equipment;
Relatively adjusting module, for described speech volume and described output volume are compared, and adjusts the size of described output volume according to comparative result.
7. electronic equipment according to claim 6, is characterized in that, described acquisition module is used for:
16 precision voice audio signals in the described voice start-up command collecting are converted to 8 precision voice audio signals;
Analyze the voice signal value of described 8 precision voice audio signals and the relation of its probability of occurrence;
The accumulated value of the probability of occurrence of voice signal value in the distributed area that calculating is comprised of described voice signal value, on described distributed area, be limited to the maximum of voice signal value, under described distributed area, be limited in some values of the descending arrangement of voice signal value, when described accumulated value is greater than predetermined threshold value, using the lower limit of described distributed area as first signal value; And
According to described first signal value, calculate and obtain described speech volume;
The described step of obtaining the output volume of electronic equipment comprises:
The output gain coefficient of electronic equipment is set to default gain coefficient;
The electronic equipment collecting is converted to 8 precision output audio signals according to 16 precision output audio signals of described default gain coefficient output;
Analyze the relation of output signal value and its probability of occurrence of described 8 precision output audio signals;
The accumulated value of the probability of occurrence of output signal value in the distributed area that calculating is comprised of described output signal value, on described distributed area, be limited to the maximum of output signal value, under described distributed area, be limited in some values of the descending arrangement of output signal value, when described accumulated value is greater than predetermined threshold value, using the lower limit of described distributed area as secondary signal value; And
According to described secondary signal value, calculate and obtain described output volume.
8. electronic equipment according to claim 6, is characterized in that, described acquisition module also for:
16 precision voice audio signals in the described voice start-up command collecting are converted to 8 precision voice audio signals;
Analyze the voice signal value of described 8 precision voice audio signals and the relation of its probability of occurrence;
The accumulated value S of the probability of occurrence of voice signal value in the distributed area that calculating is comprised of described voice signal value, shown in the following formula of accumulated value S of the probability of occurrence of described voice signal value:
S = 1 N Σ k = a k = b y ( k )
Wherein, S is the accumulated value of the probability of occurrence of voice signal value, and N is frame length, and k is voice signal value, and [a, b] is the distributed area of voice signal value k, is y(k) the occurrence number accumulated value of voice signal value k; When accumulated value S is greater than predetermined threshold value, by the lower limit a of distributed area [a, b] as first signal value; And
According to described first signal value a calculating, obtaining described speech volume is specially shown in following formula:
20 log a 2 B - 1
Wherein, in above formula, B quantizes length;
The described step of obtaining the output volume of electronic equipment comprises:
The output gain coefficient of electronic equipment is set to default gain coefficient;
The electronic equipment collecting is converted to 8 precision output audio signals according to 16 precision output audio signals of described default gain coefficient output;
Analyze the relation of output signal value and its probability of occurrence of described 8 precision output audio signals;
The accumulated value S1 of the probability of occurrence of output signal value in the distributed area that calculating is comprised of described output signal value, the accumulated value S1 of the probability of occurrence of described output signal value is shown in following formula:
S 1 = 1 N 1 Σ k = a 1 k = b 1 y ( k 1 )
Wherein, S1 is the accumulated value of the probability of occurrence of described output signal value, and N1 is frame length, and k1 is output signal value, and [a1, b1] is the distributed area of output signal value k1, is y(k1) the occurrence number accumulated value of output signal value k1; When accumulated value S1 is greater than predetermined threshold value, by the lower limit a1 of distributed area [a1, b1] as secondary signal value; And
According to described secondary signal value a1 calculating, obtaining described output volume is specially shown in following formula:
20log a 1 2 B 1 - 1
Wherein, in above formula, B1 quantizes length.
9. according to the electronic equipment described in claim 6,7 or 8, it is characterized in that, described relatively adjusting module is used for:
If described output volume is less than described speech volume, increase the output gain coefficient of electronic equipment, until the equal and opposite in direction of described output volume and described speech volume;
If described output volume is greater than described speech volume, reduce the output gain coefficient of electronic equipment, until the equal and opposite in direction of described output volume and described speech volume.
10. electronic equipment according to claim 7, is characterized in that, described acquisition module also for:
By the output gain coefficient initialization of electronic equipment, be 0.
CN201310495148.2A 2013-10-18 2013-10-18 The method of adjustment and electronic equipment of electronic equipment opening sound volume Expired - Fee Related CN103533271B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310495148.2A CN103533271B (en) 2013-10-18 2013-10-18 The method of adjustment and electronic equipment of electronic equipment opening sound volume

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310495148.2A CN103533271B (en) 2013-10-18 2013-10-18 The method of adjustment and electronic equipment of electronic equipment opening sound volume

Publications (2)

Publication Number Publication Date
CN103533271A true CN103533271A (en) 2014-01-22
CN103533271B CN103533271B (en) 2018-03-30

Family

ID=49934900

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310495148.2A Expired - Fee Related CN103533271B (en) 2013-10-18 2013-10-18 The method of adjustment and electronic equipment of electronic equipment opening sound volume

Country Status (1)

Country Link
CN (1) CN103533271B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114071220A (en) * 2021-11-04 2022-02-18 深圳Tcl新技术有限公司 Sound effect adjusting method and device, storage medium and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04287461A (en) * 1991-03-15 1992-10-13 Toshiba Corp Telephone set
US20080052082A1 (en) * 2006-08-23 2008-02-28 Asustek Computer Inc. Voice control method
CN101207755A (en) * 2006-12-19 2008-06-25 康佳集团股份有限公司 Method and apparatus for controlling opening sound volume of TV set
CN101478614A (en) * 2009-01-19 2009-07-08 深圳华为通信技术有限公司 Method, apparatus and communication terminal for adaptively tuning volume
CN102523401A (en) * 2011-12-29 2012-06-27 深圳Tcl新技术有限公司 Intelligent household television control system and method thereof
CN103002106A (en) * 2012-10-16 2013-03-27 东莞宇龙通信科技有限公司 Mobile terminal and method for adjusting volume thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04287461A (en) * 1991-03-15 1992-10-13 Toshiba Corp Telephone set
US20080052082A1 (en) * 2006-08-23 2008-02-28 Asustek Computer Inc. Voice control method
CN101207755A (en) * 2006-12-19 2008-06-25 康佳集团股份有限公司 Method and apparatus for controlling opening sound volume of TV set
CN101478614A (en) * 2009-01-19 2009-07-08 深圳华为通信技术有限公司 Method, apparatus and communication terminal for adaptively tuning volume
CN102523401A (en) * 2011-12-29 2012-06-27 深圳Tcl新技术有限公司 Intelligent household television control system and method thereof
CN103002106A (en) * 2012-10-16 2013-03-27 东莞宇龙通信科技有限公司 Mobile terminal and method for adjusting volume thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114071220A (en) * 2021-11-04 2022-02-18 深圳Tcl新技术有限公司 Sound effect adjusting method and device, storage medium and electronic equipment
CN114071220B (en) * 2021-11-04 2024-01-19 深圳Tcl新技术有限公司 Sound effect adjusting method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN103533271B (en) 2018-03-30

Similar Documents

Publication Publication Date Title
US10008211B2 (en) Method and apparatus for encoding stereo phase parameter
DE19943875A1 (en) Voice control system with a microphone array
CN104363510B (en) A kind of playback terminal
CN101110217B (en) Automatic gain control method for audio signal and apparatus thereof
CN103995653A (en) Parameter adjusting method and device
CN103002106A (en) Mobile terminal and method for adjusting volume thereof
US20140337018A1 (en) Method and device for adaptively adjusting sound effect
CN104064185A (en) Information processing method and system and electronic device
DE602004010102T2 (en) MULTIMODE RECEIVER WITH TIME-SHARED SIGNAL PROCESSING
CN102970632A (en) Sound based volume adjustment device, product and method
CN103078599B (en) A kind of playing audio/video and method for controlling volume
US20230326467A1 (en) Encoding method and apparatus, electronic device, and storage medium
CN107018563A (en) For the digital auto gain control method of narrow band signal after broadband system channelizing
CN103166587A (en) Audio processing circuit
CN103888868A (en) Sound recovering method based on loudness adjustment and control
CN102413077B (en) Method and device for adjusting amplitude of signal transmitted by antenna
CN105761726B (en) A kind of method and apparatus of elimination TDD noises
DE102014111788B3 (en) Radio receiving apparatus and method for changing frequencies of radio stations
CN103533271A (en) Electronic equipment and method for regulating powered-on volume of electronic equipment
CN105872752B (en) Feedback type intelligent volume adjusting method
CN108231088A (en) A kind of rapid automatic gain control method and device applied to voice digital signal
CN101867853B (en) Speech signal processing method and device based on microphone array
CN201860405U (en) Intelligent remote controller
CN102413543B (en) Initial AGC (automatic gain control) method and equipment of LTE (long term evolution) system
CN111799804B (en) Power system voltage regulation analysis method and device based on operation data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180330

CF01 Termination of patent right due to non-payment of annual fee