Volume control method, control equipment, terminal and computer equipment
By receiving wake-up notifications in smart homes and controlling the playback device to perform voice playback at the target volume, the problem of inaccurate voice command recognition in far-field voice control is solved, improving the recognition accuracy of voice commands and the reliability of smart home control.
Patent Information
- Application Number
- CN202410625748.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-20
- Publication Date
- 2024-08-23
AI Technical Summary
In the existing technology, when using far-field voice to control smart homes, there is a problem of inaccurate voice command recognition, which affects the user's operating experience.
By receiving the wake-up notification, the playback device is controlled to perform voice playback at the target volume, ensuring that the user's voice commands are received in the voice playback environment at the target volume, reducing interference from voice playback, thereby improving the recognition accuracy of voice commands.
In the voice playback environment of the target volume, the voice playback interference of the playback device is reduced, the recognition accuracy of the voice commands issued by the user is improved, and the reliability of smart home control is enhanced.
Smart Images

Figure CN118534814A
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart home technology, and in particular to a volume control method, a control device, a terminal and a computer device. Background Art
[0002] Currently, there is a demand for using far-field voice to control smart homes. For example, when a user is watching a movie on TV, if he wants to adjust the lights through a smart speaker, he can say a preset wake-up word to wake up the smart speaker, and then send a corresponding voice command to the smart speaker. For example, the user can say "turn on the movie mode" to let the smart speaker adjust the lights in the home to the movie mode.
[0003] However, the above control method has the problem of inaccurate recognition of voice commands. Summary of the invention
[0004] Based on this, it is necessary to provide a volume control method, control device, terminal and computer device that can improve the recognition accuracy of voice commands in response to the above technical problems.
[0005] In a first aspect, the present application provides a volume control method, which is applied to a control device, comprising:
[0006] Receive a wake-up notification; a wake-up notification is a notification sent by the terminal to the control device when entering the wake-up state;
[0007] Controlling the playback device to play voice at a target volume according to the wake-up notification, where the target volume is used for the terminal to receive a voice command issued by the user in a voice playback environment at the target volume. In one embodiment, controlling the playback device to play voice at a target volume according to the wake-up notification includes:
[0008] Get the current volume of the playback device based on the wake-up notification;
[0009] Control the playback device to play voice at the target volume based on the current volume and volume threshold.
[0010] In one embodiment, controlling a playback device to play voice at a target volume according to a current volume and a volume threshold includes:
[0011] Determine the volume to be lowered according to the current volume and the volume threshold;
[0012] The difference between the current volume and the volume to be lowered is used as the target volume.
[0013] In one embodiment, determining the volume to be lowered according to the current volume and the volume threshold includes:
[0014] If the current volume is not less than the volume threshold, the difference between the current volume and the volume threshold is used as the volume to be reduced;
[0015] If the current volume is less than the volume threshold, it is determined that the volume to be reduced is zero.
[0016] In one embodiment, the method further comprises:
[0017] Receive end notification; the end notification is a notification sent by the terminal to the control device when exiting the wake-up state;
[0018] Control the playback device to restore to the current volume based on the end notification.
[0019] In a second aspect, the present application also provides a volume control method, applied to a terminal, comprising:
[0020] When entering the wake-up state, a wake-up notification is sent to the control device; the wake-up notification is used for the control device to control the playback device to play the voice at the target volume according to the wake-up notification;
[0021] In a voice playback environment at a target volume, a voice command issued by a user is received.
[0022] In one embodiment, the method further comprises:
[0023] Get the wake-up voice issued by the user;
[0024] Enter the wake-up state according to the wake-up voice.
[0025] In one embodiment, the method further comprises:
[0026] When the awake state is exited, an end notification is sent to the control device; the end notification is used for the control device to control the playback device to return to the current volume according to the end notification.
[0027] In one embodiment, the method further comprises:
[0028] After the preset time in the wake-up state or the recognition of the voice command is completed, the wake-up state is exited.
[0029] In a third aspect, the present application further provides a control device, including:
[0030] A first receiving module, configured to receive a wake-up notification; the wake-up notification is a notification sent by the terminal to the control device when entering a wake-up state;
[0031] The first control module is used to control the playback device to play voice at a target volume according to the wake-up notification. The target volume is used for the terminal to receive the voice command issued by the user in the voice playback environment of the target volume.
[0032] In a fourth aspect, the present application further provides a terminal, including:
[0033] The first sending module is used to send a wake-up notification to the control device when entering the wake-up state; the wake-up notification is used for the control device to control the playback device to play the voice at a target volume according to the wake-up notification;
[0034] The receiving module is used to receive the voice command issued by the user in the voice playback environment of the target volume.
[0035] In a fifth aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any of the above methods when executing the computer program.
[0036] In a sixth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of any of the above methods when executed by a processor.
[0037] In a fifth aspect, the present application also provides a computer program product, including a computer program, which implements the steps of any of the above methods when executed by a processor.
[0038] The above-mentioned volume control method, control device, terminal and computer device can receive a wake-up notification and control the playback device to play voice at a target volume according to the wake-up notification. Since the wake-up notification is a notification sent by the terminal to the control device when entering the wake-up state, and the target volume is used for the terminal to receive the voice command issued by the user in a voice playback environment of the target volume, therefore, in the voice playback environment of the target volume, the interference of the voice playback of the playback device is reduced, and the terminal can receive the voice command issued by the user more accurately, thereby improving the recognition accuracy of the voice command. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0040] FIG1 is a diagram showing an application environment of a volume control method according to an embodiment;
[0041] Figure 2 is a flow chart of a volume control method in one embodiment;
[0042] Figure 3 A schematic diagram of a flow chart of controlling voice playback in one embodiment;
[0043] Figure 4 A schematic diagram of a flow chart of controlling voice playback in another embodiment;
[0044] Figure 5 A schematic diagram of a flow chart of determining a volume to be lowered in one embodiment;
[0045] Figure 6 A schematic diagram of a principle for determining a volume to be lowered in one embodiment;
[0046] Figure 7 A schematic diagram of a flow chart of determining a volume to be lowered in one embodiment;
[0047] Figure 8 is a flow chart of yet another volume control method in an embodiment;
[0048] Fig. 9 A process diagram of a volume control method in one embodiment;
[0049] Fig.10 is a structural block diagram of a control device in one embodiment;
[0050] Fig.11 is a structural block diagram of a terminal in an embodiment;
[0051] FIG. 12 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0052] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0053] FIG1 is an application environment diagram of a volume control method in an embodiment, and FIG1 shows a usage scenario of a smart home. The control device 101 can communicate with the terminal 102 and the playback device 103 respectively. Among them, the control device 101 can be a set-top box, or it can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. The terminal 102 can include but is not limited to an Internet of Things device and a portable wearable device. The Internet of Things device can be a smart speaker, a smart TV, a smart air conditioner, a smart car device, a projection device, etc. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, etc. The playback device 103 can include but is not limited to a TV.
[0054] Referring to FIG. 1 , when using the playback device 103, the user may wish to perform smart home control through the terminal 102. For example, the user may say a preset wake-up word to wake up the terminal 102, and then send a corresponding voice command to the terminal 102. For example, the user may say "turn on the movie viewing mode" so that the terminal 102 adjusts the lights in the home to the movie viewing mode.
[0055] However, there is a problem of inaccurate recognition of voice commands during the use of the playback device 103. Based on this, the present application provides a volume control method, which will be introduced below.
[0056] Figure 2 FIG. 1 is a flow chart of a volume control method in an embodiment. In an exemplary embodiment, as shown in FIG. Figure 2 As shown, a volume control method is provided, which is described by taking the method applied to the control device in FIG. 1 as an example, and includes the following S201 to S202. Among them:
[0057] S201, receiving a wake-up notification; the wake-up notification is a notification sent by the terminal to the control device when entering a wake-up state.
[0058] In this embodiment, the terminal can enter the awake state. The awake state is a state in which the terminal can receive a voice command issued by a user. Optionally, the user can make the terminal enter the awake state by a preset awakening voice, or by pressing a preset button on the terminal, and this embodiment is not limited thereto.
[0059] Furthermore, when the terminal enters the awake state, it will send a wake-up notification to the control device, so that the control device receives the wake-up notification. This embodiment does not limit the content form and sending method of the wake-up notification.
[0060] It is understandable that, in one embodiment, before the control device receives the wake-up notification, it needs to establish a connection with the terminal. Optionally, after the control device is turned on, it can search for candidate terminals in the same local area network, and establish a connection with at least one of the terminals through broadcast signaling. Further optionally, the user can determine the terminal to be connected to the control device from each terminal, and then the terminal will send a first signaling to the control device. After receiving the first signaling, the control device will reply to the terminal with a second signaling to establish a connection between the terminal and the control device. In some embodiments, the terminal to establish a connection needs to send signaling regularly to the control device to maintain the connection. Exemplarily, if the terminal goes offline and the control device does not receive the signaling sent by the terminal within the agreed time, the connection with the terminal will be disconnected.
[0061] Further optionally, the control device may receive a wake-up notification sent by the terminal via a local area network.
[0062] S202: Control the playback device to play voice at a target volume according to the wake-up notification, where the target volume is used for the terminal to receive a voice command issued by the user in a voice playback environment at the target volume.
[0063] Furthermore, after receiving the wake-up notification, the control device can determine that the user is about to issue a voice command. Therefore, in order to ensure that the voice command issued by the user is accurately recognized by the terminal, the control device will control the playback device to play the voice at the target volume according to the wake-up notification. The target volume is used for the terminal to receive the voice command issued by the user in the voice playback environment of the target volume, that is, the target volume is the volume that enables the voice command to be accurately recognized.
[0064] It should be noted that the volume of the playback device can be the playback volume of the speaker in the playback device, or the volume input to the playback device by the control device, which is not limited in this embodiment. The following is an example in which the volume of the playback device is the volume input to the playback device by the control device.
[0065] Optionally, the target volume may be less than or equal to the current volume of the playback device. Further optionally, the target volume may be zero, that is, the control device may set the current volume of the playback device to 0 to control the playback device to mute the voice playback. Optionally, the target volume may also be the current volume minus a preset value, that is, the control device may also reduce the current volume of the playback device by a preset value and then play the voice at the target volume.
[0066] In the above volume control method, it is possible to receive a wake-up notification and control the playback device to play voice at a target volume according to the wake-up notification. Since the wake-up notification is a notification sent by the terminal to the control device when entering the wake-up state, and the target volume is used for the terminal to receive the voice commands issued by the user in a voice playback environment of the target volume, therefore, in the voice playback environment of the target volume, the interference of the voice playback of the playback device is reduced, and the terminal can more accurately receive and recognize the voice commands issued by the user, thereby improving the recognition accuracy of the voice commands.
[0067] Figure 3 FIG. 1 is a flow chart of controlling voice playback in an embodiment. In an exemplary embodiment, as shown in FIG. Figure 3 As shown, S202 includes S301 to S302. Among them:
[0068] S301: Obtain the current volume of the playback device according to the wake-up notification.
[0069] In this embodiment, after receiving the wake-up notification, the control device will obtain the current volume of the playback device according to the wake-up notification. Exemplarily, the control device will obtain the current volume of the playback device input by itself according to the wake-up notification.
[0070] S302: Control the playback device to play the voice at a target volume according to the current volume and the volume threshold.
[0071] In this embodiment, the control device can determine a volume threshold. In a voice playback environment of the volume threshold, the voice command issued by the user can be received more accurately. The volume threshold can be determined based on at least one of the placement position, attribute information, and user position. Among them, the placement position is the placement position of at least one of the terminal, the control device, and the playback device. The attribute information is the attribute information of at least one of the terminal, the control device, and the playback device, such as a brand or model. The user position refers to the position of the user who needs to issue a voice command.
[0072] The volume threshold may be a value input by the user, a value preset in the control device, or a value flexibly determined by the control device according to at least one of the placement position, attribute information, and user position. For example, the volume threshold may be between 0 and 100.
[0073] Furthermore, the control device can control the playback device to play the voice at the target volume according to the current volume and the volume threshold. For example, if the current volume is greater than the volume threshold, the control device determines that the target volume is zero. For another example, if the current volume is not greater than the volume threshold, the control device uses the current volume as the target volume, that is, the volume of the playback device is controlled to remain unchanged.
[0074] In the above embodiment, since the current volume of the playback device can be obtained according to the wake-up notification, and the playback device can be controlled to play voice at the target volume according to the current volume and the volume threshold, the playback device is controlled to play voice at the target volume according to the wake-up notification. In this way, the accuracy and efficiency of far-field voice recognition can be improved by controlling the voice playback environment by the target volume in the wake-up state.
[0075] Figure 4 FIG. 1 is a flowchart of another method for controlling voice playback in an embodiment. In an exemplary embodiment, as shown in FIG. Figure 4 As shown, S302 includes S401 to S402. Among them:
[0076] S401: Determine the volume to be lowered according to the current volume and the volume threshold.
[0077] In this embodiment, the current volume of the playback device is recorded as , the volume threshold is , the volume to be lowered to ,but .
[0078] For example, the control device may determine a difference between the current volume and the volume threshold, and multiply the difference by a preset weight as the volume to be reduced.
[0079] S402: Taking the difference between the current volume and the volume to be reduced as the target volume.
[0080] Furthermore, the control device can reduce the current volume of the playback device based on the volume to be reduced. That is, the control device will use the difference between the current volume and the volume to be reduced as the target volume. In other words, the target volume is ,but .
[0081] Optionally, the control device may input a target volume into the control device to control the playback device to play the voice at the target volume.
[0082] In the above embodiment, since the volume to be lowered can be determined based on the current volume and the volume threshold, after the difference between the current volume and the volume to be lowered is used as the target volume, the interference of the voice playback of the playback device is reduced, and the terminal can more accurately receive and recognize the voice commands issued by the user, thereby improving the recognition accuracy of the voice commands.
[0083] Figure 5 FIG. 1 is a flow chart of determining a volume to be lowered in one embodiment. In an exemplary embodiment, as shown in FIG. Figure 5 As shown, S401 includes S501 to S502. Among them:
[0084] S501: If the current volume is not less than the volume threshold, the difference between the current volume and the volume threshold is used as the volume to be reduced.
[0085] S502: If the current volume is less than the volume threshold, determine that the volume to be reduced is zero.
[0086] In this embodiment, the control device may determine the volume to be lowered according to the following formula (1). Figure 6 FIG. 1 is a schematic diagram showing a principle for determining a volume to be lowered in an embodiment. Figure 6 As shown, the control device compares the current volume of the playback device With volume threshold , if the current volume Not less than the volume threshold , the difference between the current volume and the volume threshold As the volume is to be lowered ; If the current volume Less than volume threshold , then determine the volume to be lowered is zero.
[0087] (1)
[0088] For example, assuming that the volume threshold is 20, if the current volume is 44, the volume to be reduced is 24, and the target volume is 20. If the current volume is 15, the volume to be reduced is 0, and the target volume is 15.
[0089] In the above embodiment, when the current volume is not less than the volume threshold, the difference between the current volume and the volume threshold is used as the volume to be reduced, and when the current volume is less than the volume threshold, the volume to be reduced is determined to be zero. Therefore, the target volume is always no greater than the volume threshold. In this way, the interference of the voice playback of the playback device can be reduced, so that the terminal can receive the voice commands issued by the user more accurately.
[0090] Figure 7 FIG. 1 is a flow chart of determining a volume to be lowered in one embodiment. In an exemplary embodiment, as shown in FIG. Figure 7 As shown, the above volume control method further includes S701 to S702. Among them:
[0091] S701, receiving an end notification; the end notification is a notification sent by the terminal to the control device when exiting the awake state.
[0092] In this embodiment, the terminal can exit the awake state. Optionally, the user can exit the awake state of the terminal through a preset exit voice, and the terminal can also exit the awake state after completing the voice command issued by the user, and this embodiment is not limited to this.
[0093] Furthermore, when the terminal exits the awake state, it will send an end notification to the control device, so that the control device receives the end notification. This embodiment does not limit the content form and sending method of the end notification.
[0094] Further optionally, the control device may receive an end notification sent by the terminal via a local area network.
[0095] S702: Control the playback device to restore to the current volume according to the end notification.
[0096] In this embodiment, the control device receives the end notification, indicating that the user has completed the voice command. Therefore, for the user's experience of using the playback device, the control device no longer needs to play the voice at the target volume, but controls the playback device to return to the current volume, that is, restores the volume of the playback device to the current volume. .
[0097] In the above embodiment, the end notification can be received. Since the end notification is a notification sent by the terminal to the control device when the terminal exits the wake-up state, the playback device is controlled to return to the current volume according to the end notification. This allows the user to continue using the playback device without being affected after the user completes the voice command, thereby improving the user experience.
[0098] The above description is made by applying the volume control method to a control device, and the following description will introduce the process of the volume control method in a terminal. Figure 8 FIG. 1 is a flow chart of another volume control method in an embodiment. In an exemplary embodiment, as shown in FIG. Figure 8 As shown, a volume control method is provided, and the method is applied to the terminal in FIG1 as an example for description, including the following S801 to S802. Among them:
[0099] S801, when entering the wake-up state, sending a wake-up notification to the control device; the wake-up notification is used for the control device to control the playback device to play voice at a target volume according to the wake-up notification.
[0100] S802, receiving a voice command issued by a user in a voice playback environment at a target volume.
[0101] The above process can be referred to S201~S202, which will not be repeated here.
[0102] In the above embodiment, when entering the wake-up state, a wake-up notification is sent to the control device, so that the control device controls the playback device to play voice at the target volume according to the wake-up notification. Therefore, in the voice playback environment of the target volume, the interference of the voice playback of the playback device is reduced, and then in the voice playback environment of the target volume, the voice commands issued by the user can be received more accurately.
[0103] In an exemplary embodiment, optionally, the volume control method further includes the following steps: acquiring a wake-up voice issued by a user, and entering a wake-up state according to the wake-up voice.
[0104] In this embodiment, before the user needs to issue a voice command, he needs to first wake up the terminal through a wake-up voice. Then, the terminal can obtain the wake-up voice issued by the user and enter the wake-up state according to the wake-up voice. Among them, the wake-up voice can be a preset wake-up word.
[0105] In the above embodiment, since the wake-up voice issued by the user is obtained and the wake-up state is entered according to the wake-up voice, the accuracy and efficiency of entering the wake-up state are improved.
[0106] In an exemplary embodiment, optionally, the volume control method further includes the following steps:
[0107] When the awake state is exited, an end notification is sent to the control device; the end notification is used for the control device to control the playback device to return to the current volume according to the end notification.
[0108] The above process can be referred to S701~S702, which will not be repeated here.
[0109] In the above embodiment, since an end notification can be sent to the control device when exiting the wake-up state, so that the control device can control the playback device to return to the current volume according to the end notification, therefore, by controlling the playback device to return to the current volume according to the end notification, the user can continue to use the playback device without being affected after the user completes the voice command, thereby improving the user experience.
[0110] In an exemplary embodiment, optionally, the volume control method further includes the following steps:
[0111] After the preset time in the wake-up state or the recognition of the voice command is completed, the wake-up state is exited.
[0112] In this embodiment, after the terminal enters the awake state, the terminal will wait for the voice command issued by the user and complete the recognition of the voice command. Then, when the recognition of the voice command is completed, the terminal can exit the awake state.
[0113] In some embodiments, after the terminal enters the wake-up state, the user may not issue a voice command, so the terminal will exit the wake-up state after entering the wake-up state for a preset time. Further optionally, the terminal can exit the wake-up state after entering the wake-up state for a preset time and not receiving a voice command. The preset time can be set as required.
[0114] In the above embodiment, since the awakening state can be exited after a preset time in the awakening state or when the recognition of the voice command is completed, an end notification can be sent to the control device in a timely and accurate manner to control the playback device to return to the current volume.
[0115] In order to more clearly introduce the volume control method of the present application, Fig. 9 Provide explanation. Fig. 9 FIG. 4 is a process diagram of a volume control method in an embodiment. Fig. 9 As shown, the terminal and the control device can execute the method according to the following process.
[0116] S901, the terminal obtains the wake-up voice issued by the user. It should be noted that after S901, the terminal needs to establish a connection with the control device. Optional,
[0117] S902: The terminal enters a wake-up state according to the wake-up voice.
[0118] S903: When entering the awake state, the terminal sends a wake-up notification to the control device.
[0119] S904: The control device obtains the current volume of the playback device according to the wake-up notification.
[0120] S905, the control device determines the volume to be reduced according to the current volume and the volume threshold. If the current volume is not less than the volume threshold, the difference between the current volume and the volume threshold is used as the volume to be reduced; if the current volume is less than the volume threshold, the volume to be reduced is determined to be zero.
[0121] S906: The control device uses the difference between the current volume and the volume to be reduced as the target volume, and controls the playback device to play the voice at the target volume.
[0122] S907, the terminal exits the awake state after entering the awake state for a preset time or completing the recognition of the voice command.
[0123] S908: When exiting the awake state, the terminal sends an end notification to the control device.
[0124] S909: The control device controls the playback device to restore to the current volume according to the end notification.
[0125] Taking the playback device as a TV, the control device as a set-top box, and the terminal as a smart speaker as an example, the user can preset a volume threshold on the set-top box. When the TV playback volume is not greater than the volume threshold, the smart speaker can accurately recognize the voice command issued by the user. Then the user needs to wake up the smart speaker through a specific wake-up voice to put the smart speaker into the wake-up state. When the smart speaker enters the wake-up state, it will send a wake-up notification to the set-top box through the local area network. After receiving the wake-up notification, the set-top box queries and records the current volume of the TV playback, and then compares the current sound with the volume threshold, and calculates the volume to be reduced based on the comparison result. Next, the set-top box will control the target volume of the TV according to the volume to be reduced. At this time, in the voice playback environment of the target volume, the user's voice command of "turn on the viewing mode" can be accurately recognized by the smart speaker. After the smart speaker recognizes it, it can exit the wake-up state and send an end notification to the set-top box through the local area network. The set-top box restores the TV playback volume to the current volume according to the end notification.
[0126] S901~S909 can refer to the above embodiment and will not be described in detail here.
[0127] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0128] Based on the same inventive concept, the embodiment of the present application also provides a control device and a terminal for implementing the volume control method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the one or more control device and terminal embodiments provided below can refer to the limitations on the volume control method above, and will not be repeated here.
[0129] Fig.10 FIG. 1 is a block diagram of a control device in an embodiment. In an exemplary embodiment, Fig.10 As shown, a control device 1000 is provided, comprising: a first receiving module 1001 and a first control module 1002, wherein:
[0130] The first receiving module 1001 is used to receive a wake-up notification; the wake-up notification is a notification sent by the terminal to the control device when entering the wake-up state.
[0131] The first control module 1002 is used to control the playback device to play voice at a target volume according to the wake-up notification. The target volume is used for the terminal to receive a voice command issued by the user in a voice playback environment with the target volume.
[0132] The above-mentioned volume control device can receive a wake-up notification and control the playback device to play voice at a target volume according to the wake-up notification. Since the wake-up notification is a notification sent by the terminal to the control device when entering the wake-up state, and the target volume is used for the terminal to receive the voice command issued by the user in a voice playback environment of the target volume, therefore, in the voice playback environment of the target volume, the interference of the voice playback of the playback device is reduced, and the terminal can more accurately receive and recognize the voice command issued by the user, thereby improving the recognition accuracy of the voice command.
[0133] Optionally, the first control module 1002 includes:
[0134] The acquisition unit is used to obtain the current volume of the playback device according to the wake-up notification.
[0135] The control unit is used to control the playback device to play voice at a target volume according to the current volume and the volume threshold.
[0136] Optionally, the control unit comprises:
[0137] The first determining subunit is used to determine the volume to be reduced according to the current volume and the volume threshold.
[0138] The second determining subunit is used to take the difference between the current volume and the volume to be reduced as the target volume.
[0139] Optionally, the first determination subunit is further configured to, if the current volume is not less than the volume threshold, use the difference between the current volume and the volume threshold as the volume to be reduced; if the current volume is less than the volume threshold, determine that the volume to be reduced is zero.
[0140] Optionally, the control device 1000 further includes:
[0141] The second receiving module is used to receive an end notification; the end notification is a notification sent by the terminal to the control device when the terminal exits the awake state.
[0142] The second control module is used to control the playback device to return to the current volume according to the end notification.
[0143] Fig.11 FIG. 1 is a block diagram of a terminal in an embodiment. In an exemplary embodiment, as shown in FIG. Fig.10 As shown, a terminal 1100 is provided, including: a first sending module 1101 and a receiving module 1102, wherein:
[0144] The first sending module 1101 is used to send a wake-up notification to the control device when entering the wake-up state; the wake-up notification is used for the control device to control the playback device to play voice at a target volume according to the wake-up notification.
[0145] The receiving module 1102 is used to receive a voice command issued by a user in a voice playback environment with a target volume.
[0146] In the above embodiment, when entering the wake-up state, a wake-up notification is sent to the control device, so that the control device controls the playback device to play voice at the target volume according to the wake-up notification. Therefore, in the voice playback environment of the target volume, the interference of the voice playback of the playback device is reduced, and then in the voice playback environment of the target volume, the voice commands issued by the user can be received more accurately.
[0147] Optionally, the terminal 1100 further includes:
[0148] The acquisition module is used to obtain the wake-up voice issued by the user.
[0149] The entry module is used to enter the wake-up state according to the wake-up voice.
[0150] Optionally, the terminal 1100 further includes:
[0151] The second sending module is used to send an end notification to the control device when exiting the wake-up state; the end notification is used for the control device to control the playback device to restore to the current volume according to the end notification.
[0152] Optionally, the terminal 1100 further includes:
[0153] The exit module is used to exit the wake-up state after a preset time in the wake-up state or when the recognition of the voice command is completed.
[0154] Each module in the above control device and terminal can be implemented in whole or in part by software, hardware and their combination. Each module can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to each module above.
[0155] FIG12 is an internal structure diagram of a computer device in an embodiment. In an exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be shown in FIG12. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store relevant data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a volume control method is implemented.
[0156] Those skilled in the art will understand that the structure shown in FIG. 12 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0157] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0158] Receive a wake-up notification; a wake-up notification is a notification sent by the terminal to the control device when entering the wake-up state;
[0159] The playback device is controlled to play voice at a target volume according to the wake-up notification. The target volume is used for the terminal to receive a voice command issued by the user in a voice playback environment at the target volume.
[0160] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0161] Get the current volume of the playback device based on the wake-up notification;
[0162] Control the playback device to play voice at the target volume based on the current volume and volume threshold.
[0163] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0164] Determine the volume to be lowered according to the current volume and the volume threshold;
[0165] The difference between the current volume and the volume to be lowered is used as the target volume.
[0166] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0167] If the current volume is not less than the volume threshold, the difference between the current volume and the volume threshold is used as the volume to be reduced;
[0168] If the current volume is less than the volume threshold, it is determined that the volume to be reduced is zero.
[0169] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0170] Receive end notification; the end notification is a notification sent by the terminal to the control device when exiting the wake-up state;
[0171] Control the playback device to restore to the current volume based on the end notification.
[0172] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0173] When entering the wake-up state, a wake-up notification is sent to the control device; the wake-up notification is used for the control device to control the playback device to play the voice at the target volume according to the wake-up notification;
[0174] In a voice playback environment at a target volume, a voice command issued by a user is received.
[0175] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0176] Get the wake-up voice issued by the user;
[0177] Enter the wake-up state according to the wake-up voice.
[0178] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0179] When the awake state is exited, an end notification is sent to the control device; the end notification is used for the control device to control the playback device to return to the current volume according to the end notification.
[0180] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0181] After the preset time in the wake-up state or the recognition of the voice command is completed, the wake-up state is exited.
[0182] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0183] Receive a wake-up notification; a wake-up notification is a notification sent by the terminal to the control device when entering the wake-up state;
[0184] The playback device is controlled to play voice at a target volume according to the wake-up notification. The target volume is used for the terminal to receive a voice command issued by the user in a voice playback environment at the target volume.
[0185] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0186] Get the current volume of the playback device based on the wake-up notification;
[0187] Control the playback device to play voice at the target volume based on the current volume and volume threshold.
[0188] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0189] Determine the volume to be lowered according to the current volume and the volume threshold;
[0190] The difference between the current volume and the volume to be lowered is used as the target volume.
[0191] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0192] If the current volume is not less than the volume threshold, the difference between the current volume and the volume threshold is used as the volume to be reduced;
[0193] If the current volume is less than the volume threshold, it is determined that the volume to be reduced is zero.
[0194] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0195] Receive end notification; the end notification is a notification sent by the terminal to the control device when exiting the wake-up state;
[0196] Control the playback device to restore to the current volume based on the end notification.
[0197] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0198] When entering the wake-up state, a wake-up notification is sent to the control device; the wake-up notification is used for the control device to control the playback device to play the voice at the target volume according to the wake-up notification;
[0199] In a voice playback environment at a target volume, a voice command issued by a user is received.
[0200] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0201] Get the wake-up voice issued by the user;
[0202] Enter the wake-up state according to the wake-up voice.
[0203] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0204] When the awake state is exited, an end notification is sent to the control device; the end notification is used for the control device to control the playback device to return to the current volume according to the end notification.
[0205] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0206] After the preset time in the wake-up state or the recognition of the voice command is completed, the wake-up state is exited.
[0207] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0208] Receive a wake-up notification; a wake-up notification is a notification sent by the terminal to the control device when entering the wake-up state;
[0209] The playback device is controlled to play voice at a target volume according to the wake-up notification. The target volume is used for the terminal to receive a voice command issued by the user in a voice playback environment at the target volume.
[0210] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0211] Get the current volume of the playback device based on the wake-up notification;
[0212] Control the playback device to play voice at the target volume based on the current volume and volume threshold.
[0213] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0214] Determine the volume to be lowered according to the current volume and the volume threshold;
[0215] The difference between the current volume and the volume to be lowered is used as the target volume.
[0216] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0217] If the current volume is not less than the volume threshold, the difference between the current volume and the volume threshold is used as the volume to be reduced;
[0218] If the current volume is less than the volume threshold, it is determined that the volume to be reduced is zero.
[0219] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0220] Receive end notification; the end notification is a notification sent by the terminal to the control device when exiting the wake-up state;
[0221] Control the playback device to restore to the current volume based on the end notification.
[0222] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0223] When entering the wake-up state, a wake-up notification is sent to the control device; the wake-up notification is used for the control device to control the playback device to play the voice at the target volume according to the wake-up notification;
[0224] In a voice playback environment at a target volume, a voice command issued by a user is received.
[0225] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0226] Get the wake-up voice issued by the user;
[0227] Enter the wake-up state according to the wake-up voice.
[0228] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0229] When the awake state is exited, an end notification is sent to the control device; the end notification is used for the control device to control the playback device to return to the current volume according to the end notification.
[0230] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0231] After the preset time in the wake-up state or the recognition of the voice command is completed, the wake-up state is exited.
[0232] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0233] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0234] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A volume control method, characterized in that: Applied to a control device; the method comprises: Receiving a wake-up notification; the wake-up notification is a notification sent by the terminal to the control device when entering a wake-up state; The playback device is controlled to play voice at a target volume according to the wake-up notification, and the target volume is used for the terminal to receive a voice command issued by a user in a voice playback environment at the target volume.
2. The method according to claim 1, characterized in that The controlling the playback device to play the voice at a target volume according to the wake-up notification includes: Acquire the current volume of the playback device according to the wake-up notification; The playback device is controlled to play the voice at a target volume according to the current volume and the volume threshold.
3. The method according to claim 2, characterized in that The controlling the playback device to play the voice at a target volume according to the current volume and the volume threshold comprises: Determining a volume to be lowered according to the current volume and the volume threshold; The difference between the current volume and the volume to be reduced is used as the target volume.
4. The method according to claim 3, characterized in that The step of determining the volume to be lowered according to the current volume and the volume threshold comprises: If the current volume is not less than the volume threshold, taking the difference between the current volume and the volume threshold as the volume to be reduced; If the current volume is less than the volume threshold, it is determined that the volume to be reduced is zero.
5. The method according to any one of claims 2 to 4, characterized in that: The method further comprises: receiving an end notification; the end notification is a notification sent by the terminal to the control device when exiting the wake-up state; The playback device is controlled to return to the current volume according to the end notification.
6. A volume control method, characterized in that: Applied to a terminal; the method comprises: When entering the wake-up state, sending a wake-up notification to the control device; the wake-up notification is used for the control device to control the playback device to play the voice at a target volume according to the wake-up notification; In the voice playback environment of the target volume, a voice command issued by a user is received.
7. The method according to claim 6, characterized in that The method further comprises: Get the wake-up voice issued by the user; Entering the wake-up state according to the wake-up voice.
8. The method according to claim 6, characterized in that The method further comprises: In case of exiting the wake-up state, an end notification is sent to the control device; the end notification is used for the control device to control the playback device to restore to the current volume according to the end notification.
9. The method according to claim 8, characterized in that The method further comprises: After entering the wake-up state for a preset time, or completing the recognition of the voice command, exiting the wake-up state.
10. A control device, characterized in that: The control device comprises: A first receiving module, configured to receive a wake-up notification; the wake-up notification is a notification sent by the terminal to the control device when entering a wake-up state; The first control module is used to control the playback device to play voice at a target volume according to the wake-up notification, and the target volume is used for the terminal to receive the voice command issued by the user in the voice playback environment at the target volume.
11. A terminal, characterized in that: The terminal comprises: A first sending module is used to send a wake-up notification to the control device when entering the wake-up state; the wake-up notification is used for the control device to control the playback device to play the voice at a target volume according to the wake-up notification; The receiving module is used to receive a voice command issued by a user in a voice playback environment of the target volume.
12. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 9 are implemented.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.
14. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.
