Television control method and apparatus, electronic device, and storage medium

CN116434746BActive Publication Date: 2026-10-23BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202310196057.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-28
Publication Date
2026-10-23
Estimated Expiration
2043-02-28

AI Technical Summary

Benefits of technology

[0021]本公开实施例中,可以先接收语音控制指令,之后对所述语音控制指令进行识别,以获取语音识别结果,并基于预设的指令配置列表,对所述语音识别结果进行解析,以获取所述语音控制指令对应的目标指令类型及目标关键词,最后基于所述目标指令类型及所述目标关键词,对电视进行控制。由此,可以基于预设的指令配置列表,准确地确定语音控制指令对应的目标指令类型及对应的目标关键词,进而可以基于目标指令类型及对应的目标关键词,准确地控制电视进行相应的操作,提高了基于语音控制指令对电视进行控制的准确度。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116434746B_ABST
    Figure CN116434746B_ABST
Patent Text Reader

Abstract

The present disclosure provides a television control method and device, electronic equipment and storage medium, relates to the technical field of computers, in particular to the artificial intelligence technical field such as speech recognition and natural language processing. The specific implementation scheme is: obtaining a voice control instruction; identifying the voice control instruction to obtain a voice recognition result; based on a preset instruction configuration list, analyzing the voice recognition result to obtain a target instruction type and a target keyword corresponding to the voice control instruction; and controlling the television based on the target instruction type and the target keyword. Thus, based on the preset instruction configuration list, the target instruction type and the corresponding target keyword corresponding to the voice control instruction can be accurately determined, and then the television can be accurately controlled to perform corresponding operations based on the target instruction type and the corresponding target keyword, thereby improving the accuracy of controlling the television based on the voice control instruction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer technology, and in particular to the field of artificial intelligence technology such as speech recognition and natural language processing, specifically to a television control method, device, electronic device, and storage medium. Background Technology

[0002] Currently, with the continuous advancement of technology in the consumer electronics market, televisions are becoming increasingly powerful, intelligent, and user-friendly. Furthermore, with the continuous development of voice technology, voice recognition and control technologies have rapidly emerged in recent years, enabling smart terminals such as televisions to be operated via voice control. Therefore, how to accurately control televisions through voice commands has become a key research direction. Summary of the Invention

[0003] This disclosure provides a method, apparatus, electronic device, and storage medium for controlling a television.

[0004] According to a first aspect of this disclosure, a method for controlling a television is provided, comprising:

[0005] Obtain voice control commands;

[0006] The voice control commands are recognized to obtain voice recognition results;

[0007] Based on a preset instruction configuration list, the speech recognition results are parsed to obtain the target instruction type and target keywords corresponding to the voice control instruction;

[0008] The television is controlled based on the target instruction type and the target keywords.

[0009] According to a second aspect of this disclosure, a television control device is provided, comprising:

[0010] The first acquisition module is used to acquire voice control commands;

[0011] The second acquisition module is used to recognize the voice control command in order to obtain the voice recognition result;

[0012] The third acquisition module is used to parse the speech recognition results based on a preset instruction configuration list in order to obtain the target instruction type and target keywords corresponding to the voice control instruction.

[0013] The control module is used to control the television based on the target instruction type and the target keyword.

[0014] According to a third aspect of this disclosure, an electronic device is provided, comprising:

[0015] At least one processor; and

[0016] A memory communicatively connected to the at least one processor; wherein,

[0017] The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the television control method as described in the first aspect.

[0018] According to a fourth aspect of this disclosure, a non-transitory computer-readable storage medium is provided storing computer instructions for causing the computer to perform a television control method as described in the first aspect.

[0019] According to a fifth aspect of this disclosure, a computer program product is provided, including computer instructions that, when executed by a processor, implement the steps of the television control method as described in the first aspect.

[0020] The television control method, apparatus, electronic device, and storage medium disclosed herein have the following beneficial effects:

[0021] In this embodiment, a voice control command is first received, then recognized to obtain a voice recognition result. Based on a preset command configuration list, the voice recognition result is parsed to obtain the target command type and target keywords corresponding to the voice control command. Finally, the television is controlled based on the target command type and target keywords. Therefore, based on the preset command configuration list, the target command type and corresponding target keywords of the voice control command can be accurately determined, and the television can be accurately controlled to perform corresponding operations based on the target command type and corresponding target keywords, thus improving the accuracy of controlling the television based on voice control commands.

[0022] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description

[0023] The accompanying drawings are provided to better understand this solution and do not constitute a limitation of this disclosure. Wherein:

[0024] Figure 1 This is a schematic flowchart of a television control method according to an embodiment of the present disclosure;

[0025] Figure 2 This is a schematic flowchart of a television control method according to yet another embodiment of the present disclosure;

[0026] Figure 3 This is a flowchart illustrating a television control method according to yet another embodiment of the present disclosure;

[0027] Figure 4 This is a schematic diagram of the structure of a television control device according to an embodiment of the present disclosure;

[0028] Figure 5 This is a block diagram of an electronic device used to implement the television control method of the embodiments of this disclosure. Detailed Implementation

[0029] The exemplary embodiments of this disclosure are described below with reference to the accompanying drawings, including various details of the embodiments to aid understanding, and should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of this disclosure. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.

[0030] This disclosure relates to the fields of artificial intelligence technology, such as speech recognition and natural language processing.

[0031] Artificial Intelligence (AI) is a new technological science that studies and develops theories, methods, technologies, and application systems to simulate, extend, and expand human intelligence.

[0032] Natural Language Processing (NLP) is the process by which computers process, understand, and utilize human language (such as Chinese and English). It is an interdisciplinary field combining computer science and linguistics, and is often referred to as computational linguistics. Since natural language is the fundamental characteristic that distinguishes humans from other animals, and without language, human thought would be impossible, NLP embodies the highest task and realm of artificial intelligence. In other words, only when computers possess the ability to process natural language can machines be considered to have achieved true intelligence.

[0033] Speech recognition, also known as automatic speech recognition, aims to convert human language into computer-readable input, such as keystrokes, binary codes, or character sequences, thereby enabling humans and machines to interact through natural language.

[0034] The following description, with reference to the accompanying drawings, outlines a television control method, apparatus, electronic device, and storage medium according to embodiments of the present disclosure.

[0035] It should be noted that the execution subject of the television control method in this embodiment is the television control device, which can be implemented by software and / or hardware. The device can be configured in an electronic device, which may include, but is not limited to, a terminal, a server, etc.

[0036] Figure 1 This is a schematic flowchart of a television control method according to an embodiment of the present disclosure.

[0037] like Figure 1 As shown, the control method for this television includes:

[0038] S101: Obtain voice control commands.

[0039] Understandably, when a user needs to control the TV via voice, the user's voice control command must first be obtained. Optionally, the voice control command can be obtained through a voice acquisition device, such as a microphone, a remote control with voice transceiver capabilities, or a smartphone. This application does not limit the specific method for obtaining the voice control command.

[0040] Optionally, voice control commands can include phrases such as "Play XX TV channel", "Play yesterday's XX program", "Turn up the volume", "Open XX application", etc.

[0041] S102: Recognize the voice control commands to obtain the voice recognition results.

[0042] The speech recognition results include text information corresponding to the voice control commands.

[0043] Specifically, speech recognition technology can be used to recognize voice control commands in order to obtain speech recognition results.

[0044] Optionally, after obtaining the speech recognition results, further text correction can be performed on the speech recognition results to obtain corrected speech recognition results.

[0045] The text correction of the speech recognition results may include at least one of the following:

[0046] Based on a pre-set dictionary, words in the speech recognition results are replaced;

[0047] Hot word replacement is performed on the speech recognition results.

[0048] Remove interjections from the speech recognition results;

[0049] Replace sensitive words in the speech recognition results with preset symbols;

[0050] Convert non-Arabic numerals in the speech recognition results to Arabic numerals;

[0051] Convert the letters contained in the speech recognition results to a specified format, such as converting them all to lowercase letters or all to uppercase letters.

[0052] S103: Based on the preset instruction configuration list, parse the speech recognition results to obtain the target instruction type and target keywords corresponding to the voice control instruction.

[0053] The preset instruction configuration list can contain a dictionary corresponding to each instruction type. These instruction types can include on-demand, live, replay, smart application, system control, and weather query types, among others.

[0054] For example, the vocabulary list corresponding to the live broadcast type can include TV stations that offer on-demand viewing, such as CCTV-1 and CCTV-2.

[0055] For example, the vocabulary for on-demand types could include movie A, TV series B, and so on.

[0056] For example, the keyword list corresponding to the "replay" type can include keywords related to TV stations, such as CCTV-1 and CCTV-2, and it can also include time-related keywords, such as yesterday, the day before yesterday, and XX year XX month XX day. This disclosure does not limit this.

[0057] The vocabulary corresponding to the system control type can include functions such as volume, size, pitch, fast forward, and rewind.

[0058] The target instruction type can be any of the following: on-demand type, live type, replay type, smart application type, or system control type.

[0059] Optionally, keywords can be extracted from the speech recognition results based on the vocabulary corresponding to each instruction type to obtain the number of keywords in the speech recognition results that are the same as those in the vocabulary corresponding to each instruction type. The instruction type with the highest number of keywords is identified as the target instruction type, and the same keywords are identified as the target keywords.

[0060] For example, if the speech recognition result is "I want to watch yesterday's CCTV-1", the vocabulary for the replay type contains the keywords "CCTV-1" and "yesterday". If the vocabulary for the live broadcast type contains the keyword "CCTV-1", then the target instruction type is the replay type, and the target keywords are "CCTV-1" and "yesterday".

[0061] Optionally, an interface for batch automated training of media assets can be provided. Operators can upload media asset content via files. This content includes all information required by the commands, such as live TV channels, on-demand movies or TV series, and replayable TV programs. Data uploaded via files can include normalized values ​​and raw values. For example, live CCTV-1 (raw value), or CCTV-1 General (normalized value), etc. Normalized values ​​are on one line, and raw values ​​are on another line, with a '#' symbol added before the line number of the raw values.

[0062] The configuration data needs to be provided by the operator, and the provided data needs to be cleaned according to the given data format. Cleaning methods may include removing spaces, punctuation marks, and converting between simplified and traditional Chinese characters, to make it into a form that can be extracted by speech recognition.

[0063] Optionally, media asset uploading needs to be done during idle time. The entire process of uploading media assets includes media asset uploading, media asset training, training status check, and synchronization to production upon completion of training. Media asset uploading simply involves calling the upload interface. The media asset training process requires storing the uploaded media assets in a database and analyzing the media assets based on natural language processing technology (i.e., determining the instruction type corresponding to the media asset, for example, CCTV1 is a live broadcast type). During the training process, status checks will be performed continuously (checking whether training has ended). After the check indicates that training is complete, a phased synchronization with the production environment will be conducted to quickly update the production environment and reduce interference.

[0064] S104: Control the television based on the target instruction type and target keywords.

[0065] Optionally, if the target instruction type belongs to the search type, a search is performed in the database corresponding to the target instruction type based on the target keywords to obtain the corresponding search results, and then the search results are displayed on the TV screen.

[0066] The instruction types included in the instruction configuration list, except for system control types, are all retrieval types, such as on-demand, live, replay, and smart application types.

[0067] If the target command type is a search type, then it is necessary to search the database corresponding to the target command type based on the target keywords to obtain content that matches the voice control command and display it on the TV.

[0068] For example, if the target type is on-demand and the target keywords are "comedy" and "movie", the system will search the on-demand database for relevant movie recommendations based on "comedy" and "movie" and display the movie recommendations on the TV screen for the user to choose from.

[0069] For example, if the target type is live broadcast and the target keyword is "CCTV-5", the system will search the live broadcast database based on "CCTV-5" to obtain the corresponding live broadcast link. Based on the live broadcast link, the program content that CCTV-5 is broadcasting will be played on the TV screen.

[0070] Optionally, if the target command type is a non-search type, the television can be controlled based on the target keywords. This allows for direct system control of the television for voice control commands that do not require searching, improving the efficiency and accuracy of television system control.

[0071] Among them, the system control type is the non-retrieval type.

[0072] For example, if the target instruction type is system control type and the corresponding target keywords are "increase" and "volume", then you can directly increase the TV's playback volume.

[0073] In this embodiment, a voice control command is first received, then recognized to obtain a voice recognition result. Based on a preset command configuration list, the voice recognition result is parsed to obtain the target command type and target keywords corresponding to the voice control command. Finally, the television is controlled based on the target command type and target keywords. Therefore, based on the preset command configuration list, the target command type and corresponding target keywords of the voice control command can be accurately determined, and the television can be accurately controlled to perform corresponding operations based on the target command type and corresponding target keywords, thus improving the accuracy of controlling the television based on voice control commands.

[0074] Figure 2 This is a flowchart illustrating a television control method according to yet another embodiment of the present disclosure;

[0075] like Figure 2 As shown, the control method for this television includes:

[0076] S201: Obtain voice control commands.

[0077] S202: Recognize the voice control commands to obtain the voice recognition results.

[0078] The specific implementation of steps S201 and S202 can be found in the detailed descriptions of other embodiments of this disclosure, and will not be repeated here.

[0079] S203: Extract keywords from the speech recognition results to obtain the set of keywords contained in the speech recognition results.

[0080] The keyword set is the collection of keywords contained in the speech recognition result. The keyword set may include one keyword or multiple keywords. This disclosure does not limit this.

[0081] Optionally, the vocabulary list corresponding to each instruction type in the instruction configuration list can be used to extract keywords from the speech recognition results to obtain a keyword set.

[0082] Alternatively, a pre-trained keyword extraction model can be used to extract keywords from the speech recognition results to obtain a keyword set.

[0083] S204: Determine the first degree of matching between the keyword set and the vocabulary corresponding to each instruction type in the instruction configuration list.

[0084] Optionally, the number of words in the vocabulary corresponding to each instruction type that are identical to keywords in the keyword set can be determined first. Then, the ratio between each number and the total number of keywords in the keyword set can be used as the first matching degree between the keyword set and the corresponding instruction type. This allows for accurate determination of the first matching degree between the keyword set and the vocabulary corresponding to each instruction type in the instruction configuration list, based on the number of words in the vocabulary corresponding to each instruction type that are identical to keywords in the keyword set.

[0085] For example, if the voice control command is "I want to watch yesterday's variety show broadcast on CCTV-1", the keyword set contains "yesterday", "CCTV-1", and "variety show". The word list corresponding to the on-demand type contains the same word as the keyword set, the word list corresponding to the live type contains the same word as the keyword set, and the word list corresponding to the replay type contains the same words as the keyword set, "yesterday" and "CCTV-1". Then, the first matching degree corresponding to the on-demand type is 0.33, the first matching degree corresponding to the live type is 0.33, and the first matching degree corresponding to the replay type is 0.67.

[0086] Alternatively, the number of words in the vocabulary corresponding to each instruction type that are the same as the keywords in the keyword set can be used as the first degree of matching between the keyword set and each instruction type.

[0087] S205: Determine the second degree of matching between the speech recognition result and the sample instruction set corresponding to each instruction type in the instruction configuration list.

[0088] The instruction configuration list may also include sample instruction sets for each instruction type. For example, the sample instruction set for live streaming may include "I want to watch CCTV1", "Open CCTV1", etc. This disclosure does not limit this.

[0089] Optionally, the third matching degree between the speech recognition result and each sample instruction in the sample instruction set corresponding to each instruction type can be determined first. Then, the maximum third matching degree corresponding to each instruction type can be determined as the second matching degree corresponding to each instruction type. Thus, based on the maximum third matching degree in the sample instruction set corresponding to each instruction type, the second matching degree between the speech recognition result and the sample instruction set corresponding to each instruction type in the instruction configuration list can be accurately determined.

[0090] It is understandable that the sample instruction set corresponding to each instruction type contains many sample instructions. Therefore, it is necessary to find the sample instruction with the largest third matching degree from the sample instruction set corresponding to each instruction type, and take the largest third matching degree as the second matching degree between each instruction type and the speech recognition result.

[0091] The third degree of matching between the speech recognition result and each sample instruction in the sample instruction set corresponding to each instruction type can be determined by methods such as cosine similarity and Euclidean distance. This disclosure does not limit this aspect.

[0092] For example, if the speech recognition result is "I want to watch CCTV1", and the keyword set is "CCTV1", then "CCTV1" is included in the vocabulary corresponding to the live broadcast type and also in the vocabulary corresponding to the replay type. That is, the keyword set has the same first matching degree with the live broadcast type and the replay type. In this case, it is difficult to determine the target instruction type. Then, we can further determine the second matching degree between the speech recognition result and the sample instruction set corresponding to each instruction type in the instruction configuration list, and combine the second matching degree to determine the target instruction type.

[0093] S206: Determine the target instruction type corresponding to the voice control instruction based on the first matching degree and the second matching degree.

[0094] Optionally, the first weight corresponding to the first matching degree and the second weight corresponding to the second matching degree are obtained. Then, based on the first weight, the second weight, and the first matching degree and the second matching degree corresponding to each instruction type, the target matching degree corresponding to each instruction type is determined. Finally, the instruction type with the highest target matching degree is determined as the target instruction type corresponding to the voice control instruction. This allows for the accurate determination of the target instruction type corresponding to the voice control instruction.

[0095] The first weight and the second weight can be the same or different. This disclosure does not impose any restrictions on this. Optionally, the sum of the first weight and the second weight is 1.

[0096] Wherein, the target matching degree = first matching degree * first weight + second matching degree * second weight.

[0097] It should be noted that the higher the target matching degree, the better the voice control command matches the target command type corresponding to the target matching degree. Therefore, the command type with the highest target matching degree is determined as the target command type corresponding to the voice control command.

[0098] S207: The keywords contained in the keyword set and located in the vocabulary corresponding to the target instruction type are identified as target keywords.

[0099] This involves identifying keywords from the vocabulary that belong to the target instruction type within the keyword set, and then controlling the television based on the target keywords corresponding to the target instruction type.

[0100] S208: Control the television based on the target instruction type and target keywords.

[0101] In this embodiment, a voice control command is first received, then recognized to obtain a voice recognition result. Keywords are extracted from the voice recognition result to obtain a set of keywords contained therein. A first matching degree is then determined between the keyword set and the vocabulary corresponding to each command type in the command configuration list, and a second matching degree is determined between the voice recognition result and the sample command set corresponding to each command type in the command configuration list. Based on the first and second matching degrees, the target command type corresponding to the voice control command is determined. If any keyword in the keyword set is identical to any word in the vocabulary corresponding to the target command type, that keyword is determined as the target keyword. Finally, the television is controlled based on the target command type and the target keyword. Therefore, based on the vocabulary and sample command set included in the preset command configuration list, the target command type and corresponding target keyword corresponding to the voice control command can be determined more accurately, thereby further improving the accuracy of controlling the television based on voice control commands.

[0102] Figure 3 This is a flowchart illustrating a television control method according to yet another embodiment of the present disclosure;

[0103] like Figure 3 As shown, the control method for this television includes:

[0104] S301: Obtain voice control commands.

[0105] S302: Recognize voice control commands to obtain voice recognition results.

[0106] S303: Based on a preset instruction configuration list, the speech recognition results are parsed to obtain the target instruction type and target keywords corresponding to the voice control instructions.

[0107] Here, for the specific implementation forms of steps S301 to S303, reference may be made to the detailed descriptions in other embodiments of the present disclosure, which will not be elaborated herein again.

[0108] S304: If the target instruction type belongs to the retrieval type, acquire the target region corresponding to the voice control instruction.

[0109] Optionally, if the television has completed network configuration, an access request that can be used to access the address of the network device (the device for television network configuration) is sent, and the target region (provincial level) fed back by the network device based on the access request is received.

[0110] For example: the television is equipped with a built-in WiFi, and after the WiFi device is connected to the network, the target region can be obtained in the simplest way merely by accessing a link.

[0111] Accordingly, in the case where the television is connected to the network, the target region corresponding to the television is acquired by sending an access request to the network device of the television, so that the target region of the television can be acquired conveniently and accurately.

[0112] Optionally, after acquiring the target region corresponding to the voice control instruction, a mapping vocabulary list corresponding to the target region may be further acquired, and the target keyword is mapped based on the mapping vocabulary list to obtain a mapped target keyword.

[0113] It should be noted that the forms of keywords used for search in each region are different. For example, for CCTV1, Province 1 uses "CCTV1", while Province 2 uses "Channel One of CCTV". Or Province A uses simplified Chinese characters, and Province B uses traditional Chinese characters, etc. Therefore, the target keyword can be mapped based on the mapping vocabulary list corresponding to the target region to obtain the mapped target keyword, and then retrieval is performed in the database corresponding to the target instruction type under the target region based on the mapped keyword, so as to obtain the corresponding retrieval result.

[0114] S305: Based on the target keyword, retrieval is performed in the database corresponding to the target instruction type under the target region, so as to obtain a corresponding retrieval result.

[0115] It can be understood that the program content contained in the database of each region is different. For example, programs in the minority language of Province A contained in the database of Province A do not exist in the database of Province B. Therefore, after the target region corresponding to the voice control instruction is determined, retrieval can be performed in the database corresponding to the target instruction type under the target region based on the target keyword to obtain the corresponding retrieval result, so that not only programs supported for playback by the database of the local province can be acquired, but also the retrieval scope can be narrowed, and the retrieval efficiency can be improved.

[0116] S306: Display the search results on the television screen.

[0117] In this embodiment of the disclosure, a fallback script may also be included. Specifically, if the speech recognition result contains sensitive words, a script for broadcasting sensitive words is returned; if the content length of the speech recognition result is relatively short and the target instruction type and target keywords are not parsed, a script for voice control instruction length that is too short is returned; if the content length of the speech recognition result is too long and the target instruction type and target keywords are not parsed, a script for voice control instruction length that is too long is returned; if an error occurs in the instruction parsing service, including but not limited to service abnormal shutdown, network abnormality, etc., a script for instruction parsing abnormality is returned, etc.

[0118] In this embodiment, a voice control command is first received, then recognized to obtain a voice recognition result. Keywords are extracted from the voice recognition result to obtain a set of keywords contained within it. Then, based on a preset command configuration list, the voice recognition result is parsed to obtain the target command type and target keywords corresponding to the voice control command. If the target command type belongs to a search type, a search is performed in the database corresponding to the target command type based on the target keywords to obtain the corresponding search results, which are then displayed on the television screen. Therefore, after determining the target region corresponding to the voice control command, a search can be performed in the database corresponding to the target command type within that region based on the target keywords to obtain the corresponding search results. This not only allows access to programs supported by the database within the province but also narrows the search scope and improves search efficiency.

[0119] Figure 4 This is a schematic diagram of the structure of a television control device according to an embodiment of the present disclosure;

[0120] like Figure 4 As shown, the control device 400 of the television includes:

[0121] The first acquisition module 410 is used to acquire voice control commands;

[0122] The second acquisition module 420 is used to recognize voice control commands in order to obtain voice recognition results;

[0123] The third acquisition module 430 is used to parse the speech recognition results based on a preset instruction configuration list in order to obtain the target instruction type and target keywords corresponding to the voice control instruction.

[0124] The control module 440 is used to control the television based on the target instruction type and target keywords.

[0125] Optionally, the third acquisition module 430 includes:

[0126] The acquisition unit is used to extract keywords from the speech recognition results to obtain the set of keywords contained in the speech recognition results;

[0127] The first determining unit is used to determine the first matching degree between the keyword set and the vocabulary corresponding to each instruction type in the instruction configuration list;

[0128] The second determining unit is used to determine the second matching degree between the speech recognition result and the sample instruction set corresponding to each instruction type in the instruction configuration list;

[0129] The third determining unit is used to determine the target instruction type corresponding to the voice control instruction based on the first matching degree and the second matching degree.

[0130] The fourth determining unit is used to determine the keywords contained in the keyword set and located in the vocabulary corresponding to the target instruction type as target keywords.

[0131] Optionally, the first determining unit is specifically used for:

[0132] Determine the number of words in the vocabulary corresponding to each instruction type that are identical to the keywords in the keyword set;

[0133] The ratio between each quantity and the total number of keywords in the keyword set is determined as the first degree of matching between the keyword set and the corresponding instruction type.

[0134] Optionally, the second determining unit is specifically used for:

[0135] Determine the third degree of matching between the speech recognition result and each sample instruction in the sample instruction set corresponding to each instruction type;

[0136] The maximum third matching degree corresponding to each instruction type is determined as the second matching degree corresponding to each instruction type.

[0137] Optional, the third determining unit, specifically used for:

[0138] Obtain the first weight corresponding to the first matching degree, and the second weight corresponding to the second matching degree;

[0139] Based on the first weight, the second weight, and the first matching degree and the second matching degree corresponding to each instruction type, the target matching degree corresponding to each instruction type is determined;

[0140] The instruction type with the highest target matching degree is determined as the target instruction type corresponding to the voice control instruction.

[0141] Optional, control module 440, specifically used for:

[0142] If the target command type is a retrieval type, obtain the target region corresponding to the voice control command;

[0143] Based on the target keywords, a search is performed in the database corresponding to the target instruction type in the target region to obtain the corresponding search results;

[0144] The search results will be displayed on the television screen.

[0145] Optional, control module 440, specifically used for:

[0146] When the target instruction type is a non-retrieval type, the television is controlled by the system based on the target keywords.

[0147] It should be noted that the foregoing explanation of the television control method also applies to the television control device of this embodiment, and will not be repeated here.

[0148] In this embodiment, a voice control command is first received, then recognized to obtain a voice recognition result. Based on a preset command configuration list, the voice recognition result is parsed to obtain the target command type and target keywords corresponding to the voice control command. Finally, the television is controlled based on the target command type and target keywords. Therefore, based on the preset command configuration list, the target command type and corresponding target keywords of the voice control command can be accurately determined, and the television can be accurately controlled to perform corresponding operations based on the target command type and corresponding target keywords, thus improving the accuracy of controlling the television based on voice control commands.

[0149] According to embodiments of this disclosure, this disclosure also provides an electronic device, a readable storage medium, and a computer program product.

[0150] Figure 5 A schematic block diagram of an example electronic device 500 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0151] like Figure 5As shown, device 500 includes a computing unit 501, which can perform various appropriate actions and processes based on a computer program stored in read-only memory (ROM) 502 or a computer program loaded from storage unit 508 into random access memory (RAM) 503. RAM 503 may also store various programs and data required for the operation of device 500. The computing unit 501, ROM 502, and RAM 503 are interconnected via bus 504. Input / output (I / O) interface 505 is also connected to bus 504.

[0152] Multiple components in device 500 are connected to I / O interface 505, including: input unit 506, such as keyboard, mouse, etc.; output unit 507, such as various types of monitors, speakers, etc.; storage unit 508, such as disk, optical disk, etc.; and communication unit 509, such as network card, modem, wireless transceiver, etc. Communication unit 509 allows device 500 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0153] The computing unit 501 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 501 performs the various methods and processes described above, such as television control methods. For example, in some embodiments, the television control methods may be implemented as computer software programs tangibly contained in a machine-readable medium, such as storage unit 508. In some embodiments, part or all of the computer program may be loaded and / or installed on device 500 via ROM 502 and / or communication unit 509. When the computer program is loaded into RAM 503 and executed by the computing unit 501, one or more steps of the television control methods described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to perform television control methods by any other suitable means (e.g., by means of firmware).

[0154] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0155] The program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0156] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0157] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0158] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), the Internet, and blockchain networks.

[0159] Computer systems can include clients and servers. Clients and servers are generally geographically separated and typically interact via communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. A server can be a cloud server, also known as a cloud computing server or cloud host, a hosting product within the cloud computing service ecosystem, addressing the shortcomings of traditional physical hosts and VPS (Virtual Private Server, or simply "VPS") services, such as high management difficulty and weak business scalability. Servers can also be servers for distributed systems or servers incorporating blockchain technology.

[0160] In this embodiment, a voice control command is first received, then recognized to obtain a voice recognition result. Based on a preset command configuration list, the voice recognition result is parsed to obtain the target command type and target keywords corresponding to the voice control command. Finally, the television is controlled based on the target command type and target keywords. Therefore, based on the preset command configuration list, the target command type and corresponding target keywords of the voice control command can be accurately determined, and the television can be accurately controlled to perform corresponding operations based on the target command type and corresponding target keywords, thus improving the accuracy of controlling the television based on voice control commands.

[0161] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.

[0162] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this disclosure, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified. In the description of this disclosure, the words "if" and "suppose" as used may be interpreted as "when," "when," "in response to determination," or "in the circumstances."

[0163] The specific embodiments described above do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.

Claims

1. A method for controlling a television, comprising: Obtain voice control commands; The voice control commands are recognized to obtain voice recognition results; Keyword extraction is performed on the speech recognition results to obtain a keyword set; Determine the first degree of matching between the keyword set and the vocabulary corresponding to each instruction type in the preset instruction configuration list; Determine the second matching degree between the speech recognition result and the sample instruction set corresponding to each instruction type in the instruction configuration list; obtain the first weight corresponding to the first matching degree and the second weight corresponding to the second matching degree; determine the target matching degree corresponding to each instruction type based on the first matching degree, the second matching degree, the first weight, and the second weight; determine the instruction type with the highest target matching degree as the target instruction type corresponding to the voice control instruction; determine the keywords contained in the keyword set and located in the vocabulary corresponding to the target instruction type as the target keywords; If the target command type is a search type, the target region corresponding to the voice control command is obtained, and a mapping word list corresponding to the target region is obtained. The target keywords are mapped based on the mapping word list to obtain mapped target keywords. Based on the mapped target keywords, a search is performed in the database corresponding to the target command type in the target region to obtain the corresponding search results, and the search results are displayed on the TV screen. If the target command type is not a search type, the TV is controlled based on the target keywords. In the case of the TV being connected to a network, an access request is sent to the TV's network device to obtain the target region corresponding to the TV.

2. The method according to claim 1, wherein, The determination of the first matching degree between the keyword set and the vocabulary corresponding to each instruction type in the preset instruction configuration list includes: Determine the number of words in the vocabulary corresponding to each instruction type that are identical to the keywords in the keyword set; The ratio between each of the stated quantities and the total number of keywords in the keyword set is determined as the first matching degree between the keyword set and the corresponding instruction type.

3. The method according to claim 1, wherein, Determining the second matching degree between the speech recognition result and the sample instruction set corresponding to each instruction type in the instruction configuration list includes: Determine the third matching degree between the speech recognition result and each sample instruction in the sample instruction set corresponding to each instruction type; The maximum third matching degree corresponding to each instruction type is determined as the second matching degree corresponding to each instruction type.

4. A television control device, comprising: The first acquisition module is used to acquire voice control commands; The second acquisition module is used to recognize the voice control command in order to obtain the voice recognition result; The third acquisition module includes an acquisition unit, a first determination unit, a second determination unit, a third determination unit, and a fourth determination unit. The acquisition unit is used to extract keywords from the speech recognition results to obtain a keyword set. The first determining unit is used to determine the first matching degree between the keyword set and the vocabulary corresponding to each instruction type in the preset instruction configuration list; The second determining unit is used to determine the second matching degree between the speech recognition result and the sample instruction set corresponding to each instruction type in the instruction configuration list; the third determining unit is used to obtain the first weight corresponding to the first matching degree and the second weight corresponding to the second matching degree, determine the target matching degree corresponding to each instruction type according to the first matching degree, the second matching degree, the first weight and the second weight, and determine the instruction type with the highest target matching degree as the target instruction type corresponding to the voice control instruction; The fourth determining unit is used to determine the keywords contained in the keyword set and located in the word list corresponding to the target instruction type as target keywords; The control module is configured to, when the target command type is a search type, obtain the target region corresponding to the voice control command, obtain a mapping word list corresponding to the target region, map the target keywords based on the mapping word list to obtain mapped target keywords, search the database corresponding to the target command type in the target region based on the mapped target keywords to obtain corresponding search results, and display the search results on the television screen; when the target command type is not a search type, control the television based on the target keywords; wherein, when the television is connected to a network, send an access request to the television's network device to obtain the target region corresponding to the television.

5. The apparatus according to claim 4, wherein, The first determining unit is specifically used for: Determine the number of words in the vocabulary corresponding to each instruction type that are identical to the keywords in the keyword set; The ratio between each of the stated quantities and the total number of keywords in the keyword set is determined as the first matching degree between the keyword set and the corresponding instruction type.

6. The apparatus according to claim 4, wherein, The second determining unit is specifically used for: Determine the third matching degree between the speech recognition result and each sample instruction in the sample instruction set corresponding to each instruction type; The maximum third matching degree corresponding to each instruction type is determined as the second matching degree corresponding to each instruction type.

7. An electronic device, comprising: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-3.

8. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-3.

9. A computer program product comprising computer instructions that, when executed by a processor, implement the steps of the method according to any one of claims 1-3.

Citation Information

Patent Citations

  • Search interaction method and device and computer readable storage medium

    CN107436926A

  • Voice instruction recognition method and device, voice equipment and storage medium

    CN112466289A

  • Vehicle configuration adjustment method and device, electronic equipment and storage medium

    CN113370923A

  • An instruction recognition method and device and a voice interaction screen

    CN113779201A