Voice processing method of terminal device, terminal device and readable storage medium
By receiving voice signals in the terminal device and obtaining user identity information, the voice signal is only processed when the identity information matches the voice control mode, which solves the problem of misoperation under the far-field voice control function and improves the accuracy of voice control and user experience.
Patent Information
- Application Number
- CN202110598115.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-28
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-05-28
AI Technical Summary
When the far-field voice control function is turned on, the existing voice control solution cannot respond to the specified user's voice instructions in a targeted manner, causing the terminal device to be prone to misoperation.
By receiving the voice signal, the current voice control mode of the terminal device is obtained, and the identity information of the user who sent the voice signal is obtained based on the voice signal. It is only processed when the identity information matches the preset identity information supported by the voice control mode to avoid misunderstandings. Supported user voice signals are processed.
It improves the accuracy of voice control, avoids misoperation of terminal equipment, meets users' customized needs, and improves user experience.
Smart Images

Figure CN113314115B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of voice processing technology, and in particular to a voice processing method for a terminal device, the terminal device and a readable storage medium. Background Art
[0002] Based on voice control technology, users do not need to operate the remote control, they can control the terminal device (such as controlling the TV volume, controlling the air-conditioning temperature, etc.) with just voice input, which is convenient and practical.
[0003] However, in the existing voice control solution, when the far-field voice control function is turned on, the terminal device will respond to the voice commands issued by any user. Therefore, in some specific application scenarios, the terminal device is prone to misoperation because it cannot respond to the voice commands of the specified user in a targeted manner. For example, when an adult is watching a TV program, a child finds the far-field voice control fun and calls out a voice command (such as "Xiao Wei, Xiao Wei, I want to watch the Journey to the West cartoon"), which will cause the TV to exit the current TV program and cause the TV to misoperate. Summary of the invention
[0004] The main purpose of the present invention is to provide a voice processing method for a terminal device, a terminal device and a readable storage medium, aiming to improve the accuracy of the control operation of the terminal device.
[0005] To achieve the above object, the present invention provides a voice processing method for a terminal device, the method comprising the following steps:
[0006] receiving a voice signal;
[0007] Obtaining the current voice control mode of the terminal device;
[0008] Acquiring identity information of a user who sends the voice signal according to the voice signal;
[0009] When the identity information matches the preset identity information supported by the voice control mode, the voice signal is processed.
[0010] Optionally, after the step of obtaining the current voice control mode of the terminal device, the method further includes:
[0011] If the voice control mode is a general voice control mode, when a preset wake-up word exists in the voice signal, the voice signal corresponding to the preset wake-up word is processed;
[0012] If the voice control mode is a customized voice control mode, the step of acquiring the identity information of the user who sends the voice signal according to the voice signal is performed.
[0013] Optionally, before the step of obtaining the current voice control mode of the terminal device, the step further includes:
[0014] Receive voice control mode setting instructions;
[0015] The voice control mode is set according to the voice control mode setting instruction.
[0016] Optionally, after the step of setting the voice control mode according to the voice control mode setting instruction, the method further includes:
[0017] If the voice control mode is a customized voice control mode, then displaying operation prompt information corresponding to the customized voice control mode;
[0018] receiving voice information input according to the operation prompt information;
[0019] Acquiring identity information of a user who sends the voice information according to the voice information;
[0020] The identity information of the user who sends the voice information is used as the preset identity information corresponding to the customized voice control mode.
[0021] Optionally, the step of acquiring the current voice control mode of the terminal device includes:
[0022] Obtaining a time point at which the voice signal is received;
[0023] The voice control mode is determined according to the time point.
[0024] Optionally, the step of processing the voice signal includes:
[0025] Sending the voice signal to a connected target terminal so that the target terminal performs a corresponding operation according to the voice signal;
[0026] Alternatively, the control information in the voice signal is identified, and the control information is sent to a connected target terminal, so that the target terminal responds to the received control information.
[0027] Optionally, the step of identifying the control information in the voice signal includes:
[0028] Recognizing a preset wake-up word in the voice signal;
[0029] Acquire the voiceprint information of the user who sent the preset wake-up word according to the preset wake-up word;
[0030] The control information in the voice signal is identified according to the voiceprint information.
[0031] Optionally, the step of identifying the control information from the voice signal according to the voiceprint information includes:
[0032] If there are multiple voiceprint information, obtaining the loudness of the speech signal corresponding to the voiceprint information;
[0033] Determine a target voice signal from the plurality of voice signals according to the loudness, and determine target voiceprint information corresponding to the target voice signal;
[0034] The control information in the speech signal is identified according to the target voiceprint information.
[0035] In addition, to achieve the above-mentioned purpose, the present invention also provides a terminal device, which includes a memory, a processor, and a voice processing program of the terminal device stored on the processor and executable on the processor, and when the processor executes the voice processing program of the terminal device, the steps of the voice processing method of the terminal device as described above are implemented.
[0036] In addition, to achieve the above-mentioned purpose, the present invention also provides a readable storage medium, on which a voice processing program of a terminal device is stored, and when the voice processing program of the terminal device is executed by a processor, the steps of the voice processing method of the terminal device as described above are implemented.
[0037] In an embodiment of the present invention, by receiving a voice signal and obtaining the current voice control mode of the terminal device, then obtaining the identity information of the user who sent the voice signal according to the voice signal, and processing the voice signal when the obtained identity information matches the preset identity information supported by the voice control mode, it is possible to avoid processing the voice signal of the user not supported by the voice control mode, which may cause the terminal device to malfunction. In this way, by taking the matching of the identity information of the user who sent the voice signal with the preset identity information supported by the voice control mode as a prerequisite for processing the voice signal, the voice signal of the user supported by the voice control mode can be processed in a targeted manner to improve the accuracy of voice signal processing and enhance the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 A schematic diagram of the structure of a terminal device in a hardware operating environment involved in an embodiment of the present invention;
[0039] Figure 2 It is a flowchart of a first embodiment of a voice processing method for a terminal device of the present invention;
[0040] Figure 3 A schematic diagram of a flow chart of a second embodiment of a voice processing method for a terminal device of the present invention;
[0041] Figure 4A schematic diagram of a flow chart of a third embodiment of a voice processing method for a terminal device of the present invention;
[0042] Figure 5 1 is a flow chart of a fourth embodiment of a voice processing method for a terminal device according to the present invention.
[0043] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0044] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0045] The main solution of the present invention is: receiving a voice signal; obtaining the current voice control mode of the terminal device; obtaining the identity information of the user who sends the voice signal according to the voice signal; and processing the voice signal when the identity information matches the preset identity information supported by the voice control mode.
[0046] In the existing voice control solution, when the far-field voice control function is turned on, the terminal device will respond to the voice commands issued by any user, but cannot specifically respond to the voice commands of a specified user, which easily leads to erroneous operation of the terminal device and fails to meet the customized needs of the user. Therefore, the above solution proposed by the present invention aims to respond to the voice commands of different users in different application scenarios to avoid erroneous operation of the terminal device.
[0047] Reference Figure 1 , Figure 1 A schematic diagram of the terminal device structure of the hardware operating environment involved in the embodiment of the present invention.
[0048] like Figure 1 As shown, the terminal device may include: a communication bus 1002, a processor 1001, such as a CPU, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or it may be a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0049] Those skilled in the art will understand that Figure 1 The terminal device structure shown in the figure does not constitute a limitation on the terminal device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0050] exist Figure 1 In the terminal device shown, the network interface 1004 is mainly used to connect to the background server and communicate data with the background server; the user interface 1003 is mainly used to connect to the client (user end) and communicate data with the client; and the processor 1001 can be used to call the voice processing program of the terminal device stored in the memory 1005, and execute the relevant steps of each embodiment of the voice processing method of the following terminal device.
[0051] Based on the above terminal device structure, a first embodiment of the voice processing method of the terminal device of the present invention is proposed. Figure 2 In this embodiment, the voice processing method of the terminal device includes the following steps:
[0052] Step S10: receiving a voice signal;
[0053] It should be noted that the terminal device in this embodiment can be a first-category terminal device with a voice control function, such as a television, an AI speaker, etc., or a second-category terminal device that can control the connected terminal device and has a voice control function, such as a remote control, a smart home central control system, etc.
[0054] After the voice control function is turned on in the terminal device, the voice collection device (such as a microphone, a voice collector, etc.) of the terminal device can collect voice signals in the surrounding environment in real time. The received voice signals may include voice signals sent by a single user or voice signals sent by multiple users.
[0055] In order to improve the effectiveness of voice processing, the next step of processing will be performed only when the received voice signal is recognized to include valid voice information of the terminal device to improve the effectiveness of voice control. The valid voice information can be the wake-up word corresponding to the terminal device (such as Xiaowei Xiaowei), or the keyword corresponding to the terminal device (such as temperature, channel, etc.), or the source information of the voice signal (such as a specified APP), etc.
[0056] For example, for a terminal device that needs to be awakened by a wake-up word, when the preset wake-up word of the terminal device exists in the received voice signal, it is considered that the received voice signal includes valid voice information of the terminal device. Otherwise, it is considered that the received voice signal does not include valid voice information of the terminal device, and the next step of processing will not be performed at this time to avoid resource waste. For terminal devices that can be controlled based on keywords, when there are preset keywords in the voice signal, it is considered that the received voice signal includes valid voice information of the terminal device. For example, for the central control system of a smart home, when keywords such as "temperature" and "℃" are recognized, the air conditioner can be controlled, and when keywords such as "play" and "music" are recognized, the speaker can be controlled; for terminal devices that can be controlled by designated tools, if the source of the voice signal is recognized as a designated tool, it is considered that the received voice signal includes valid voice information of the terminal device. For example, the voice information entered in the air conditioner remote control software installed on the mobile phone can control the air conditioner bound to the air conditioner remote control software.
[0057] Step S20: Acquire the current voice control mode of the terminal device;
[0058] Different voice control modes support different user identity information. Therefore, only when the received voice signal is a voice signal sent by a user supported by the current voice control mode of the terminal device, and the voice signal contains valid voice information corresponding to the terminal device, can the terminal device be effectively controlled to avoid erroneous operation of the terminal device. Therefore, when confirming that the received voice signal includes valid voice information corresponding to the terminal device, it is necessary to further obtain the current voice control mode of the terminal device to confirm whether the user sending the voice signal is a user supported by the current voice control mode of the terminal device.
[0059] Among them, the method of obtaining the current voice control mode of the terminal device can be: determining the current voice control mode of the terminal device according to the user's operation instruction, such as, before receiving the voice signal, if the user sets the voice control mode of the terminal device to the parent control mode by voice or key, etc., then the current voice control mode of the terminal can be obtained as the parent control mode. Of course, if the terminal device does not receive the operation instruction about the voice control mode after turning on the terminal device, the current voice control mode of the terminal device is the system default voice control mode, such as the general voice control mode; the current voice control mode of the terminal device can also be obtained according to specific scene information, for example, when only the parent is identified in the scene but not the child, the current voice control mode of the terminal device can be considered to be the parent control mode; when only the child is identified in the scene but not the parent, the current voice control mode of the terminal device can be considered to be the child control mode; or, when there are both parents and children in the scene, if the parent is close to the terminal device, the current voice control mode of the terminal device can be considered to be the parent control mode; if the child is close to the terminal device, the current voice control mode of the terminal device can be considered to be the child control mode, etc.
[0060] In one embodiment, the current voice control mode of the terminal device can also be obtained by: obtaining the current voice control mode of the terminal device according to the time point when the voice signal is received. Specifically, the user's voice control habits can be determined based on the user's historical usage data, and then the corresponding relationship between different time periods and voice control modes can be automatically generated according to the voice control habits. In this way, the voice control mode corresponding to the terminal device in different time periods can be determined according to the corresponding relationship; the user can also set the voice control mode corresponding to different time periods by himself, and then determine the current voice control mode of the terminal device according to the pre-set corresponding relationship between different time periods and voice control modes. For example, when the children study from 18:00 to 20:00, the voice control mode of the terminal device can be set to the parent control mode, and from 20:00 to 21:00, the voice control mode of the terminal device can be set to the child control mode.
[0061] It should be noted that the voice control mode of the terminal device in this embodiment may include a general voice control mode, a personal voice control mode, and a custom voice control mode, etc. Since different terminal devices may support different voice control modes, they are only listed here without specific limitation. Among them, in the general voice control mode, the wake-up word corresponding to the terminal device can be used as the identity information of the user supported by the general voice control mode, that is, the user whose voice information sent contains the wake-up word corresponding to the terminal device can be used as the user supported by the voice control mode; the personal voice control mode may include voice control sub-modes corresponding to different family members, such as parent control mode and child control mode, etc., which can be further selected by the user in the personal voice control mode; in the custom voice control mode, the user can customize different voice control modes, the identity information of the user corresponding to different voice control modes, and the control time point and scene information corresponding to different voice control modes.
[0062] In addition, the identity information of users supported by different voice control modes can be stored in association with the identity information of users supported by different voice control modes in advance, so that after obtaining the current voice control mode of the terminal device, the identity information stored in association with the current voice control mode of the terminal device can be obtained, that is, the preset identity information supported by the current voice control mode of the terminal device can be obtained. Among them, the same voice control mode can correspond to the identity information of a single user, or it can correspond to the identity information of two or more users. In order to distinguish the identity information of users corresponding to different voice control modes, different user information databases can be set for different voice control modes, so that the identity information of users corresponding to different voice control modes can be stored in the corresponding user databases, so as to distinguish the identity information of users supported by different voice controls. In this way, user identity information can be called from different user databases for different voice control modes to ensure the accuracy and effectiveness of data calls.
[0063] Step S30: Acquire the identity information of the user who sends the voice signal according to the voice signal;
[0064] To confirm whether the user sending the voice signal is a user supported by the current voice control mode of the terminal device, it is also necessary to obtain the identity information of the user sending the voice signal. The identity information of different users can be distinguished by the voiceprint information of different users. The voiceprint feature information in the voice signal can be extracted by performing voiceprint recognition on the received voice signal, and then the extracted voiceprint feature information is compared with the voiceprint feature information of different users in the pre-stored voiceprint feature information library, and then the identity information of the user sending the voice signal can be obtained according to the comparison result. The extracted voiceprint feature information includes but is not limited to the gender information, age information, emotional state information and language version information of the user sending the voice signal.
[0065] Among them, the voiceprint feature information corresponding to different identity information is pre-stored in the voiceprint feature information library, and the voiceprint feature information library can be established locally or on a server. If the voiceprint feature information library is stored locally on the terminal device, then after performing voiceprint recognition on the received voice signal, the voiceprint feature information library can be directly called from the local to perform feature comparison to obtain the identity information of the user who sent the voice signal; if the voiceprint feature information library is stored on the server, the extracted voiceprint feature information needs to be stored in the format of an audio file and then sent to the server, which traverses the voiceprint feature information library to find the identity information of the user that matches the extracted voiceprint feature information. Of course, in other embodiments, the voiceprint feature information library can also be stored in a target terminal linked to the terminal device, such as a television, a speaker, etc.
[0066] When obtaining the identity information of the user who sends the voice signal based on the voice signal, specifically, voice recognition can be performed based on effective voice information such as wake-up words or keywords in the voice signal to obtain the identity information of the user who sends the voice signal, or the identity information of the user who sends the voice signal can be obtained based on the complete voice signal.
[0067] It should be noted that the execution order of the steps of obtaining the current voice control mode of the terminal device and obtaining the identity information of the user sending the voice signal according to the voice signal is not specifically limited here, and can be executed in sequence according to a preset order or simultaneously.
[0068] Step S40: When the identity information matches the preset identity information supported by the voice control mode, processing the voice signal;
[0069] When obtaining the identity information of the user who sends the voice signal, the preset identity information supported by the current voice control mode of the terminal device can be queried from the user information database corresponding to the voice control mode. Then, the identity information of the user who sends the voice signal is compared with the preset identity information supported by the current voice control mode of the terminal device, and then whether to execute the step of processing the received voice signal is determined according to the comparison result. Specifically, if the identity information of the user who sends the voice signal is included in the preset identity information supported by the current voice control mode of the terminal device, it is considered that the identity information of the user who sends the voice signal matches the preset identity information supported by the current voice control mode of the terminal device. When the identity information of the user who sends the voice signal matches the preset identity information supported by the current voice control mode of the terminal device, it means that the user who sends the voice signal is a user supported by the current voice control mode. At this time, it is considered that the prerequisite for processing the voice signal is met, and the voice signal can be processed. When the identity information of the user who sends the voice signal does not match the preset identity information supported by the current voice control mode of the terminal device, the voice signal is not processed to prevent misoperation.
[0070] The processing of the voice signal may specifically include: identifying the voice signal to obtain the control information in the voice signal; forwarding the voice signal to a target terminal connected to the terminal device to control the target terminal; first identifying the voice signal to obtain the control information in the voice signal, and then forwarding the control information in the voice signal to the target terminal connected to the terminal device to control the target terminal, etc. When processing the voice signal, the corresponding processing method will be different depending on the type of terminal device receiving the voice signal. For example, if the terminal device receiving the voice signal is a first-class device, the corresponding processing method may be to identify the voice signal, obtain the control information in the voice signal, and make a corresponding response according to the control information; if the terminal device receiving the voice signal is a second-class device, the corresponding processing method may be to directly forward the voice signal to the target terminal (such as a TV) connected to the terminal device, or to identify the control information in the voice signal and send the identified control information to the target terminal connected to the terminal device, etc.
[0071] This embodiment matches the identity information of the user sending the voice signal with the preset identity information supported by the current voice control mode of the terminal device, so that when there are voice signals of multiple users, the voice signals sent by the users supported by the voice control mode can be processed in a targeted manner, avoiding the processing of the voice signals of the users not supported by the voice control mode, which may cause the terminal device to malfunction. That is, by matching the identity information of the user sending the voice signal with the preset identity information supported by the current voice control mode of the terminal device, the voice control needs of different users in application scenarios can be met in a targeted manner, thereby improving the accuracy of voice processing.
[0072] Based on the above embodiment, a second embodiment of the voice processing method of the terminal device of the present invention is proposed. Figure 3 In this embodiment, the voice processing method of the terminal device includes the following steps:
[0073] Step S10: receiving a voice signal;
[0074] Step S20: Acquire the current voice control mode of the terminal device;
[0075] Step S21: If the voice control mode is the general voice control mode, when there is a preset wake-up word in the voice signal, the voice signal corresponding to the preset wake-up word is processed;
[0076] Step S31: if the voice control mode is a customized voice control mode, obtaining identity information of a user who sends the voice signal according to the voice signal;
[0077] Step S32: When the identity information matches the preset identity information supported by the customized voice control mode, the voice signal is processed.
[0078] In this embodiment, the voice control modes supported by the terminal device may include a general voice control mode and a customized voice control mode. Different voice control modes correspond to different prerequisites for voice signal processing.
[0079] Specifically, after receiving the voice signal and acquiring the current voice control mode of the terminal device, if the current voice control mode of the terminal device is a general voice control mode, as long as the voice signal contains the preset wake-up word corresponding to the terminal device, the terminal device can be awakened without obtaining the identity information of the user who sent the voice signal. At this time, the voice signal corresponding to the preset wake-up word can be processed to realize the control of the terminal device or the target terminal connected to the terminal device. Therefore, when the current voice control mode of the terminal device is a general voice control mode, the received voice signal can be first identified to confirm whether there is a preset wake-up word in the voice signal that can wake up the terminal device. If there is a preset wake-up word in the voice signal, the preset wake-up word can be voiceprint recognized to match the control information that constitutes the voice control instruction together with the preset wake-up word according to the recognized voiceprint information. For example, when there is a wake-up word "Xiao Wei Xiao Wei" in the voice signal, the control information of the user can be further confirmed according to the voiceprint information of the user who sent the wake-up word "Xiao Wei Xiao Wei", so as to prevent the child from saying "I want to watch cartoons" while the mother says "I want to watch movies" after recognizing the wake-up word said by the child, and responding to the mother's control instruction by mistake.
[0080] When the current voice control mode of the terminal device is a customized voice control mode, in order to respond to the voice commands of the specified user in a targeted manner, the preset identity information supported by the customized voice control mode can be set in advance. Furthermore, before processing the voice signal, it is necessary to confirm whether the user sending the voice signal is a user supported by the current voice control mode. That is, when the current voice control mode of the terminal device is a customized voice control mode, it is necessary to obtain the identity information of the user sending the voice signal according to the voice signal line, and then process the voice signal when the identity information of the user sending the voice signal matches the preset identity information supported by the voice control mode.
[0081] In this embodiment, in the general voice control mode, if there is a preset wake-up word in the voice signal, the voice signal corresponding to the preset wake-up word is processed, and in the customized voice control mode, if the identity information of the user sending the voice signal matches the preset identity information supported by the voice control mode, the voice signal is processed. That is, different voice control modes can correspond to different conditions for voice signal processing, so that the user's voice control needs in different application scenarios can be met in a targeted manner, thereby improving the flexibility of voice control.
[0082] Based on the above embodiments, a third embodiment of the voice processing method of a terminal device of the present invention is proposed. Figure 4 In this embodiment, the voice processing method of the terminal device includes the following steps:
[0083] Step S01: receiving a voice control mode setting instruction;
[0084] Step S02: setting the current voice control mode of the terminal device according to the voice control mode setting instruction;
[0085] Step S10: receiving a voice signal;
[0086] Step S20: Acquire the current voice control mode of the terminal device;
[0087] Step S30: Acquire the identity information of the user who sends the voice signal according to the voice signal;
[0088] Step S40: When the identity information matches the preset identity information supported by the voice control mode, the voice signal is processed.
[0089] In this embodiment, after the terminal device is turned on, the user can set the voice control mode of the terminal device according to his or her own needs, so that the terminal device can perform voice recognition and voice processing according to the set voice control mode, thereby responding to the voice commands of the corresponding user in a targeted manner.
[0090] Specifically, for the first type of device, the user can trigger the voice control mode setting instruction through the remote control device of the terminal device, or trigger the voice control mode setting instruction on the terminal device by pressing a button or voice, or trigger the voice control mode setting instruction on the display interface of the terminal device by touching, or trigger the voice control mode setting instruction by voice input, etc. For the second type of device, the user can directly perform a button operation on the terminal device to trigger the voice control mode setting instruction; or trigger the voice control mode setting instruction by voice input, etc.
[0091] After receiving the voice control mode setting instruction, the terminal device can set the current voice control mode of the terminal device according to the voice control mode setting instruction. For example, the user can select the general voice control mode, and then generate the general voice control mode setting instruction to set the voice control mode of the terminal device to the general voice control mode, or the user can select the customized voice control mode, and then generate the customized voice control mode setting instruction to set the voice control mode of the terminal device to the customized voice control mode. Therefore, when obtaining the current voice control mode of the terminal device, it can be detected whether the voice control mode setting instruction is received. If the voice control mode setting instruction is not received, it is considered that the current voice control mode of the terminal device is the voice control mode set by the system default; if the voice control mode setting instruction is received, it is necessary to determine the instruction type of the voice control mode setting instruction, and then determine the current voice control mode of the terminal device according to the instruction type. For example, if the general voice control mode setting instruction is received, it is determined that the current voice control mode of the terminal device is the general voice control mode; if the customized voice control mode setting instruction is received, it is determined that the current voice control mode of the terminal device is the customized voice control mode.
[0092] When the current voice control mode of the terminal device is set to a customized voice control mode, in order to meet the user's customization needs, the user can customize the preset identity information supported by the customized voice control mode. Therefore, in one embodiment, when the user sets the current voice control mode of the terminal device to a customized voice control mode, the operation prompt information corresponding to the customized voice control mode can be displayed to prompt the user to input voice information. The operation prompt information can be displayed on the display interface of the terminal device, or displayed on the target terminal connected to the terminal device. Of course, the operation prompt information can also be output in the form of voice or other means, which is not specifically limited here. For example, it can be displayed on the display interface of the terminal device or the target terminal connected to the terminal device: Please say a sentence, such as "Xiao Wei, Xiao Wei", "How is the weather today", etc., or directly output by voice: Please say a sentence, such as "Xiao Wei, Xiao Wei", "I want to listen to Andy Lau's songs", etc.
[0093] Then, the user can trigger a confirmation command according to the displayed operation prompt information to enter the voice collection state, and collect the voice information input by the user according to the displayed operation prompt information. When the terminal device receives the voice information input according to the prompt information, it can identify the voice information to obtain the voiceprint information of the voice information, and then use the voiceprint information as the identity information of the user who sends the voice information, store the identity information in the user information database corresponding to the customized voice control mode, and use the identity information of the user who sends the voice information as the preset identity information corresponding to the customized voice control mode. In this way, the terminal device will process the voice signal only when the identity information of the user who sends the voice signal matches the preset identity information stored in the user information database corresponding to the customized voice control mode. Here, when recording the voice information, it can be the voice information of a single user or the voice information of multiple users. Correspondingly, the preset identity information corresponding to the customized voice control mode can be the identity information of a single user or the identity information of multiple users, and can be set by the user according to his own needs to meet the voice control needs of different users to the greatest extent.
[0094] This embodiment receives a voice control mode setting instruction and sets the voice control mode according to the voice control mode setting instruction, so that the voice control mode of the terminal device can meet the user's needs in different application scenarios. That is, the user can set the voice control mode of the terminal device according to his own needs to improve the flexibility of voice control.
[0095] Based on the above embodiments, a fourth embodiment of the voice processing method of a terminal device of the present invention is proposed. Figure 5 In this embodiment, the voice processing method of the terminal device includes the following steps:
[0096] Step S10: receiving a voice signal;
[0097] Step S20: Acquire the current voice control mode of the terminal device;
[0098] Step S30: Acquire the identity information of the user who sends the voice signal according to the voice signal;
[0099] Step S41: When the identity information matches the preset identity information supported by the voice control mode, the voice signal is sent to the connected target terminal, so that the target terminal performs a corresponding operation according to the voice signal;
[0100] Step S42: When the identity information matches the preset identity information supported by the voice control mode, the control information in the voice signal is identified, and the control information is sent to the connected target terminal, so that the target terminal responds to the received control information.
[0101] The terminal device in this embodiment particularly refers to a second type of device that can support voice control and can control a target terminal connected to the terminal device, that is, the terminal device acts as a control device of the target terminal and can control the target terminal.
[0102] In order to achieve control over the target terminal, on the one hand, when processing the voice signal, the voice signal can be sent to the target terminal connected to the terminal device, and then the target terminal recognizes the voice signal to obtain the control information in the voice signal, and then performs corresponding operations according to the control information to achieve control over the target terminal. On the other hand, after the terminal device recognizes the control information in the voice signal, the control information is sent to the target terminal connected to the terminal device, and then the target terminal can respond to the received control information to achieve control over the target terminal. The specific selection can be targeted according to the differences between the terminal device and the target terminal, and is not specifically limited here.
[0103] Among them, when identifying the control information in the voice signal, specifically: first identify the preset wake-up word in the voice signal, then perform voiceprint recognition on the wake-up word to obtain the voiceprint information of the user who sent the preset wake-up word, and then identify from the voice signal the voice information sent by the user within a preset time of receiving the preset wake-up word based on the voiceprint information, and the identified voice information is the control information sent by the user.
[0104] In addition, after obtaining the voiceprint information of the user who sends the preset wake-up word according to the preset wake-up word, if multiple voiceprint information is obtained, it means that there are multiple users whose identity information matches the preset identity information supported by the current voice control mode of the terminal device. At this time, the control information sent by the user closest to the terminal device can be matched by the loudness of the voice signal.
[0105] Specifically, when multiple voiceprint information is obtained according to the preset wake-up word, the loudness of the voice signal of the user corresponding to each voiceprint information can be further obtained. Specifically, it can be: first identify the sound pressure level and frequency of the voice signal corresponding to each voiceprint information, and then determine the loudness of each voice signal according to the sound pressure level and frequency. After obtaining the loudness of each voice signal, the target voice signal can be determined from the multiple voice signals according to the loudness of different voice signals. Specifically, it can be: take the voice signal with the loudest voice as the target voice signal. Generally, the louder the loudness, the closer the user is to the terminal device, and the smaller the loudness, the farther the user is from the terminal device, that is, the voice signal sent by the user closest to the terminal device is taken as the target voice signal.
[0106] Next, after determining the target voice signal, voice recognition can be performed on the target voice signal to determine the target voiceprint information corresponding to the target voice signal. Specifically, it can be: directly performing voiceprint recognition on the target voice signal to obtain the voiceprint information corresponding to the target voice signal, or first identifying the preset wake-up word in the target voice signal, and then obtaining the voiceprint information of the user who sent the preset wake-up word as the target voiceprint information according to the preset wake-up word. After determining the target voiceprint information corresponding to the target voice signal, the voice information sent by the user within the preset time of receiving the preset wake-up word can be identified from the voice signal according to the target voiceprint information, and the voice information is the control information sent by the user.
[0107] This embodiment enables control of the target terminal through the terminal device by sending a voice signal to the target terminal connected to the terminal device so that the target terminal performs a corresponding operation according to the voice signal, or by identifying control information in the voice signal and sending the control information to the target terminal connected to the terminal device so that the target terminal responds to the received control information. In this way, not only the terminal device can be controlled but also the target terminal can be controlled, so that the user can remotely control the target terminal through the terminal device, thereby improving the convenience of terminal control.
[0108] In addition, an embodiment of the present invention further provides a readable storage medium, on which a voice processing program of a terminal device is stored. When the voice processing program of the terminal device is executed by a processor, the steps of the voice processing method of the terminal device as described above are implemented.
[0109] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0110] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0111] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, TV, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0112] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A voice processing method for a terminal device, It is characterized in that The voice processing method of the terminal device comprises the following steps: receiving a voice signal; determining voice control habits based on historical usage data, and generating corresponding patterns of different time periods and voice control modes based on the voice control habits; Obtaining a time point at which the voice signal is received; Determine the voice control mode according to the time point, the voice control mode including a personal voice control mode, a general voice control mode and a custom voice control mode, and the personal voice control mode includes voice control sub-modes corresponding to different family members; If the voice control mode is a general voice control mode, when a preset wake-up word exists in the voice signal, the voice signal corresponding to the preset wake-up word is processed; If the voice control mode is a custom voice control mode, acquiring identity information of a user who sends the voice signal according to the voice signal; When the identity information matches the preset identity information supported by the voice control mode, the voice signal is sent to the connected target terminal so that the target terminal performs a corresponding operation according to the voice signal; Alternatively, when the identity information matches the preset identity information supported by the voice control mode, identifying a preset wake-up word in the voice signal; and acquiring voiceprint information of a user who sends the preset wake-up word according to the preset wake-up word; If there are multiple voiceprint information, identify the sound pressure levels and frequencies of the voice signals corresponding to the multiple voiceprint information, and determine the loudness of the voice signals according to the sound pressure levels and the frequencies; Determine a target voice signal from the plurality of voice signals according to the loudness, and determine target voiceprint information corresponding to the target voice signal; identify control information in the voice signal according to the target voiceprint information; The control information is sent to a connected target terminal, so that the target terminal responds to the received control information.
2. The voice processing method of the terminal device according to claim 1, It is characterized in that Before the step of determining the voice control mode according to the time point, the method further includes: Receive voice control mode setting instructions; The voice control mode is set according to the voice control mode setting instruction.
3. The voice processing method of the terminal device as claimed in claim 2, It is characterized in that After the step of setting the voice control mode according to the voice control mode setting instruction, the method further includes: If the voice control mode is a customized voice control mode, then displaying operation prompt information corresponding to the customized voice control mode; receiving voice information input according to the operation prompt information; Acquiring identity information of a user who sends the voice information according to the voice information; The identity information of the user who sends the voice information is used as the preset identity information corresponding to the customized voice control mode.
4. A terminal device, It is characterized in that The terminal device includes a memory, a processor, and a voice processing program of the terminal device stored in the memory and executable on the processor. When the processor executes the voice processing program of the terminal device, the steps of the voice processing method of the terminal device described in any one of claims 1 to 3 are implemented.
5. A readable storage medium, It is characterized in that The readable storage medium stores a voice processing program of a terminal device, and when the voice processing program of the terminal device is executed by a processor, the steps of the voice processing method of the terminal device according to any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
Voice processing method and related product
CN111341326A
Voiceprint control method of television sound box, storage medium and smart television
CN111613229A
Intelligent device wake-up method, intelligent device and computer-readable storage medium
US20210084589A1
Terminal call control method and device, and computer storage medium
WO2016161750A1
Voice user interface display method and conference terminal
WO2020114213A1
