CN110236364B - Electric cooking appliance and voice volume adjusting method and device thereof - Google Patents

Electric cooking appliance and voice volume adjusting method and device thereof Download PDF

Info

Publication number
CN110236364B
CN110236364B CN201810186904.6A CN201810186904A CN110236364B CN 110236364 B CN110236364 B CN 110236364B CN 201810186904 A CN201810186904 A CN 201810186904A CN 110236364 B CN110236364 B CN 110236364B
Authority
CN
China
Prior art keywords
data
voice
played
initial
playing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810186904.6A
Other languages
Chinese (zh)
Other versions
CN110236364A (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.)
Foshan Shunde Midea Electrical Heating Appliances Manufacturing Co Ltd
Original Assignee
Foshan Shunde Midea Electrical Heating Appliances Manufacturing 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 Foshan Shunde Midea Electrical Heating Appliances Manufacturing Co Ltd filed Critical Foshan Shunde Midea Electrical Heating Appliances Manufacturing Co Ltd
Priority to CN201810186904.6A priority Critical patent/CN110236364B/en
Publication of CN110236364A publication Critical patent/CN110236364A/en
Application granted granted Critical
Publication of CN110236364B publication Critical patent/CN110236364B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47JKITCHEN EQUIPMENT; COFFEE MILLS; SPICE MILLS; APPARATUS FOR MAKING BEVERAGES
    • A47J27/00Cooking-vessels
    • A47J27/004Cooking-vessels with integral electrical heating means
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47JKITCHEN EQUIPMENT; COFFEE MILLS; SPICE MILLS; APPARATUS FOR MAKING BEVERAGES
    • A47J27/00Cooking-vessels
    • A47J27/08Pressure-cookers; Lids or locking devices specially adapted therefor
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47JKITCHEN EQUIPMENT; COFFEE MILLS; SPICE MILLS; APPARATUS FOR MAKING BEVERAGES
    • A47J36/00Parts, details or accessories of cooking-vessels
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47JKITCHEN EQUIPMENT; COFFEE MILLS; SPICE MILLS; APPARATUS FOR MAKING BEVERAGES
    • A47J2201/00Devices having a modular construction

Abstract

The invention discloses an electric cooking appliance and a voice volume adjusting method and device thereof, wherein the voice volume adjusting method comprises the following steps: acquiring preset voice initial data and preset mute data; acquiring a volume level set by a user and a voice to be played; acquiring initial playing data of voice to be played from preset voice initial data; adjusting the initial playing data according to the initial playing data, the volume level and preset mute data to generate adjusted data to be played; generating a playing duty ratio according to the adjusted data to be played; and playing the voice to be played according to the playing duty ratio. According to the method, on the premise of ensuring the voice effect of the electric cooking appliance, the voice volume is adjusted by adjusting the playing duty ratio, so that the electric cooking appliance can be compatible with different users and different use scenes, the user experience is improved, and the product competitiveness is also improved.

Description

Electric cooking appliance and voice volume adjusting method and device thereof
Technical Field
The invention relates to the technical field of electric appliances, in particular to a voice volume adjusting method of an electric cooking appliance, a non-transitory computer readable storage medium, a voice volume adjusting device of the electric cooking appliance and the electric cooking appliance.
Background
With the progress of technology, electric cooking appliances (e.g., electric cookers, electric pressure cookers, etc.) have been provided with more and more functions, such as voice functions.
In the related art, an electric cooking appliance generally has only a voice on/off function, but does not have a voice volume size adjustment function. However, different crowds and application scenes have different requirements on voice volume, and for young people, the hearing is better, and only moderate volume prompt is needed; for the elderly, hearing is reduced and a higher volume is required; for a noisy environment, a user with higher volume is required to hear clearly; for quiet environments, too high a volume may be loud; the reservation function of the electric cooker does not need to send out voice when people are deep at night and are still, otherwise, people can be disturbed to have a rest. Therefore, it is an urgent technical problem to be solved by those skilled in the art to provide an electric cooking appliance with adjustable voice volume while ensuring the voice effect of the electric cooking appliance.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art. Therefore, a first object of the present invention is to provide a method for adjusting a voice volume of an electric cooking appliance, which can adjust the voice volume by adjusting a play duty ratio on the premise of ensuring a voice effect of the electric cooking appliance, so that the electric cooking appliance can be compatible with different users and different use scenes, thereby improving user experience and product competitiveness.
A second object of the invention is to propose a non-transitory computer-readable storage medium.
The third purpose of the invention is to provide a voice volume adjusting device of an electric cooking appliance.
A fourth object of the present invention is to propose an electric cooking appliance.
In order to achieve the above object, a first embodiment of the present invention provides a voice volume adjusting method for an electric cooking appliance, including the following steps: acquiring preset voice initial data and preset mute data; acquiring a volume level set by a user and a voice to be played; acquiring initial playing data of the voice to be played from the preset voice initial data; adjusting the initial playing data according to the initial playing data, the volume level and the preset mute data to generate adjusted data to be played; generating a playing duty ratio according to the adjusted data to be played; and playing the voice to be played according to the playing duty ratio.
According to the voice volume adjusting method of the electric cooking appliance, the preset voice initial data and the preset mute data are obtained, the volume level set by a user and the voice to be played are obtained, the initial playing data of the voice to be played are obtained from the preset voice initial data, the initial playing data are adjusted according to the initial playing data, the volume level and the preset mute data to generate the adjusted data to be played, the playing duty ratio is generated according to the adjusted data to be played, and the voice to be played is played according to the playing duty ratio. Therefore, the method can adjust the voice volume by adjusting the playing duty ratio on the premise of ensuring the voice effect of the electric cooking appliance, so that the electric cooking appliance can be compatible with different users and different use scenes, the user experience is improved, and the product competitiveness is also improved.
In addition, the voice volume adjusting method of the electric cooking appliance according to the above embodiment of the present invention may further have the following additional technical features:
according to an embodiment of the present invention, the voice volume adjusting method of the electric cooking appliance further includes: judging whether the volume level is a mute level; and if the preset mute level is the mute level, playing the preset mute data.
According to an embodiment of the present invention, the adjusting the initial playing data according to the initial playing data, the volume level, and the preset mute data to generate the adjusted data to be played specifically includes: if the initial playing data is not in the mute level, further judging whether the initial playing data is larger than the preset mute data; if the initial playing data is larger than the preset mute data, generating the adjusted data to be played according to the following formula:
Figure BDA0001590548140000021
wherein D1 is the adjusted data to be played, D is the initial playing data, P is the volume level, and T is the preset mute data.
According to an embodiment of the present invention, the adjusting the initial playing data according to the initial playing data, the volume level, and the preset mute data to generate the adjusted data to be played specifically includes: if the initial playing data is less than or equal to the preset mute data, generating the adjusted voice data to be played according to the following formula:
Figure BDA0001590548140000022
wherein D1 is the adjusted data to be played, D is the initial playing data, P is the volume level, and T is the preset mute data.
According to the inventionIn one embodiment, the playback duty cycle is generated by the following equation:
Figure BDA0001590548140000023
wherein F is the playing duty ratio, D1 is the adjusted data to be played, and T is the preset mute data.
To achieve the above object, a second embodiment of the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for adjusting the voice volume of an electric cooking appliance according to the first embodiment of the present invention.
According to the non-transitory computer-readable storage medium of the embodiment of the invention, the preset voice initial data and the preset mute data are firstly obtained, the volume level and the voice to be played set by the user are obtained, the initial play data of the voice to be played are then obtained from the preset voice initial data, the initial play data are adjusted according to the initial play data, the volume level and the preset mute data to generate the adjusted data to be played, the play duty ratio is generated according to the adjusted data to be played, and the voice to be played is played according to the play duty ratio, so that the electric cooking appliance can be compatible with different users and different use scenes on the premise of ensuring the voice effect of the electric cooking appliance, the user experience is improved, and the product competitiveness is also improved.
In order to achieve the above object, a third embodiment of the present invention provides a voice volume adjusting device for an electric cooking appliance, including: the first acquisition module is used for acquiring preset voice initial data and preset mute data; the second acquisition module is used for acquiring the volume level and the voice to be played set by the user and acquiring initial playing data of the voice to be played from the preset voice initial data; and the adjusting module is used for adjusting the initial playing data according to the initial playing data, the volume level and the preset mute data to generate adjusted data to be played, generating a playing duty ratio according to the adjusted data to be played, and playing the data to be played according to the playing duty ratio.
According to the voice volume adjusting device of the electric cooking appliance, the first obtaining module obtains preset voice initial data and preset mute data, the second obtaining module obtains a volume level set by a user and voice to be played, obtains initial playing data of the voice to be played from the preset voice initial data, the adjusting module adjusts the initial playing data according to the initial playing data, the volume level and the preset mute data to generate adjusted data to be played, generates a playing duty ratio according to the adjusted data to be played, and plays the data to be played according to the playing duty ratio. From this, the device can be under the prerequisite of guaranteeing electric cooking utensil's voice effect, adjusts the pronunciation volume through the size of adjusting the broadcast duty cycle to make electric cooking utensil can compatible different use crowd and different use scene, both promoted user experience, promoted product competitiveness again.
In addition, the voice volume adjusting device of the electric cooking appliance according to the above embodiment of the present invention may further have the following additional technical features:
according to an embodiment of the present invention, the adjusting module is further configured to determine whether the volume level is a mute level; if the mute level is the mute level, playing preset mute data.
According to an embodiment of the present invention, the adjusting module is specifically configured to, if the initial play data is not a mute level, further determine whether the initial play data is greater than the preset mute data; if the initial playing data is larger than the preset mute data, generating the adjusted data to be played according to the following formula:
Figure BDA0001590548140000031
wherein D1 is the adjusted data to be played, D is the initial playing data, P is the volume level, and T is the preset mute data.
According to an embodiment of the present invention, the adjusting module is further configured to adjust the initial play data if the initial play data is less than or equal to the initial play dataAnd generating the adjusted data to be played according to the following formula if preset mute data is preset:
Figure BDA0001590548140000032
wherein D1 is the adjusted data to be played, D is the initial data to be played, P is the volume level, and T is the preset mute data.
According to an embodiment of the present invention, the adjusting module is further configured to generate the play duty cycle by the following formula:
Figure BDA0001590548140000041
wherein F is the play duty ratio, D1 is the adjusted voice data, and T is the preset mute data.
According to one embodiment of the invention, a key for a user to set a volume level is arranged on the housing of the electric cooking appliance.
In order to achieve the above object, a fourth aspect of the present invention provides an electric cooking appliance, which includes the voice volume adjusting device of the electric cooking appliance according to the third aspect of the present invention.
According to the electric cooking appliance provided by the embodiment of the invention, the voice volume can be adjusted by adjusting the playing duty ratio on the premise of ensuring the voice effect of the electric cooking appliance through the voice volume adjusting device of the electric cooking appliance, so that the electric cooking appliance can be compatible with different users and different use scenes, the user experience is improved, and the product competitiveness is also improved.
Drawings
Fig. 1 is a flowchart of a voice volume adjusting method of an electric cooking appliance according to an embodiment of the present invention;
fig. 2 is a flowchart of a voice volume adjusting method of an electric cooking appliance according to another embodiment of the present invention.
Fig. 3 is a block diagram illustrating a voice volume adjusting apparatus of an electric cooking appliance according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
A voice volume adjustment method of an electric cooking appliance, a non-transitory computer-readable storage medium, a voice volume adjustment device of an electric cooking appliance, and an electric cooking appliance proposed according to an embodiment of the present invention are described below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a voice volume adjusting method of an electric cooking appliance according to an embodiment of the present invention. As shown in fig. 1, the voice volume adjusting method includes the steps of:
s1, acquiring the preset voice initial data and the preset mute data T. Wherein the mute data T corresponds to a standard minimum volume.
Specifically, the initial data corresponds to a waveform file, such as a sine wave, and the farther from the central axis, the louder the sound, the central axis is the mute data T, and the mute data T represents the corresponding voice data when the voice state is the mute state. The voice file can be sampled according to standard maximum volume, then the data is mapped in 0-2T, and initial voice data is generated and stored in a voice Flash (Flash memory).
And S2, acquiring the volume level P set by the user and the voice to be played.
Specifically, the volume level P represents the volume level, different volume levels correspond to different volume levels, the user may divide the volume level into N volume levels, where P1, P2, and P3 … PN are respectively, N is a positive integer, the value of N is generally between 3 and 6, for example, N may be 4, the volume level P may be P1, P2, P3, P4, P1 may represent a mute level, P2 may represent a large volume level, P3 may represent a medium volume level, and P4 may represent a small volume level, a key or a touch screen for the user to set the volume level P is provided on the housing of the electric cooking appliance, and the user may autonomously set the volume level P according to the actual situation by operating the key or the touch screen, for example, if the hearing of the user is not good, the volume level may be set to the large volume level, that is, P is P1. The voice to be played is a certain sentence of voice which needs to be played currently.
S3, obtaining initial playing data D of the voice to be played from the preset voice initial data.
S4, adjusting the initial playing data according to the initial playing data D, the volume level P and the preset mute data T to generate the adjusted data D1 to be played.
S5, generating a playing duty ratio F according to the adjusted data D1 to be played.
Specifically, the broadcast duty ratio F may be a duty ratio of a PWM (Pulse Width Modulation) signal input to a voice output circuit of the electric cooking appliance, and the voice volume output by the voice output circuit may be adjusted by adjusting the duty ratio of the PWM signal input to the voice output circuit. The ratio of the adjusted voice data D1 to the maximum value in the corresponding range of the data can be used as the duty ratio F, when F is 50%, the voice is in a mute state, and when F is close to 0% and 100%, the voice is at the maximum volume.
To this end, in the implementation of the present invention, the playback duty cycle F may be generated by the following formula (1):
Figure BDA0001590548140000051
wherein, F is the playing duty ratio, D1 is the adjusted data to be played, and T is the preset mute data.
And S6, playing the data to be played according to the playing duty ratio F.
Specifically, when the electric cooking appliance plays voice, preset voice initial data and preset mute data T are obtained from the voice Flash, a volume level P set by a user and voice to be played are obtained, initial play data D of the voice to be played are obtained from the preset voice initial data, and then the initial play data D, the volume level P and the preset mute data T are scaled according to the ratio between the volume level P and the voice to be played and the ratio between the volume level D and the mute data TAnd the difference value is used for generating the adjusted data D1 to be played, so that the voice distortion or the noise is avoided. Then according to
Figure BDA0001590548140000052
And calculating a playing duty ratio F, and adjusting the duty ratio of a PWM signal of the input value voice output circuit according to the playing duty ratio F so as to adjust the volume of the voice to be played. According to the method, on the premise of ensuring the voice effect of the electric cooking appliance, the voice volume is adjusted by adjusting the playing duty ratio, so that the electric cooking appliance can be compatible with different users and different use scenes, the user experience is improved, and the product competitiveness is also improved.
According to an embodiment of the present invention, as shown in fig. 2, the method described above may further include:
in S401, it is determined whether the volume level P is the mute level P1.
S402, if it is the mute level P1, playing the preset mute data T.
Specifically, to remain quiet, the user may set the mute level P to the mute level P1. When the user sets the mute level P to the mute level P1, the preset mute data T, i.e., D1-T,
Figure BDA0001590548140000061
further, according to an embodiment of the present invention, as shown in fig. 2, adjusting the initial playing data according to the initial playing data D, the volume level P, and the preset mute data T to generate adjusted data to be played D1 specifically includes:
s403, if the data is not a mute level, further determining whether the initial playing data D is greater than the preset mute data T.
S404, if the initial playing data D is greater than the preset mute data T, generating the adjusted data to be played D1 according to the following formula (2):
Figure BDA0001590548140000062
wherein, D1 is the adjusted data to be played, D is the initial playing data, P is the volume level, and T is the preset mute data.
S405, if the initial playing data D is less than or equal to the preset mute data T, generating the adjusted data to be played D1 according to the following formula (3):
Figure BDA0001590548140000063
wherein, D1 is the adjusted data to be played, D is the initial playing data, P is the volume level, and T is the preset mute data.
That is, when the volume level P is not a mute level, if D > T, then
Figure BDA0001590548140000064
If D ≦ T, then
Figure BDA0001590548140000065
This mode is the difference that leads to initial broadcast data D and predetermined silence data T of coming scaling initial broadcast data D and predetermined silence data T's comparison, thereby correspond the duty cycle of adjustment speech output circuit's PWM signal, can not make the pronunciation distortion or produce the noise, can be under the prerequisite of the speech effect of guaranteeing electric cooking utensil, through adjusting the size regulation pronunciation volume of broadcast duty cycle, thereby make electric cooking utensil can compatible different user crowd and different use scenes, user experience has both been promoted, product competitiveness has been promoted again.
In order that those skilled in the art will more clearly understand the invention, reference will now be made to specific examples.
When the volume levels P are 4, that is, the volume levels P may be P1, P2, P3, P4, P1 being 0 (mute level), P2 being 1 (large volume level), P3 being 2 (medium volume level), P4 being 3 (small volume level); t is 0 × 7F. If the initial play data D is 0 × D9:
when P is P1, i.e., the mute level, then D1 is T0 × 7F; f is 50%.
When P is P2, i.e. a high volume level, then
Figure BDA0001590548140000066
Figure BDA0001590548140000071
When P is P3, i.e. medium volume level, then
Figure BDA0001590548140000072
F=67%。
When P is P4, i.e. a low volume level, then
Figure BDA0001590548140000073
F=61%。
And adjusting the duty ratio of the PWM signal input to the voice output circuit according to the calculated playing duty ratio, so that the voice volume of the electric cooking device can be adjusted.
In the present invention, the electric cooking appliance may be an electric pressure cooker or an electric rice cooker.
In summary, according to the voice volume adjusting method of the electric cooking appliance in the embodiment of the present invention, the preset voice initial data and the preset mute data are obtained, the volume level and the voice to be played set by the user are obtained, the initial play data of the voice to be played is obtained from the preset voice initial data, the initial play data is adjusted according to the initial play data, the volume level and the preset mute data to generate the adjusted data to be played, the play duty ratio is generated according to the adjusted data to be played, and the voice to be played is played according to the play duty ratio. Therefore, the method can adjust the voice volume by adjusting the playing duty ratio on the premise of ensuring the voice effect of the electric cooking appliance, so that the electric cooking appliance can be compatible with different users and different use scenes, the user experience is improved, and the product competitiveness is also improved.
An embodiment of the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the above-mentioned voice volume adjusting method for an electric cooking appliance.
According to the non-transitory computer-readable storage medium of the embodiment of the invention, the preset voice initial data and the preset mute data are firstly obtained, the volume level and the voice to be played set by the user are obtained, the initial play data of the voice to be played are then obtained from the preset voice initial data, the initial play data are adjusted according to the initial play data, the volume level and the preset mute data to generate the adjusted data to be played, the play duty ratio is generated according to the adjusted data to be played, and the voice to be played is played according to the play duty ratio, so that the electric cooking appliance can be compatible with different users and different use scenes on the premise of ensuring the voice effect of the electric cooking appliance, the user experience is improved, and the product competitiveness is also improved.
Fig. 3 is a block diagram illustrating a voice volume adjusting apparatus of an electric cooking appliance according to an embodiment of the present invention. As shown in fig. 3, the apparatus includes: a first acquisition module 10, a second acquisition module 20 and an adjustment module 30.
The first obtaining module 10 is configured to obtain preset voice initial data and preset mute data T, where the mute data T corresponds to a standard minimum volume. The second obtaining module 20 is configured to obtain a volume level P and a voice to be played, which are set by a user, and obtain initial playing data D of the voice to be played from preset voice initial data. The adjusting module 30 is configured to adjust the initial playing data D according to the initial playing data D, the volume level P, and the preset mute data T to generate adjusted data to be played D1, generate a playing duty ratio F according to the adjusted data to be played D1, and play the data to be played according to the playing duty ratio F.
Further, in the embodiment of the present invention, the adjusting module 30 is further configured to generate the play duty ratio F by the following formula (1):
Figure BDA0001590548140000081
wherein, F is the playing duty ratio, D1 is the adjusted data to be played, and T is the preset mute data.
In the embodiment of the present invention, a key for the user to set the volume level P is disposed on the housing of the electric cooking appliance. Of course, a touch screen or other means for the user to set the volume level P is also possible.
Specifically, the initial data corresponds to a waveform file, such as a sine wave, the farther from the central axis, the louder the central axis, the central axis is the preset mute data T, and the preset mute data T represents the corresponding voice data when the voice state is the mute state. The voice file can be sampled according to standard maximum volume, then the data is mapped in 0-2T, and preset voice initial data is generated and stored in a voice Flash (Flash memory). The volume level P represents the volume level, different volume levels correspond to different volume levels, the user can divide the volume level into N volume levels, which are P1, P2 and P3 … PN, respectively, N is a positive integer, the value of N is generally between 3 and 6, for example, N can be 4, the volume level P can be P1, P2, P3 and P4, P1 can represent a mute level, P2 can represent a large volume level, P3 can represent a medium volume level, P4 can represent a small volume level, and the user can autonomously set the volume level P according to the actual situation by operating a key on the housing of the electric cooking appliance for the user to set the volume level P, for example, if the hearing of the user is not good, the volume level can be set to the large volume level, that is P1. The voice to be played is a certain sentence of voice which needs to be played currently.
When the electric cooking appliance plays voice, the first obtaining module 10 first obtains preset voice initial data and preset mute data T from the voice Flash, the second obtaining module 20 obtains a volume level P set by a user and voice to be played, obtains initial play data D of the voice to be played from the preset voice initial data, and the adjusting module 30 scales the initial play data D by a difference value between D and T according to the initial play data D, the volume level P and the preset mute data T to generate an adjusted data to be playedThe data D1 is played to avoid speech distortion or noise generation. Then the adjusting module 30 is based on
Figure BDA0001590548140000082
And calculating a playing duty ratio F, and adjusting the duty ratio of a PWM signal of the input value voice output circuit according to the playing duty ratio F so as to adjust the volume of the voice to be played. The device can be under the prerequisite of guaranteeing electric cooking utensil's voice effect, adjusts the pronunciation volume through the size of adjusting the broadcast duty cycle to make electric cooking utensil can compatible different use crowd and different use scenes, both promoted user experience, promoted product competitiveness again.
According to an embodiment of the present invention, the adjusting module 30 may be further configured to determine whether the volume level P is a mute level P1; if it is the mute level P1, the preset mute data T is played.
Specifically, to remain quiet, the user may set the mute level P to the mute level P1. When the user sets the mute level P to the mute level P1, the preset mute data T, i.e., D1-T,
Figure BDA0001590548140000091
further, according to an embodiment of the present invention, the adjusting module 30 is specifically configured to:
if the data is not the mute level P1, further judging whether the initial play data D is larger than the preset mute data T; if the data D to be initially played is larger than the preset mute data T, generating adjusted data D1 to be played according to the following formula (2):
Figure BDA0001590548140000092
wherein, D1 is the adjusted data to be played, D is the initial playing data, P is the volume level, and T is the preset mute data.
If the initial play data D is less than or equal to the preset mute data T, the adjusted data to be played D1 is generated according to the following formula (3):
Figure BDA0001590548140000093
wherein, D1 is the adjusted data to be played, D is the initial playing data, P is the volume level, and T is the preset mute data.
That is, when the volume level P is not a mute level, if D > T, the adjustment module 30 adjusts based on
Figure BDA0001590548140000094
Generating adjusted voice data D1; if D ≦ T, the adjustment module 30 may be based on
Figure BDA0001590548140000095
Adjusted voice data D1 is generated. This mode is the difference that leads to initial broadcast data D and predetermined silence data T of coming scaling initial broadcast data D and predetermined silence data T's comparison, thereby correspond the duty cycle of adjustment speech output circuit's PWM signal, can not make the pronunciation distortion or produce the noise, can be under the prerequisite of the speech effect of guaranteeing electric cooking utensil, through adjusting the size regulation pronunciation volume of broadcast duty cycle, thereby make electric cooking utensil can compatible different user crowd and different use scenes, user experience has both been promoted, product competitiveness has been promoted again.
In order that those skilled in the art will more clearly understand the invention, reference will now be made to specific examples.
When the volume levels P are 4, that is, the volume levels P may be P1, P2, P3, P4, P1 being 0 (mute level), P2 being 1 (large volume level), P3 being 2 (medium volume level), P4 being 3 (small volume level); t is 0 × 7F. If the initial play data D is 0 × D9:
when P is P1, i.e., the mute level, then D1 is T0 × 7F; f is 50%.
When P is P2, i.e. a high volume level, then
Figure BDA0001590548140000096
Figure BDA0001590548140000097
When P is P3, i.e. medium volume level, then
Figure BDA0001590548140000098
F=67%。
When P is P4, i.e. a low volume level, then
Figure BDA0001590548140000101
F=61%。
The adjusting module 30 adjusts the duty ratio of the PWM signal inputted to the voice output circuit according to the calculated play duty ratio, so that the voice volume of the electric cooking device can be adjusted.
In the present invention, the electric cooking appliance may be an electric pressure cooker or an electric rice cooker.
According to the voice volume adjusting device of the electric cooking appliance, the first obtaining module obtains preset voice initial data and preset mute data, the second obtaining module obtains a volume level set by a user and voice to be played, obtains initial playing data of the voice to be played from the preset voice initial data, the adjusting module adjusts the initial playing data according to the initial playing data, the volume level and the preset mute data to generate adjusted data to be played, generates a playing duty ratio according to the adjusted data to be played, and plays the data to be played according to the playing duty ratio. From this, the device can be under the prerequisite of guaranteeing electric cooking utensil's voice effect, adjusts the pronunciation volume through the size of adjusting the broadcast duty cycle to make electric cooking utensil can compatible different use crowd and different use scene, both promoted user experience, promoted product competitiveness again.
In addition, the invention also provides an electric cooking appliance, which comprises the voice volume adjusting device of the electric cooking appliance.
According to the electric cooking appliance provided by the embodiment of the invention, the voice volume can be adjusted by adjusting the playing duty ratio on the premise of ensuring the voice effect of the electric cooking appliance through the voice volume adjusting device of the electric cooking appliance, so that the electric cooking appliance can be compatible with different users and different use scenes, the user experience is improved, and the product competitiveness is also improved.
In the description of the present invention, it is to be understood that the terms "central," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," "counterclockwise," "axial," "radial," "circumferential," and the like are used in the orientations and positional relationships indicated in the drawings for convenience in describing the invention and to simplify the description, and are not intended to indicate or imply that the referenced devices or elements must have a particular orientation, be constructed and operated in a particular orientation, and are therefore not to be considered limiting of the invention.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; they may be directly connected or indirectly connected through intervening media, or they may be connected internally or in any other suitable relationship, unless expressly stated otherwise. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the present invention, unless otherwise expressly stated or limited, the first feature "on" or "under" the second feature may be directly contacting the first and second features or indirectly contacting the first and second features through an intermediate. Also, a first feature "on," "over," and "above" a second feature may be directly or diagonally above the second feature, or may simply indicate that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature may be directly under or obliquely under the first feature, or may simply mean that the first feature is at a lesser elevation than the second feature.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (11)

1. A voice volume adjusting method of an electric cooking appliance is characterized by comprising the following steps:
acquiring preset voice initial data and preset mute data;
acquiring a volume level set by a user and a voice to be played;
acquiring initial playing data of the voice to be played from the preset voice initial data;
adjusting the initial playing data according to the initial playing data, the volume level and the preset mute data to generate adjusted data to be played, which specifically comprises:
if the initial playing data is not in the mute level, further judging whether the initial playing data is larger than the preset mute data;
if the initial playing data is larger than the preset mute data, generating the adjusted data to be played according to the following formula:
Figure FDA0002756700440000011
wherein D1 is the adjusted data to be played, D is the initial playing data, P is the volume level, and T is the preset mute data;
generating a playing duty ratio according to the adjusted data to be played; and
and playing the data to be played according to the playing duty ratio.
2. The voice volume adjusting method of an electric cooking appliance according to claim 1, further comprising:
judging whether the volume level is a mute level;
and if the preset mute level is the mute level, playing the preset mute data.
3. The method for adjusting the voice volume of the electric cooking appliance according to claim 1 or 2, wherein the adjusting the initial playing data according to the initial playing data, the volume level and the preset mute data to generate the adjusted data to be played specifically comprises:
if the initial playing data is less than or equal to the preset mute data, generating the adjusted voice data to be played according to the following formula:
Figure FDA0002756700440000012
wherein D1 is the adjusted data to be played, D is the initial playing data, P is the volume level, and T is the preset mute data.
4. The voice volume adjusting method of an electric cooking appliance according to claim 1, wherein the play duty ratio is generated by the following formula:
Figure FDA0002756700440000013
wherein F is the playing duty ratio, D1 is the adjusted data to be played, and T is the preset mute data.
5. A non-transitory computer-readable storage medium having stored thereon a computer program, wherein the program, when executed by a processor, implements the voice volume adjustment method of an electric cooking appliance according to any one of claims 1 to 4.
6. A voice volume adjusting apparatus of an electric cooking appliance, comprising:
the first acquisition module is used for acquiring preset voice initial data and preset mute data;
the second acquisition module is used for acquiring the volume level and the voice to be played set by the user and acquiring initial playing data of the voice to be played from the preset voice initial data;
an adjusting module, configured to adjust initial playing data according to the initial playing data, the volume level, and the preset mute data to generate adjusted data to be played, generate a playing duty ratio according to the adjusted data to be played, and play the data to be played according to the playing duty ratio,
the regulating module is particularly adapted to,
if the initial playing data is not in the mute level, further judging whether the initial playing data is larger than the preset mute data;
if the initial playing data is larger than the preset mute data, generating the adjusted data to be played according to the following formula:
Figure FDA0002756700440000021
wherein D1 is the adjusted data to be played, D is the initial playing data, P is the volume level, and T is the preset mute data.
7. The voice volume adjustment device of an electric cooking appliance according to claim 6, wherein the adjustment module is further configured to,
judging whether the volume level is a mute level;
and if the preset mute level is the mute level, playing the preset mute data.
8. The voice volume adjustment device of an electric cooking appliance according to claim 6 or 7, wherein the adjustment module is further configured to,
if the initial playing data is less than or equal to the preset mute data, generating the adjusted data to be played according to the following formula:
Figure FDA0002756700440000022
wherein D1 is the adjusted data to be played, D is the initial data to be played, P is the volume level, and T is the preset mute data.
9. The voice volume adjustment device of an electric cooking appliance according to claim 6, wherein the adjustment module is further configured to generate the play duty cycle by the following formula:
Figure FDA0002756700440000023
wherein F is the play duty ratio, D1 is the adjusted voice data, and T is the preset mute data.
10. The voice volume adjusting apparatus of an electric cooking appliance according to claim 6, wherein a button for a user to set a volume level is provided on a housing of the electric cooking appliance.
11. An electric cooking appliance, characterized in that it comprises a voice volume adjustment device of an electric cooking appliance according to any one of claims 6 to 10.
CN201810186904.6A 2018-03-07 2018-03-07 Electric cooking appliance and voice volume adjusting method and device thereof Active CN110236364B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810186904.6A CN110236364B (en) 2018-03-07 2018-03-07 Electric cooking appliance and voice volume adjusting method and device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810186904.6A CN110236364B (en) 2018-03-07 2018-03-07 Electric cooking appliance and voice volume adjusting method and device thereof

Publications (2)

Publication Number Publication Date
CN110236364A CN110236364A (en) 2019-09-17
CN110236364B true CN110236364B (en) 2021-02-23

Family

ID=67882467

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810186904.6A Active CN110236364B (en) 2018-03-07 2018-03-07 Electric cooking appliance and voice volume adjusting method and device thereof

Country Status (1)

Country Link
CN (1) CN110236364B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110236411A (en) 2017-08-09 2019-09-17 沙克忍者运营有限责任公司 Cooking system
US11751710B2 (en) 2019-02-25 2023-09-12 Sharkninja Operating Llc Guard for cooking system
US20210121012A1 (en) 2020-03-30 2021-04-29 Sharkninja Operating Llc Cooking device and components thereof

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101222210A (en) * 2007-01-08 2008-07-16 乐金电子(中国)研究开发中心有限公司 Apparatus and method for self-adapting sound volume regulation of mobile phone
CN104427075B (en) * 2013-08-26 2019-02-26 深圳富泰宏精密工业有限公司 Sound volume regulating system and method
US9431982B1 (en) * 2015-03-30 2016-08-30 Amazon Technologies, Inc. Loudness learning and balancing system
US20170060520A1 (en) * 2015-09-01 2017-03-02 AudioCommon, Inc. Systems and methods for dynamically editable social media
CN105260161A (en) * 2015-10-29 2016-01-20 维沃移动通信有限公司 Method for application software volume control and mobile terminal

Also Published As

Publication number Publication date
CN110236364A (en) 2019-09-17

Similar Documents

Publication Publication Date Title
CN110236364B (en) Electric cooking appliance and voice volume adjusting method and device thereof
US9992586B2 (en) Method of optimizing parameters in a hearing aid system and a hearing aid system
US9319814B2 (en) Method for fitting a hearing aid device with active occlusion control to a user
US20120215532A1 (en) Hearing assistance system for providing consistent human speech
CN110806849A (en) Intelligent device, volume adjusting method thereof and computer-readable storage medium
TW201025843A (en) A method and an apparatus for processing an audio signal
US8488825B2 (en) Hearing aid and hearing aid system
CN110677776B (en) Volume adjusting method and device, intelligent sound box and storage medium
CN107682802B (en) Method and device for debugging sound effect of audio equipment
CN202587111U (en) Audio signal processing system and mobile terminal employing audio signal processing system
US8930004B2 (en) Electronic device and fan control method
TW201414274A (en) Sound effect managing system and sound effect managing method
WO2003083827A1 (en) Annunciator
JP2012063614A (en) Masking sound generation device
JP5340121B2 (en) Audio signal playback device
JP2016177205A (en) Sound masking device
CN112511123A (en) Sound effect customizing method and device, electronic equipment and storage medium
JP2004015125A (en) Automatic gain control apparatus
CN103680552A (en) Sound effect processing system and method for the same
US8917887B2 (en) Signal processor and signal processing method
CN113810833A (en) Temperature protection circuit, method, protection device and electronic equipment
TWI284278B (en) Audio control system and method
JP5370182B2 (en) Audio processing apparatus and audio processing method
JP2008224816A (en) Karaoke device
JP2016010048A (en) Audio signal adjustment circuit

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