CN114706552B - Voice control method, device, equipment and storage medium based on interactive page - Google Patents

Voice control method, device, equipment and storage medium based on interactive page

Info

Publication number
CN114706552B
CN114706552B CN202111552851.3A CN202111552851A CN114706552B CN 114706552 B CN114706552 B CN 114706552B CN 202111552851 A CN202111552851 A CN 202111552851A CN 114706552 B CN114706552 B CN 114706552B
Authority
CN
China
Prior art keywords
images
text
image
display image
feature
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111552851.3A
Other languages
Chinese (zh)
Other versions
CN114706552A (en
Inventor
陈诚
黄石磊
程刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Raisound Technology Co ltd
Original Assignee
Shenzhen Raisound Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Raisound Technology Co ltd filed Critical Shenzhen Raisound Technology Co ltd
Priority to CN202111552851.3A priority Critical patent/CN114706552B/en
Publication of CN114706552A publication Critical patent/CN114706552A/en
Application granted granted Critical
Publication of CN114706552B publication Critical patent/CN114706552B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/167Audio in a user interface, e.g. using voice commands for navigating, audio feedback
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/26Speech to text systems
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/28Constructional details of speech recognition systems
    • G10L15/30Distributed recognition, e.g. in client-server systems, for mobile phones or network applications

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Computational Linguistics (AREA)
  • Theoretical Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本发明涉及语音处理技术,揭露一种基于交互页面的语音控制方法,包括:获取显示图像,对显示图像进行图像分割,得到多个子图;生成显示图像及多个子图分别对应的特征码,并判断预设的数据表中是否存在所述特征码,根据判断结果获取显示图像或多个子图包含的操作文本,并将获取到的多个所述操作文本以缓存形式存储在操作文本缓存库中;接收针对所述交互页面的控制语音,将所述控制语音转化为控制文本;确定所述操作文本缓存库中与所述控制文本的匹配度满足匹配条件的操作文本为目标操作文本,以及控制所述交互页面执行所述目标操作文本对应的操作。本发明还提出一种基于交互页面的语音控制装置、设备以及介质。本发明可以提高语音控制的效率。

This invention relates to speech processing technology and discloses a voice control method based on an interactive page, comprising: acquiring a display image; segmenting the display image to obtain multiple sub-images; generating feature codes corresponding to the display image and the multiple sub-images respectively, and determining whether the feature codes exist in a preset data table; acquiring operation text contained in the display image or the multiple sub-images according to the determination result, and storing the acquired multiple operation texts in a cached form in an operation text cache library; receiving control voice for the interactive page, and converting the control voice into control text; determining the operation text in the operation text cache library that meets the matching condition with the control text as the target operation text; and controlling the interactive page to execute the operation corresponding to the target operation text. This invention also proposes a voice control device, apparatus, and medium based on an interactive page. This invention can improve the efficiency of voice control.

Description

Voice control method, device, equipment and storage medium based on interactive page
Technical Field
The present invention relates to the field of speech processing technologies, and in particular, to a speech control method and apparatus based on interactive pages, an electronic device, and a computer readable storage medium.
Background
With the continuous development of artificial intelligence technology, more and more intelligent home devices supporting voice control, such as intelligent televisions, intelligent sound boxes, intelligent air conditioners and other intelligent home devices, are emerging in daily life of people. The user can realize voice control of the corresponding intelligent equipment according to the display screen of the intelligent household equipment or the guiding text information on the appearance, and convenience is brought to life of people.
In the prior art, when equipment control is performed according to user voice, after image analysis or text analysis is performed on current page elements of a voice command sent by a user, corresponding operation positions and operation texts are found, so that voice control of the user is completed.
Disclosure of Invention
The invention provides a voice control method and device based on an interactive page and a computer readable storage medium, and mainly aims to solve the problem of low efficiency of voice control.
In order to achieve the above object, the present invention provides a voice control method based on an interactive page, including:
Acquiring a display image of an interaction page, and performing image segmentation on the display image to obtain a plurality of subgraphs;
generating feature codes respectively corresponding to the display image and the plurality of sub-images, judging whether the feature codes respectively corresponding to the display image or the plurality of sub-images exist in a preset data table, acquiring operation texts contained in the display image or the plurality of sub-images according to a judging result, and storing the acquired operation texts in an operation text cache in a cache mode;
Receiving control voice aiming at the interactive page, and converting the control voice into control text;
and determining an operation text which meets the matching condition with the control text in the operation text cache library as a target operation text, and controlling the interaction page to execute the operation corresponding to the target operation text.
Optionally, the generating the feature codes corresponding to the display image and the plurality of sub-images respectively includes:
compressing the display image and the plurality of sub-images into preset sizes to obtain a plurality of compressed images, and graying the plurality of compressed images;
And calculating the gray characteristic value of each pixel point in the compressed images, and combining the gray characteristic values to obtain the characteristic codes of the display image and the subgraphs.
Optionally, the determining whether the feature codes corresponding to the display image and the plurality of sub-images exist in the preset data table includes:
extracting the feature codes corresponding to the display images and searching in the data table;
if the feature codes corresponding to the display images are retrieved, judging that the feature codes corresponding to the display images exist in the data table;
if the feature codes corresponding to the display images cannot be searched, the feature codes corresponding to the plurality of sub-images are selected one by one to be searched in the data table, and whether the feature codes corresponding to all the sub-images can be searched is judged;
If the feature codes corresponding to all the subgraphs can be retrieved, judging that the feature codes corresponding to all the subgraphs exist in the data table;
If the feature code corresponding to any sub-graph is not searched, judging that the display image and the feature codes corresponding to a plurality of sub-graphs do not exist in the data table;
if the feature codes corresponding to part of the sub-graphs can be retrieved, judging that part of the feature codes corresponding to the sub-graphs exist in the data table.
Alternatively, the process may be carried out in a single-stage,
The step of obtaining the operation text contained in the display image or the plurality of sub-images according to the judging result comprises the following steps:
when the feature codes corresponding to the display images are judged to exist in the data table, extracting texts corresponding to the feature codes corresponding to the display images from the data table as operation texts contained in the display images;
when judging that the feature codes corresponding to all the subgraphs exist in the data table, extracting texts corresponding to the feature codes corresponding to all the subgraphs from the data table as operation texts contained in all the subgraphs;
When judging that part of feature codes corresponding to the subgraphs exist in the data table, determining the subgraphs which do not exist in the data table as target images, and acquiring the operation text according to the target images;
when the display image and the feature codes corresponding to the sub-images are judged to be absent in the data table, determining the display image and the sub-images as target images;
Wherein the obtaining the operation text contained in the display image or the plurality of sub-images according to the target image comprises:
calculating to obtain similarity scores of the images stored in the data table and the target image by using a preset image similarity algorithm, and judging whether the similarity scores are larger than a preset threshold value or not;
When the similarity score is larger than a preset threshold value, extracting a text corresponding to the target image from the data table as an operation text contained in the target image;
and when the similarity score is smaller than or equal to a preset threshold value, performing text recognition on the target image to obtain a recognition text, and taking the recognition text as an operation text contained in the target image.
Optionally, the image segmentation is performed on the display image to obtain a plurality of subgraphs, including:
extracting the characteristics of the display image by utilizing a pre-constructed segmentation network to obtain multiple image characteristics of the display image;
and carrying out image segmentation on the display image according to the multiple image characteristics to obtain a plurality of subgraphs of the display image.
Optionally, the feature extraction of the display image by using a pre-constructed segmentation network to obtain multiple image features of the display image includes:
Carrying out convolution processing and pooling processing on the display image by utilizing the segmentation network to obtain a pooled image;
carrying out full connection processing on the pooled images to obtain a full connection feature map;
and carrying out multi-scale feature extraction on the full-connection feature map to obtain multiple image features of the display image.
Optionally, the determining that the operation text in the operation text cache library, the matching degree of which with the control text meets the matching condition, is the target operation text includes:
calculating the similarity between the cached operation texts in the operation text cache library and the voice texts one by one, and judging whether the similarity is larger than a first threshold value;
If the similarity is larger than the first threshold, selecting a cache operation text corresponding to the maximum similarity from the similarity larger than the threshold as a target operation text;
If the similarity is not greater than the first threshold, performing pronunciation unit recognition on the control voice, and determining a target operation text according to a recognition result.
In order to solve the above problems, the present invention also provides an interactive page-based voice control device based on an interactive page, the device comprising:
the image acquisition module is used for acquiring a display image of the interactive page, and carrying out image segmentation on the display image to obtain a plurality of subgraphs;
The image text acquisition module is used for generating the feature codes respectively corresponding to the display image and the plurality of sub-images, judging whether the feature codes respectively corresponding to the display image and the plurality of sub-images exist in a preset data table, acquiring operation texts contained in the display image or the plurality of sub-images according to a judging result, and storing the acquired operation texts in an operation text cache library in a cache mode;
The control voice acquisition module is used for receiving control voice aiming at the interaction page and converting the control voice into a control text;
And the voice control module is used for determining an operation text which meets the matching condition with the control text in the operation text cache library as a target operation text and controlling the interaction page to execute the operation corresponding to the target operation text.
In order to solve the above-mentioned problems, the present invention also provides an electronic apparatus including:
at least one processor, and
A memory communicatively coupled to the at least one processor, wherein,
The memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the interactive page based speech control method described above.
In order to solve the above-mentioned problems, the present invention also provides a computer-readable storage medium having stored therein at least one computer program that is executed by a processor in an electronic device to implement the above-mentioned interactive page based voice control method.
According to the embodiment of the invention, after the page interactive display image is acquired, the operation text contained in the display image is rapidly extracted and stored in the operation text buffer library through the image segmentation and feature code query method, so that the operation text contained in the interactive display image can be rapidly multiplexed, and after the control text is acquired according to the control voice, the operation text matched with the control text is directly searched from the operation text buffer library, thereby improving the efficiency of determining the operation text corresponding to the control voice during voice control and further improving the voice control efficiency. In addition, the scheme can be used for rapidly and accurately operating a large number of users and different large numbers of pages, and user experience is improved. Therefore, the interactive page-based voice control method, the interactive page-based voice control device, the electronic equipment and the computer-readable storage medium can solve the problem of low voice control efficiency.
Drawings
FIG. 1 is a flowchart of a voice control method based on an interactive page according to an embodiment of the present invention;
FIG. 2 is a flow chart of determining whether a displayed image and feature codes corresponding to a plurality of sub-images exist in a data table according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of determining a target operation text according to an embodiment of the present invention;
FIG. 4 is a functional block diagram of a voice control device based on an interactive page according to an embodiment of the present invention;
Fig. 5 is a schematic structural diagram of an electronic device implementing the interactive page-based voice control method according to an embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The embodiment of the application provides a voice control method based on an interactive page. The execution subject of the interactive page-based voice control method includes, but is not limited to, at least one of a server, a terminal, and the like, which can be configured to execute the method provided by the embodiment of the application. In other words, the interactive page based voice control method may be performed by software or hardware installed in a terminal device or a server device, and the software may be a blockchain platform. The server side comprises, but is not limited to, a single server, a server cluster, a cloud server or a cloud server cluster and the like. The server may be an independent server, or may be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (ContentDelivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms.
Referring to fig. 1, a flowchart of a voice control method based on an interactive page according to an embodiment of the present invention is shown. In this embodiment, the voice control method based on the interaction page includes:
S1, acquiring a display image of an interaction page, and performing image segmentation on the display image to obtain a plurality of subgraphs.
In the embodiment of the invention, the display image can be obtained by directly reading the current page to capture the screen or by calling the current page through a system function, and the obtained display image comprises image information.
In the embodiment of the present invention, the image segmentation is performed on the display image to obtain a plurality of subgraphs, including:
extracting the characteristics of the display image by utilizing a pre-constructed segmentation network to obtain multiple image characteristics of the display image;
and carrying out image segmentation on the display image according to the multiple image characteristics to obtain a plurality of subgraphs of the display image.
In the embodiment of the invention, the segmentation network can adopt a convolutional neural network with a feature extraction function, such as Segnet network, E-net network, V-net network, resNet network and the like.
In an embodiment of the present invention, the segmentation network adopts ResNet network, and an FPN feature pyramid structure is added in the segmentation network, so as to extract multiple features of the display image, and obtain multiple image features corresponding to the display image.
Specifically, the feature extraction of the display image by using the pre-constructed segmentation network to obtain multiple image features of the display image includes:
Carrying out convolution processing and pooling processing on the display image by utilizing the segmentation network to obtain a pooled image;
carrying out full connection processing on the pooled images to obtain a full connection feature map;
and carrying out multi-scale feature extraction on the full-connection feature map to obtain multiple image features of the display image.
For example, a display image A exists, convolution, pooling and full connection processing are carried out on the display image A by utilizing a segmentation network, a full connection feature map corresponding to the display image A is obtained, multiple feature extraction is carried out on the full connection feature map by utilizing a FPN feature pyramid structure containing 5 layers of output in the segmentation network, and image features with 5 different sizes of multiple image features of the display image A can be obtained.
Further, the image segmentation is performed on the display image according to multiple image features to obtain a plurality of subgraphs of the display image, including:
Selecting a segmentation block diagram corresponding to the multiple image features from preset segmentation block diagrams;
and selecting the display image according to the segmentation block diagram for multiple times, and taking different images obtained by frame selection as multiple subgraphs.
For example, the multiple image features are five-size image features, corresponding segmentation block diagrams are selected from preset segmentation block diagrams according to the five-size image features, and then the corresponding segmentation block diagrams are used for frame selection one by one in the display image, so that a frame-selected sub-image is obtained.
In the embodiment of the invention, the image features with various scales can be obtained by extracting the multiple features of the display image, which is beneficial to improving the accuracy of the sub-images obtained by segmentation.
S2, generating feature codes corresponding to the display image and the sub-images respectively, judging whether the feature codes corresponding to the display image and the sub-images respectively exist in a preset data table, acquiring operation texts contained in the display image or the sub-images according to a judging result, and storing the acquired operation texts in an operation text buffer library in a buffer mode.
In the embodiment of the present invention, the feature codes corresponding to the plurality of sub-images of the display image may be MD5 codes or hash codes formed by representing the image.
In the embodiment of the invention, the data table is a pre-stored image information database, contains a large number of images and subgraphs, and also contains information (such as feature codes and texts) corresponding to the images and subgraphs.
In the embodiment of the present invention, the generating the feature codes corresponding to the display image and the plurality of sub-images respectively includes:
compressing the display image and the plurality of sub-images into preset sizes to obtain a plurality of compressed images, and graying the plurality of compressed images;
And calculating the gray characteristic value of each pixel point in the compressed images, and combining the gray characteristic values to obtain the characteristic codes respectively corresponding to the display image and the subgraphs.
In the embodiment of the invention, the gray characteristic value can be a gray difference value, a gray average value and the like, if the gray characteristic value is the gray difference value, the gray difference value of adjacent pixel points in the compressed image is calculated, the gray difference value is obtained by processing the difference value, the gray difference value (such as positive number or 0 is recorded as 1, negative number is recorded as 0) is analyzed to obtain the characteristic values of the displayed image and the plurality of sub-images, if the gray characteristic value is the gray average value, the average value of the gray values of all pixel points in the compressed image is calculated to be the gray average value, and the characteristic codes of the images of the interactive page and the plurality of sub-images are obtained by analyzing according to the gray average value (such as the gray average value is recorded as 1 or less than the gray average value and the gray average value is recorded as 0).
In another optional embodiment of the present invention, the displayed image and the plurality of sub-images may be converted into a character array, and the MD5 code of the displayed image and the plurality of sub-images may be obtained by performing MD5 encoding on the character data, where the MD5 code may be used as the feature code.
In an optional embodiment of the present invention, before the obtaining, according to the determination result, the operation text included in the display image or the plurality of sub-images, the method further includes:
Forming a mapping relation between the display image and the plurality of subgraphs and feature codes corresponding to the display image and the plurality of subgraphs;
Generating operation texts contained in the display image and the plurality of sub-images, forming mapping relations between the display image and the plurality of sub-images and the texts contained in the display image and the plurality of sub-images, and storing the mapping relations into a data table.
In the embodiment of the invention, the corresponding text can be obtained by labeling the display image and the plurality of sub-images, or the text in the image is identified by a pre-trained model to obtain the operation text.
In the embodiment of the present invention, after the mapping relationship formed by the display image and the plurality of sub-images and the feature codes corresponding to the display image and the plurality of sub-images is filled into the data table, corresponding list labels may also be generated according to the display image and the plurality of sub-images, the feature codes corresponding to the display image and the plurality of sub-images, and the text corresponding to the display image and the plurality of sub-images. For example, the list labels corresponding to the display image and the list of the plurality of sub-images are images, the list labels of the feature codes corresponding to the display image and the plurality of sub-images are feature codes, and the list labels of the texts corresponding to the display image and the plurality of sub-images are texts.
In the embodiment of the present invention, referring to fig. 2, the determining whether the feature codes corresponding to the display image and the plurality of sub-images exist in the preset data table includes:
S21, extracting feature codes corresponding to the display images and searching in the data table;
if the feature codes corresponding to the display images are retrieved, S22 is executed, and the feature codes corresponding to the display images are judged to exist in the data table;
If the feature codes corresponding to the display images cannot be retrieved, executing S23, selecting the feature codes corresponding to the plurality of sub-images one by one, retrieving the feature codes in the data table, and judging whether the feature codes corresponding to all the sub-images can be retrieved;
if the feature codes corresponding to all the subgraphs can be retrieved, executing S24, and judging that the feature codes corresponding to all the subgraphs exist in the data table;
If the feature code corresponding to any sub-graph is not searched, S25 is executed, and the fact that the display image and the feature codes corresponding to a plurality of sub-graphs do not exist in the data table is judged;
and if the feature codes corresponding to part of the sub-graphs can be retrieved, executing S26, and judging that part of the feature codes corresponding to the sub-graphs exist in the data table.
In the embodiment of the present invention, the obtaining, according to the determination result, the operation text included in the display image or the plurality of sub-images includes:
when the feature codes corresponding to the display images are judged to exist in the data table, extracting texts corresponding to the feature codes corresponding to the display images from the data table as operation texts contained in the display images;
when judging that the feature codes corresponding to all the subgraphs exist in the data table, extracting texts corresponding to the feature codes corresponding to all the subgraphs from the data table as operation texts contained in all the subgraphs;
When judging that part of feature codes corresponding to the subgraphs exist in the data table, determining the subgraphs which do not exist in the data table as target images, and acquiring the operation text according to the target images;
when the display image and the feature codes corresponding to the sub-images are judged to be absent in the data table, determining the display image and the sub-images as target images;
Wherein the obtaining the operation text contained in the display image or the plurality of sub-images according to the target image comprises:
calculating to obtain similarity scores of the images stored in the data table and the target image by using a preset image similarity algorithm, and judging whether the similarity scores are larger than a preset threshold value or not;
When the similarity score is larger than a preset threshold value, extracting a text corresponding to the target image from the data table as an operation text contained in the target image;
and when the similarity score is smaller than or equal to a preset threshold value, performing text recognition on the target image to obtain a recognition text, and taking the recognition text as an operation text contained in the target image.
In the embodiment of the invention, the number of the texts in the data table is more than the number of the texts in the operation text cache, and the texts in the operation text cache only comprise the texts corresponding to the display images of the interactive pages and the subgraphs of the display images of the interactive pages.
In the embodiment of the invention, the images, the feature codes corresponding to the images and the corresponding texts corresponding to the images in the data table can be associated and stored, because the texts corresponding to the images can be extracted according to the feature codes corresponding to the images, and after the extracted texts are stored in the operation text cache, all the texts corresponding to the images can be obtained from the operation text cache.
In the embodiment of the invention, if the feature codes cannot be searched in the data table, image recognition is needed to judge whether similar images exist in the data table.
In the implementation of the method, the image similarity algorithm comprises, but is not limited to, a SIFT algorithm, a perceptual hash algorithm and a template matching algorithm, wherein the image similarity algorithm is used for carrying out similarity calculation on images which cannot be identified by the feature codes and prestored images in a data table one by one to obtain a similarity value, and the images in the data table with the similarity value larger than a preset threshold value are selected to serve as the target images, and texts corresponding to the target images are operation texts.
In the embodiment of the invention, if the feature code corresponding to the image cannot be retrieved in the data table, and the image with the result larger than the preset threshold cannot be obtained by utilizing the image similarity algorithm, the image possibly does not exist in the data table, so that text recognition is needed, and the text of the corresponding image is obtained.
In the embodiment of the present invention, the text recognition of the target image to obtain a recognized text includes:
acquiring all characters in the target image by using a segmentation algorithm;
and carrying out text recognition on all the characters by using a pre-trained text recognition network to obtain a recognition text.
Specifically, the acquiring all characters in the target image by using a segmentation algorithm includes:
performing horizontal projection on the corresponding image, and acquiring an upper limit and a lower limit of each row after projection;
Cutting according to the upper limit and the lower limit;
Performing vertical projection on each cut line, and acquiring a left limit and a right limit of each character after projection;
and cutting each character according to the left limit and the right limit to obtain a plurality of characters.
In the embodiment of the invention, the text recognition network can be obtained by training a CNN neural network, predicting the CNN neural network by inputting text training data, and optimizing the neural network by calculating a loss value according to a predicted result to obtain the text recognition network.
In another alternative embodiment of the present invention, a CTPN depth neural network, a SegLink algorithm, etc. may also be used to perform text detection and character segmentation on the target image.
S3, receiving control voice aiming at the interaction page, and converting the control voice into a control text.
In an embodiment of the present invention, the converting the control speech into the control text includes:
Extracting voice characteristics of the control voice to obtain characteristic vectors;
inputting the feature vector into a preset acoustic model to obtain phoneme information;
obtaining a plurality of phoneme fragments according to the number of the phonemes in the phoneme information;
Each phoneme fragment is searched in a preset word stock one by one;
taking a text corresponding to the phoneme fragment retrieved in the word stock as the control text;
and performing approximate sound conversion on the phoneme fragments which are not searched in the word stock, and re-matching the converted phoneme fragments with the word stock.
In the embodiment of the invention, the acoustic model comprises but is not limited to an HMM (hidden Markov model), the tone-by-tone matching according to the number of preset phonemes can be performed by matching with the word stock in a mode of single tone, two tones, three tones and four tones, and the word stock comprises popular words, common words, standard words divided according to parts of speech (such as adjectives, nouns, adverbs and the like) and the like.
In the embodiment of the invention, the approximate sound conversion comprises initial conversion and pronunciation conversion. For example, when the initial is F or H, the first letters F, H are replaced with the corresponding phonemes and recombined with the replaced part, when the initial is L, M, N or R, the first letters L, M, N, R are replaced with the un-replaced part and recombined with the un-replaced part, and when the conversion of the sound of Z, C, S and ZH, ch and Sh flat-raising tongue sounds exists, the conversion of the flat-raising tongue is performed and recombined with the un-replaced part.
S4, determining an operation text which meets the matching condition with the control text in the operation text cache library as a target operation text, and controlling the interaction page to execute the operation corresponding to the target operation text.
In the embodiment of the invention, before the operation corresponding to the target text is executed, the operation text in the text cache library can be matched with the corresponding operation code, and the corresponding operation can be executed through the operation code. For example, there are operation texts of "movie a", "next page", and the operation codes corresponding to them may be "skip detail page" and "skip next page", respectively.
In the embodiment of the present invention, referring to fig. 3, the determining that the operation text in the operation text repository, whose matching degree with the control text satisfies the matching condition, is a target operation text includes:
s41, calculating the similarity between the cached operation text and the voice text in the operation text cache one by one, and judging whether the similarity is larger than a first threshold value;
if the similarity is larger than the first threshold, executing S42, and selecting a cache operation text corresponding to the maximum similarity from the similarity larger than the threshold as a target operation text;
If the similarity is not greater than the first threshold, executing S43, performing pronunciation unit recognition on the control voice, and determining a target operation text according to a recognition result.
Further, the embodiment of the invention can calculate the similarity between the operation text and the control text in the text cache by the following formula:
Wherein cos θ is the similarity score, a is the control text, and b i is the ith operation text in the text repository.
Specifically, the method for identifying the pronunciation unit by using the control voice, and determining the target operation text according to the identification result includes:
dividing the control voice into a plurality of pronunciation units and selecting one of the pronunciation units one by one as a target pronunciation unit;
calculating a minimum distance according to the target pronunciation unit and a preset standard pronunciation unit, and judging whether the minimum distance is smaller than a second threshold value or not;
If the minimum distance is smaller than a second threshold value, determining that the text corresponding to the standard pronunciation unit is a target operation text;
And if the minimum distance is greater than or equal to a second threshold value, determining that the target operation text is not found, and outputting the result of not finding the target operation text to the user.
Further, the embodiment of the invention can calculate the minimum distance between the target pronunciation unit and the preset standard pronunciation unit through the following formula:
Wherein D is the similarity, R is the target pronunciation unit, T is the standard pronunciation unit, and θ is a preset coefficient.
According to the embodiment of the invention, after the page interactive display image is acquired, the operation text contained in the display image is rapidly extracted and stored in the operation text buffer library through the image segmentation and feature code query method, so that the operation text contained in the interactive display image can be rapidly multiplexed, and after the control text is acquired according to the control voice, the operation text matched with the control text is directly searched from the operation text buffer library, thereby improving the efficiency of determining the operation text corresponding to the control voice during voice control and further improving the voice control efficiency. In addition, the scheme can be used for rapidly and accurately operating a large number of users and different large numbers of pages, and user experience is improved. Therefore, the voice control method based on the interactive page can solve the problem of low efficiency of the whole voice control implementation process.
Fig. 4 is a functional block diagram of a voice control device based on interactive pages according to an embodiment of the present invention.
The voice control apparatus 100 based on the interactive page according to the present invention may be installed in an electronic device. The interactive page based voice control apparatus 100 may include an image acquisition module 101, an image text acquisition module 102, a control voice acquisition module 103, and a voice control module 104 according to the implemented functions. The module of the invention, which may also be referred to as a unit, refers to a series of computer program segments, which are stored in the memory of the electronic device, capable of being executed by the processor of the electronic device and of performing a fixed function.
In the present embodiment, the functions concerning the respective modules/units are as follows:
the image acquisition module 101 is configured to acquire a display image of an interaction page, and perform image segmentation on the display image to obtain a plurality of subgraphs;
The image text obtaining module 102 is configured to generate feature codes corresponding to the display image and the plurality of sub-images respectively, determine whether feature codes corresponding to the display image and the plurality of sub-images respectively exist in a preset data table, obtain an operation text included in the display image or the plurality of sub-images according to a determination result, and store the obtained plurality of operation texts in an operation text cache in a cache form;
The control voice acquisition module 103 is configured to receive control voice for the interactive page, and convert the control voice into control text;
The voice control module 104 is configured to determine that an operation text in the operation text cache library, where the matching degree between the operation text and the control text meets a matching condition, is a target operation text, and control the interaction page to execute an operation corresponding to the target operation text.
In detail, each module in the interactive page based voice control apparatus 100 in the embodiment of the present invention adopts the same technical means as the interactive page based voice control method described in fig. 1 to 3, and can generate the same technical effects, which is not described herein.
Fig. 5 is a schematic structural diagram of an electronic device for implementing a voice control method based on an interactive page according to an embodiment of the present invention.
The electronic device 1 may comprise a processor 10, a memory 11, a communication bus 12 and a communication interface 13, and may further comprise a computer program, such as a speech control program, stored in the memory 11 and executable on the processor 10.
The processor 10 may be formed by an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or may be formed by a plurality of integrated circuits packaged with the same function or different functions, including one or more central processing units (Central Processing unit, CPU), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects various components of the entire electronic device using various interfaces and lines, and executes various functions of the electronic device and processes data by running or executing programs or modules (e.g., executing a voice Control program, etc.) stored in the memory 11, and calling data stored in the memory 11.
The memory 11 includes at least one type of readable storage medium including flash memory, a removable hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device, such as a mobile hard disk of the electronic device. The memory 11 may also be an external storage device of the electronic device in other embodiments, such as a plug-in mobile hard disk, a smart memory card (SMART MEDIA CARD, SMC), a Secure Digital (SD) card, a flash memory card (FLASH CARD) or the like, which are provided on the electronic device. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device. The memory 11 may be used not only for storing application software installed in an electronic device and various types of data, such as codes of a voice control program, but also for temporarily storing data that has been output or is to be output.
The communication bus 12 may be a peripheral component interconnect standard (PERIPHERAL COMPONENT INTERCONNECT, PCI) bus, or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. The bus is arranged to enable a connection communication between the memory 11 and at least one processor 10 etc.
The communication interface 13 is used for communication between the electronic device and other devices, including a network interface and a user interface. Optionally, the network interface may include a wired interface and/or a wireless interface (e.g., WI-FI interface, bluetooth interface, etc.), typically used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a Display (Display), an input unit such as a Keyboard (Keyboard), or alternatively a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch, or the like. The display may also be referred to as a display screen or display unit, as appropriate, for displaying information processed in the electronic device and for displaying a visual user interface.
Fig. 5 shows only an electronic device with components, it being understood by a person skilled in the art that the structure shown in fig. 5 does not constitute a limitation of the electronic device 1, and may comprise fewer or more components than shown, or may combine certain components, or may be arranged in different components.
For example, although not shown, the electronic device may further include a power source (such as a battery) for supplying power to the respective components, and preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that functions of charge management, discharge management, power consumption management, and the like are implemented through the power management device. The power supply may also include one or more of any of a direct current or alternating current power supply, recharging device, power failure detection circuit, power converter or inverter, power status indicator, etc. The electronic device may further include various sensors, bluetooth modules, wi-Fi modules, etc., which are not described herein.
It should be understood that the embodiments described are for illustrative purposes only and are not limited to this configuration in the scope of the patent application.
The voice control program stored in the memory 11 of the electronic device 1 is a combination of instructions that, when executed in the processor 10, enable:
Acquiring a display image of an interaction page, and performing image segmentation on the display image to obtain a plurality of subgraphs;
Generating feature codes respectively corresponding to the display image and the plurality of sub-images, judging whether the feature codes respectively corresponding to the display image and the plurality of sub-images exist in a preset data table, acquiring operation texts contained in the display image or the plurality of sub-images according to a judging result, and storing the acquired operation texts in an operation text cache in a cache mode;
Receiving control voice aiming at the interactive page, and converting the control voice into control text;
and determining an operation text which meets the matching condition with the control text in the operation text cache library as a target operation text, and controlling the interaction page to execute the operation corresponding to the target operation text.
In particular, the specific implementation method of the above instructions by the processor 10 may refer to the description of the relevant steps in the corresponding embodiment of the drawings, which is not repeated herein.
Further, the modules/units integrated in the electronic device 1 may be stored in a computer readable storage medium if implemented in the form of software functional units and sold or used as separate products. The computer readable storage medium may be volatile or nonvolatile. For example, the computer readable medium may include any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM).
The present invention also provides a computer readable storage medium storing a computer program which, when executed by a processor of an electronic device, can implement:
Acquiring a display image of an interaction page, and performing image segmentation on the display image to obtain a plurality of subgraphs;
Generating feature codes respectively corresponding to the display image and the plurality of sub-images, judging whether the feature codes respectively corresponding to the display image and the plurality of sub-images exist in a preset data table, acquiring operation texts contained in the display image or the plurality of sub-images according to a judging result, and storing the acquired operation texts in an operation text cache in a cache mode;
Receiving control voice aiming at the interactive page, and converting the control voice into control text;
and determining an operation text which meets the matching condition with the control text in the operation text cache library as a target operation text, and controlling the interaction page to execute the operation corresponding to the target operation text.
In the several embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be other manners of division when actually implemented.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical units, may be located in one place, or may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units can be realized in a form of hardware or a form of hardware and a form of software functional modules.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof.
The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and the like. The blockchain (Blockchain), essentially a de-centralized database, is a string of data blocks that are generated in association using cryptographic methods, each of which contains information from a batch of network transactions for verifying the validity (anti-counterfeit) of its information and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, an application services layer, and the like.
The embodiment of the application can acquire and process the related data based on the artificial intelligence technology. Wherein artificial intelligence (ARTIFICIAL INTELLIGENCE, AI) is the theory, method, technique, and application system that uses a digital computer or a digital computer-controlled machine to simulate, extend, and expand human intelligence, sense the environment, acquire knowledge, and use knowledge to obtain optimal results.
Furthermore, it is evident that the word "comprising" does not exclude other elements or steps, and that the singular does not exclude a plurality. A plurality of units or means recited in the system claims can also be implemented by means of software or hardware by means of one unit or means. The terms first, second, etc. are used to denote a name, but not any particular order.
Finally, it should be noted that the above-mentioned embodiments are merely for illustrating the technical solution of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications and equivalents may be made to the technical solution of the present invention without departing from the spirit and scope of the technical solution of the present invention.

Claims (8)

1.一种基于交互页面的语音控制方法,其特征在于,所述方法包括:1. A voice control method based on an interactive page, characterized in that the method includes: 获取交互页面的显示图像,对所述显示图像进行图像分割,得到多个子图;所述对所述显示图像进行图像分割,得到多个子图,包括:利用预构建的分割网络对所述显示图像进行多重特征提取,得到所述显示图像的包含五种不同尺寸的多重图像特征;从预设的分割框图中选择与所述五种不同尺寸的多重图像特征分别对应的分割框图,并根据所选择的多个分割框图多次框选所述显示图像,将框选得到的不同图像作为多个子图;其中,所述分割网络为ResNet50网络并包含FPN特征金字塔结构,所述多重图像特征为多个不同尺寸的图像特征;The process involves acquiring a display image of an interactive page, performing image segmentation on the display image to obtain multiple sub-images, and then: using a pre-constructed segmentation network to extract multiple features from the display image to obtain multiple image features of the display image containing five different sizes; selecting segmentation frames corresponding to the five different sizes of the multiple image features from preset segmentation frames, and repeatedly selecting the display image based on the selected segmentation frames, using the different selected images as multiple sub-images; wherein the segmentation network is a ResNet50 network and includes an FPN feature pyramid structure, and the multiple image features are multiple image features of different sizes; 生成所述显示图像及多个所述子图分别对应的特征码,并判断预设的数据表中是否存在所述显示图像及多个所述子图分别对应的特征码,其中,所述生成所述显示图像及多个所述子图分别对应的特征码包括:将所述显示图像和所述多个子图压缩为预设尺寸,得到多个压缩图像,并对所述多个压缩图像进行灰度化;计算所述多个压缩图像中每一个像素点的灰度特征值,并将所述灰度特征值组合得到所述显示图像和所述多个子图的特征码,所述灰度特征值用于表示相邻像素点的灰度差异值;The process involves generating feature codes corresponding to the displayed image and the plurality of sub-images, and determining whether the feature codes corresponding to the displayed image and the plurality of sub-images exist in a preset data table. Generating the feature codes for the displayed image and the plurality of sub-images includes: compressing the displayed image and the plurality of sub-images to a preset size to obtain a plurality of compressed images, and converting the plurality of compressed images to grayscale; calculating the grayscale feature value of each pixel in the plurality of compressed images, and combining the grayscale feature values to obtain the feature codes for the displayed image and the plurality of sub-images, wherein the grayscale feature values represent the grayscale difference between adjacent pixels. 根据判断结果获取所述显示图像或多个所述子图包含的操作文本,并将获取到的多个所述操作文本以缓存形式存储在操作文本缓存库中;Based on the judgment result, obtain the operation text contained in the displayed image or multiple sub-images, and store the obtained multiple operation texts in the operation text cache library in a cached form; 接收针对所述交互页面的控制语音,将所述控制语音转化为控制文本,包括:将语音特征向量输入声学模型得到音素信息,将音素信息按单个音、两个音、三个音、四个音的方式划分为多个音素片段,并逐个在预设词库中检索;将在所述词库中检索到的音素片段所对应的文本作为所述控制文本;Receiving control voice for the interactive page and converting the control voice into control text includes: inputting a voice feature vector into an acoustic model to obtain phoneme information; dividing the phoneme information into multiple phoneme segments according to single, two, three, and four sounds, and retrieving each phoneme segment in a preset dictionary; and using the text corresponding to the phoneme segments retrieved in the dictionary as the control text. 确定所述操作文本缓存库中与所述控制文本的匹配度满足匹配条件的操作文本为目标操作文本,以及控制所述交互页面执行所述目标操作文本对应的操作。The system determines the target operation text in the operation text cache library that matches the control text with a matching degree that meets the matching condition, and controls the interactive page to execute the operation corresponding to the target operation text. 2.如权利要求1所述的基于交互页面的语音控制方法,其特征在于,所述判断预设的数据表中是否存在所述显示图像及多个所述子图分别对应的特征码,包括:2. The voice control method based on an interactive page as described in claim 1, characterized in that, determining whether the display image and the feature codes corresponding to the multiple sub-images exist in the preset data table includes: 提取所述显示图像对应的特征码在所述数据表中检索;Extract the feature code corresponding to the displayed image and retrieve it from the data table; 若检索到所述显示图像对应的特征码,则判定所述数据表中存在所述显示图像对应的特征码;If a feature code corresponding to the displayed image is found, it is determined that the feature code corresponding to the displayed image exists in the data table; 若检索不到所述显示图像对应的特征码,则逐一选取所述多个子图对应的特征码在所述数据表中检索,并判断是否能够检索到所有子图对应的特征码;If the feature code corresponding to the displayed image cannot be retrieved, the feature codes corresponding to the multiple sub-images are selected one by one and retrieved in the data table, and it is determined whether the feature codes corresponding to all sub-images can be retrieved. 若能够检索到所有子图对应的特征码,则判定所述数据表中存在所有所述子图对应的特征码;If all feature codes corresponding to the subgraphs can be retrieved, it is determined that all feature codes corresponding to the subgraphs exist in the data table. 若检索不到任一子图对应的特征码,则判定所述数据表中不存在所述显示图像及多个所述子图对应的特征码;If no feature code is found for any sub-image, it is determined that the display image and the feature codes corresponding to the multiple sub-images do not exist in the data table. 若能够检索到部分子图对应的特征码,则判定所述数据表中存在部分所述子图对应的特征码。If the feature codes corresponding to some of the subgraphs can be retrieved, it is determined that the feature codes corresponding to some of the subgraphs exist in the data table. 3.如权利要求2所述的基于交互页面的语音控制方法,其特征在于,所述根据判断结果获取所述显示图像或多个所述子图包含的操作文本,包括:3. The voice control method based on an interactive page as described in claim 2, characterized in that, obtaining the operation text contained in the displayed image or multiple sub-images according to the judgment result includes: 当判定所述数据表中存在所述显示图像对应的特征码时,从所述数据表中提取所述显示图像对应的特征码所对应的文本为所述显示图像包含的操作文本;When it is determined that a feature code corresponding to the displayed image exists in the data table, the text corresponding to the feature code corresponding to the displayed image is extracted from the data table as the operation text contained in the displayed image; 当判定所述数据表中存在所有所述子图对应的特征码时,从所述数据表中提取所有所述子图对应的特征码所对应的文本为所有所述子图包含的操作文本;When it is determined that all the feature codes corresponding to the subgraphs exist in the data table, the text corresponding to all the feature codes corresponding to the subgraphs is extracted from the data table as the operation text contained in all the subgraphs; 当判定所述数据表中存在部分所述子图对应的特征码时,确定不存在于所述数据表的子图为目标图像,根据所述目标图像获取所述操作文本;When it is determined that some of the feature codes corresponding to the sub-images exist in the data table, the sub-images that do not exist in the data table are identified as target images, and the operation text is obtained based on the target images; 当判定所述数据表中不存在所述显示图像及多个所述子图对应的特征码时,确定所述显示图像及多个所述子图为目标图像;When it is determined that the display image and the multiple sub-images do not contain a feature code in the data table, the display image and the multiple sub-images are determined to be the target image; 其中,所述根据所述目标图像获取所述显示图像或多个所述子图包含的操作文本包括:The operation text for obtaining the display image or multiple sub-images based on the target image includes: 利用预设的图像相似度算法计算得到所述数据表中存储的图像与所述目标图像的相似度分值,并判断所述相似度分值是否大于预设阈值;The similarity score between the image stored in the data table and the target image is calculated using a preset image similarity algorithm, and it is determined whether the similarity score is greater than a preset threshold. 当所述相似度分值大于预设阈值,从所述数据表中提取所述目标图像所对应的文本作为所述目标图像包含的操作文本;When the similarity score is greater than a preset threshold, the text corresponding to the target image is extracted from the data table as the operation text contained in the target image; 当所述相似度分值小于或等于预设阈值,对所述目标图像进行文本识别,得到识别文本并将所述识别文本作为所述目标图像包含的操作文本。When the similarity score is less than or equal to a preset threshold, text recognition is performed on the target image to obtain the recognized text, and the recognized text is used as the operation text contained in the target image. 4.如权利要求1所述的基于交互页面的语音控制方法,其特征在于,所述利用预构建的分割网络对所述显示图像进行特征提取,得到所述显示图像的多重图像特征,包括:4. The voice control method based on an interactive page as described in claim 1, characterized in that, the step of extracting features from the displayed image using a pre-constructed segmentation network to obtain multiple image features of the displayed image includes: 利用所述分割网络对所述显示图像进行卷积处理和池化处理,得到池化图像;The segmentation network is used to perform convolution and pooling processing on the displayed image to obtain a pooled image; 对所述池化图像进行全连接处理,得到全连接特征图;The pooled image is processed by a fully connected layer to obtain a fully connected feature map; 对所述全连接特征图进行多尺度的特征提取,得到所述显示图像的多重图像特征。Multi-scale feature extraction is performed on the fully connected feature map to obtain multiple image features of the displayed image. 5.如权利要求1至4中任一项所述的基于交互页面的语音控制方法,其特征在于,所述确定所述操作文本缓存库中与所述控制文本的匹配度满足匹配条件的操作文本为目标操作文本,包括:5. The voice control method based on an interactive page as described in any one of claims 1 to 4, characterized in that, determining the operation text in the operation text cache that satisfies the matching condition with the control text as the target operation text includes: 逐一计算所述操作文本缓存库中的缓存操作文本与所述语音文本的相似度,并判断是否存在大于第一阈值的相似度;Calculate the similarity between each cached operation text in the operation text cache library and the speech text, and determine whether there is a similarity greater than the first threshold. 若存在大于第一阈值的相似度,则在大于阈值的相似度中选取最大的相似度所对应的缓存操作文本作为目标操作文本;If there is a similarity greater than the first threshold, then the cached operation text corresponding to the largest similarity among the similarities greater than the threshold is selected as the target operation text. 若不存在大于第一阈值的相似度,则对所述控制语音进行发音单元识别,根据识别结果确定目标操作文本。If there is no similarity greater than the first threshold, then the control speech is subjected to pronunciation unit recognition, and the target operation text is determined based on the recognition result. 6.一种基于交互页面的基于交互页面的语音控制装置,其特征在于,所述装置包括:6. A voice control device based on an interactive page, characterized in that the device comprises: 图像获取模块,用于获取交互页面的显示图像,对所述显示图像进行图像分割,得到多个子图;所述对所述显示图像进行图像分割,得到多个子图,包括:利用预构建的分割网络对所述显示图像进行多重特征提取,得到所述显示图像的包含五种不同尺寸的多重图像特征;从预设的分割框图中选择与所述五种不同尺寸的多重图像特征分别对应的分割框图,并根据所选择的多个分割框图多次框选所述显示图像,将框选得到的不同图像作为多个子图;其中,所述分割网络为ResNet50网络并包含FPN特征金字塔结构,所述多重图像特征为多个不同尺寸的图像特征;An image acquisition module is used to acquire the display image of the interactive page, and to perform image segmentation on the display image to obtain multiple sub-images. The image segmentation to obtain multiple sub-images includes: extracting multiple features from the display image using a pre-constructed segmentation network to obtain multiple image features of the display image containing five different sizes; selecting segmentation frames corresponding to the five different sizes of the multiple image features from preset segmentation frames, and repeatedly selecting the display image based on the selected segmentation frames, using the different selected images as multiple sub-images; wherein the segmentation network is a ResNet50 network and includes an FPN feature pyramid structure, and the multiple image features are multiple image features of different sizes. 图像文本获取模块,用于生成所述显示图像及多个所述子图分别对应的特征码,并判断预设的数据表中是否存在所述显示图像及多个所述子图分别对应的特征码,其中,所述生成所述显示图像及多个所述子图分别对应的特征码包括:将所述显示图像和所述多个子图压缩为预设尺寸,得到多个压缩图像,并对所述多个压缩图像进行灰度化;计算所述多个压缩图像中每一个像素点的灰度特征值,并将所述灰度特征值组合得到所述显示图像和所述多个子图的特征码,所述灰度特征值用于表示相邻像素点的灰度差异值;根据判断结果获取所述显示图像或多个所述子图包含的操作文本,并将获取到的多个所述操作文本以缓存形式存储在操作文本缓存库中;An image text acquisition module is used to generate feature codes corresponding to the display image and the multiple sub-images, and to determine whether the feature codes corresponding to the display image and the multiple sub-images exist in a preset data table. The generation of feature codes for the display image and the multiple sub-images includes: compressing the display image and the multiple sub-images to a preset size to obtain multiple compressed images, and converting the multiple compressed images to grayscale; calculating the grayscale feature value of each pixel in the multiple compressed images, and combining the grayscale feature values to obtain the feature codes for the display image and the multiple sub-images, where the grayscale feature value represents the grayscale difference between adjacent pixels; and acquiring the operation text contained in the display image or the multiple sub-images according to the determination result, and storing the acquired operation text in a cached form in an operation text cache library. 控制语音获取模块,用于接收针对所述交互页面的控制语音,将所述控制语音转化为控制文本,包括:将语音特征向量输入声学模型得到音素信息,将音素信息按单个音、两个音、三个音、四个音的方式划分为多个音素片段,并逐个在预设词库中检索;将在所述词库中检索到的音素片段所对应的文本作为所述控制文本;The control voice acquisition module is used to receive control voice for the interactive page and convert the control voice into control text, including: inputting the voice feature vector into an acoustic model to obtain phoneme information; dividing the phoneme information into multiple phoneme segments in the manner of single syllable, two syllables, three syllables, and four syllables, and searching for each phoneme segment in a preset dictionary; and using the text corresponding to the phoneme segments retrieved in the dictionary as the control text. 语音控制模块,用于确定所述操作文本缓存库中与所述控制文本的匹配度满足匹配条件的操作文本为目标操作文本,以及控制所述交互页面执行所述目标操作文本对应的操作。The voice control module is used to determine the operation text in the operation text cache that matches the control text as the target operation text, and to control the interactive page to perform the operation corresponding to the target operation text. 7.一种电子设备,其特征在于,所述电子设备包括:7. An electronic device, characterized in that the electronic device comprises: 至少一个处理器;以及,At least one processor; and, 与所述至少一个处理器通信连接的存储器;其中,A memory communicatively connected to the at least one processor; wherein, 所述存储器存储有可被所述至少一个处理器执行的计算机程序,所述计算机程序被所述至少一个处理器执行,以使所述至少一个处理器能够执行如权利要求1至5中任意一项所述的基于交互页面的语音控制方法。The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the voice control method based on an interactive page as described in any one of claims 1 to 5. 8.一种计算机可读存储介质,存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至5中任意一项所述的基于交互页面的语音控制方法。8. A computer-readable storage medium storing a computer program, characterized in that, when the computer program is executed by a processor, it implements the voice control method based on an interactive page as described in any one of claims 1 to 5.
CN202111552851.3A 2021-12-17 2021-12-17 Voice control method, device, equipment and storage medium based on interactive page Active CN114706552B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111552851.3A CN114706552B (en) 2021-12-17 2021-12-17 Voice control method, device, equipment and storage medium based on interactive page

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111552851.3A CN114706552B (en) 2021-12-17 2021-12-17 Voice control method, device, equipment and storage medium based on interactive page

Publications (2)

Publication Number Publication Date
CN114706552A CN114706552A (en) 2022-07-05
CN114706552B true CN114706552B (en) 2026-01-23

Family

ID=82167659

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111552851.3A Active CN114706552B (en) 2021-12-17 2021-12-17 Voice control method, device, equipment and storage medium based on interactive page

Country Status (1)

Country Link
CN (1) CN114706552B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116149596A (en) * 2023-03-13 2023-05-23 合众新能源汽车股份有限公司 Vehicle voice interaction method, system and computer readable medium
CN119668766A (en) * 2025-02-17 2025-03-21 北京视游互动科技有限公司 Method, device and equipment for switching application program interface based on smart TV

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109298806A (en) * 2018-09-21 2019-02-01 杨立群 A kind of long-range quick interface exchange method and device based on Object identifying
CN110968375A (en) * 2018-09-29 2020-04-07 Tcl集团股份有限公司 Interface control method and device, intelligent terminal and computer readable storage medium
CN111383631A (en) * 2018-12-11 2020-07-07 阿里巴巴集团控股有限公司 Voice interaction method, device and system
CN112839261A (en) * 2021-01-14 2021-05-25 海信电子科技(深圳)有限公司 Method for improving voice instruction matching degree and display equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6882974B2 (en) * 2002-02-15 2005-04-19 Sap Aktiengesellschaft Voice-control for a user interface
CN105551488A (en) * 2015-12-15 2016-05-04 深圳Tcl数字技术有限公司 Voice control method and system
CN108287918B (en) * 2018-02-13 2020-07-07 Oppo广东移动通信有限公司 Music playing method and device based on application page, storage medium and electronic equipment
CN111968640B (en) * 2020-08-17 2024-08-13 北京小米松果电子有限公司 Voice control method, voice control device, electronic equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109298806A (en) * 2018-09-21 2019-02-01 杨立群 A kind of long-range quick interface exchange method and device based on Object identifying
CN110968375A (en) * 2018-09-29 2020-04-07 Tcl集团股份有限公司 Interface control method and device, intelligent terminal and computer readable storage medium
CN111383631A (en) * 2018-12-11 2020-07-07 阿里巴巴集团控股有限公司 Voice interaction method, device and system
CN112839261A (en) * 2021-01-14 2021-05-25 海信电子科技(深圳)有限公司 Method for improving voice instruction matching degree and display equipment

Also Published As

Publication number Publication date
CN114706552A (en) 2022-07-05

Similar Documents

Publication Publication Date Title
CN112533051B (en) Barrage information display method, barrage information display device, computer equipment and storage medium
CN115221276B (en) Chinese image-text retrieval model training method, device, equipment and medium based on CLIP
CN113990286B (en) Speech synthesis method, device, equipment and storage medium
WO2022247005A1 (en) Method and apparatus for identifying target object in image, electronic device and storage medium
CN113254654B (en) Model training, text recognition method, apparatus, equipment and medium
CN113420556B (en) Emotion recognition method, device, equipment and storage medium based on multi-mode signals
CN113157739B (en) Cross-modal retrieval methods, devices, electronic equipment and storage media
CN112509554B (en) Speech synthesis method, device, electronic device and storage medium
CN114706552B (en) Voice control method, device, equipment and storage medium based on interactive page
CN114677526A (en) Image classification method, device, equipment and medium
CN116702761A (en) Text error correction method, device, equipment and storage medium
CN119342307A (en) Keyframe-based animation video generation method, device, equipment and storage medium
CN116644208B (en) Video retrieval method, device, electronic equipment and computer readable storage medium
CN115238115B (en) Image retrieval method, device, equipment and storage medium based on Chinese data
CN115525730B (en) Webpage content extraction method and device based on page weighting and electronic equipment
CN116597362A (en) Method, device, electronic equipment and medium for identifying hotspot video segments
CN113704405B (en) Quality inspection scoring method, device, equipment and storage medium based on recorded content
CN113723114A (en) Semantic analysis method, device and equipment based on multi-intent recognition and storage medium
CN118135996A (en) Speech synthesis method, device, equipment and storage medium
CN116701680B (en) Intelligent matching methods, devices, and equipment based on text and images
CN119475079A (en) Knowledge framework automatic generation method, device, computer equipment and storage medium
CN119107540A (en) A pre-training method, device and related products of a medical multimodal model based on RadFM
CN116306656B (en) Entity relation extraction method, device, equipment and storage medium
CN114708581B (en) Image processing method, device, electronic equipment and storage medium
CN116485949A (en) Image-text video method, device and equipment based on multi-modal neural network model

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant