Voice interaction method and device and storage medium

文档序号:1710310 发布日期:2019-12-13 浏览:21次 中文

阅读说明:本技术 一种语音交互方法、装置及存储介质 (Voice interaction method and device and storage medium ) 是由 蔡天琪 邓承 于 2019-08-28 设计创作,主要内容包括:本发明实施例公开了一种语音交互方法、装置及存储介质,其中,所述方法包括:获取用户的地方语音信息;对所述地方语音信息进行处理,得到官方语言;对所述官方语言中是否包含目标产品信息进行判断,得到判断结果;基于所述判断结果、所述用户的特征属性,确定所述用户的操作属性;其中,所述操作属性包括再次操作、操作前的咨询之一;基于所述用户的操作属性,生成推荐信息。(The embodiment of the invention discloses a voice interaction method, a voice interaction device and a storage medium, wherein the method comprises the following steps: acquiring local voice information of a user; processing the local voice information to obtain an official language; judging whether the official language contains target product information or not to obtain a judgment result; determining the operation attribute of the user based on the judgment result and the characteristic attribute of the user; wherein the operation attribute comprises one of re-operation and consultation before operation; and generating recommendation information based on the operation attribute of the user.)

1. a method of voice interaction, the method comprising:

Acquiring local voice information of a user;

Processing the local voice information to obtain an official language;

judging whether the official language contains target product information or not to obtain a judgment result;

determining the operation attribute of the user based on the judgment result and the characteristic attribute of the user; wherein the operation attribute comprises one of re-operation and consultation before operation;

And generating recommendation information based on the operation attribute of the user.

2. the method of claim 1, wherein said processing said local voice information to obtain an official language comprises:

acquiring household registration information of the user;

determining a geographical position corresponding to the household registration information based on the household registration information;

Determining a voice recognition database to be called based on the geographical position corresponding to the household registration information;

And identifying the local voice information based on the voice identification database to obtain an official language.

3. the method according to claim 1, wherein before determining the operation attribute of the user based on the determination result and the characteristic attribute of the user, the method comprises:

Acquiring account information of the user;

Determining a characteristic attribute of the user based on the account information; the characteristic attributes comprise one of a first class and a second class, the first class is used for representing that the operation frequency reaches a preset value, and the second class is used for representing that the operation frequency does not reach the preset value.

4. the method according to claim 3, wherein the determining the operation attribute of the user based on the determination result and the characteristic attribute of the user comprises:

Determining that the characteristic attribute of the user is of a first type and determining that the operation attribute of the user is a re-operation if the judgment result is yes;

and determining that the judgment result is negative, the characteristic attribute of the user is of a second type, and the operation attribute of the user is consultation before operation.

5. The method of claim 4, wherein generating recommendation information based on the operational attributes of the user comprises:

Determining the operation attribute of the user as re-operation, and acquiring target product information contained in the official language;

Acquiring historical operation information of the user associated with the target product information based on the target product information;

And generating first recommendation information based on the historical operation information.

6. the method of claim 4, wherein generating recommendation information based on the operational attributes of the user further comprises:

determining the operation attribute of the user as consultation before operation, and acquiring the intention of the user;

obtaining a product category based on the intention, and acquiring historical operation information of the user and address information of the user, which are associated with the product category, according to the product category;

generating second recommendation information based on the product category, historical operation information of the user associated with the product category, and address information of the user.

7. A voice interaction apparatus, comprising: the device comprises an acquisition unit, a processing unit, a judgment unit, a determination unit and a generation unit; wherein the content of the first and second substances,

the acquisition unit is used for acquiring local voice information of a user;

the processing unit is used for processing the local voice information to obtain an official language;

The judging unit is used for judging whether the official language contains the target product information or not to obtain a judging result;

The determining unit is used for determining the operation attribute of the user based on the judgment result and the characteristic attribute of the user; wherein the operation attribute comprises one of re-operation and consultation before operation;

The generating unit is used for generating recommendation information based on the operation attribute of the user.

8. a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.

9. A voice interaction apparatus, comprising: a processor and a memory for storing a computer program operable on the processor, wherein the processor is operable to perform the steps of the method of any of claims 1 to 6 when the computer program is executed.

Technical Field

The present invention relates to the field of intelligent voice, and in particular, to a voice interaction method, apparatus, and storage medium.

Background

the current information recommendation is performed through specific operation behaviors of a user, for example, various information recommendations are performed through behaviors of searching, browsing and the like of the user. Application scenarios for information recommendation in the form of voice interaction have not yet emerged. For voice interaction, since the accents of users in different places are different, there are many difficulties in recommending information through voice interaction in actual operation.

Disclosure of Invention

In view of this, embodiments of the present invention are expected to provide a voice interaction method, apparatus, and storage medium, which can convert a voice input of a user into an official language, and further generate recommendation information for the official language, thereby implementing information recommendation through voice interaction.

In order to achieve the purpose, the technical scheme of the invention is realized as follows:

The embodiment of the invention provides a voice interaction method, which comprises the following steps:

Acquiring local voice information of a user;

Processing the local voice information to obtain an official language;

Judging whether the official language contains target product information or not to obtain a judgment result;

determining the operation attribute of the user based on the judgment result and the characteristic attribute of the user; wherein the operation attribute comprises one of re-operation and consultation before operation;

And generating recommendation information based on the operation attribute of the user.

In the above scheme, the processing the local voice information to obtain an official language includes:

Acquiring household registration information of the user;

determining a geographical position corresponding to the household registration information based on the household registration information;

determining a voice recognition database to be called based on the geographical position corresponding to the household registration information;

And identifying the local voice information based on the voice identification database to obtain an official language.

in the foregoing solution, before determining the operation attribute of the user based on the determination result and the characteristic attribute of the user, the method includes:

acquiring account information of the user;

determining a characteristic attribute of the user based on the account information; wherein the feature attributes include: the first type is used for representing that the operation frequency reaches a preset value, and the second type is used for representing that the operation frequency does not reach the preset value.

In the foregoing solution, the determining the operation attribute of the user based on the determination result and the feature attribute of the user includes:

determining that the characteristic attribute of the user is of a first type and determining that the operation attribute of the user is a re-operation if the judgment result is yes;

And determining that the judgment result is negative, the characteristic attribute of the user is of a second type, and the operation attribute of the user is consultation before operation.

In the foregoing solution, the generating recommendation information based on the operation attribute of the user includes:

Determining the operation attribute of the user as re-operation, and acquiring target product information contained in the official language;

Acquiring historical operation information of the user associated with the product information based on the target product information;

and generating first recommendation information based on the historical operation information.

In the foregoing solution, the generating recommendation information based on the operation attribute of the user further includes:

Determining the operation attribute of the user as consultation before operation, and acquiring the intention of the user;

Obtaining a product category based on the intention, and acquiring historical operation information of the user and address information of the user, which are associated with the product category, according to the product category;

generating second recommendation information based on the product category, historical operation information of the user associated with the product category, and address information of the user.

The embodiment of the invention also provides a voice interaction device, which comprises: the device comprises an acquisition unit, a processing unit, a judgment unit, a determination unit and a generation unit; wherein the content of the first and second substances,

the acquisition unit is used for acquiring local voice information of a user;

the processing unit is used for processing the local voice information to obtain an official language;

The judging unit is used for judging whether the official language contains the target product information or not to obtain a judging result;

The determining unit is used for determining the operation attribute of the user based on the judgment result and the characteristic attribute of the user; wherein the operation attribute comprises one of re-operation and consultation before operation;

and the generating unit is used for generating recommendation information based on the operation attribute.

Embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements any of the steps of the above-mentioned method.

An embodiment of the present invention further provides a voice interaction apparatus, including: a processor and a memory for storing a computer program operable on the processor, wherein the processor is operable to perform any of the steps of the above method when executing the computer program.

According to the voice interaction method, the voice interaction device and the storage medium, information recommendation is performed by acquiring local voice information of the user, and diversity of information recommendation modes is increased in a voice interaction mode; and considering the incompatibility of the local voice information, the local voice information is processed, after the local voice information is converted into the official language, whether the official language contains the target product information is judged, the operation attribute of the user is determined by combining the judgment result and the characteristic attribute of the user, and then the recommendation information aiming at the user is generated based on the operation attribute of the user. Therefore, the operation attribute of the user is determined by judging the voice information, and the intention of the user can be captured quickly according to the operation attribute of the user, so that the information recommendation efficiency is greatly improved.

drawings

Fig. 1 is a schematic flow chart illustrating a first implementation process of a voice interaction method according to an embodiment of the present invention;

FIG. 2 is a flow chart illustrating the conversion of local voice information into official language according to an embodiment of the present invention;

Fig. 3 is a schematic flow chart illustrating an implementation process of a voice interaction method according to an embodiment of the present invention;

Fig. 4 is a schematic structural diagram of a voice interaction apparatus according to an embodiment of the present invention;

fig. 5 is a schematic diagram of a specific hardware structure of a voice interaction apparatus according to an embodiment of the present invention.

Detailed Description

In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention.

All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

In order to implement recommending information according to voice information, an embodiment of the present invention provides a voice interaction method, as shown in fig. 1, where the method includes:

Step 101, obtaining local voice information of a user.

It should be noted that the voice interaction method may be applied to an information recommendation platform, where the information recommendation platform refers to an information recommendation platform on a server side. The client/terminal side of the information recommendation platform can be attached to instant messaging software, and voice information is acquired through the voice recognition function of the instant messaging software without downloading the client/terminal side software of the independent information recommendation platform; therefore, the operation process of the user using the information recommendation platform can be simplified, and the operation efficiency is improved.

Here, the client of the information recommendation platform may be attached to an instant messaging software in the form of an applet, and a user may perform voice input after logging in the applet of the information recommendation platform.

It should be further noted that the local voice information is dialect, and the local voice information is different according to different geographic locations; the local voice information includes: cantonese, southern Fujian, Hakka, etc.

Here, the local voice information may be obtained by using a user of the information recommendation platform to perform voice input on a terminal-side applet, and after the local voice information is collected by a collection device on the applet of the information recommendation platform, the local voice information is sent to the information recommendation platform, so that the information recommendation platform obtains the local voice information.

And 102, processing the local voice information to obtain an official language.

It should be noted that the official language refers to a formal language common to a country or a certified formal language. The official language is only a relative concept due to different definitions of countries and regional areas, and in the embodiment of the invention, the official language refers to Mandarin and Chinese characters.

It should be noted that, generally, when recognizing local voice information, the information recommendation platform determines the region/province where the user corresponding to the local voice information is located, and deduces the language family to which the local voice information belongs from the region/province information, and then connects to the corresponding database for feature comparison and analysis. For example, Wangzhi is Guangdong and the information recommendation platform will call the speech recognition database to the Guangdong database. However, where the voice information may be more similar to that of the adjacent provinces at the boundary between some provinces and provinces, if the voice information is connected to the voice recognition database of the province, the voice recognition efficiency and accuracy become low; for example, if the user is identified as a northwest Hubei deca dam, and the local speech information of the northwest deca dam is closer to the local speech information of the Henan province, the speech recognition database connected to the Henan province may be more beneficial to the efficiency and accuracy of the recognition.

based on this, the processing the local voice information to obtain the official language includes:

Acquiring household registration information of the user; determining a geographical position corresponding to the household registration information based on the household registration information; determining a voice recognition database to be called based on the geographical position corresponding to the household registration information; and identifying the local voice information based on the voice identification database to obtain an official language.

It should be noted that, in order to prevent the local voice information recognition problem at some region boundaries, it is necessary to determine the information such as the geographical location and the household registration where the user is located, and determine the voice recognition database to be called according to the specific geographical location and the household registration.

here, the household registration information is information of a place of birth; the household registration information can be obtained when the user registers account information on the information recommendation platform. The geographic position corresponding to the household registration information is geographic information corresponding to the place of birth, and the determination of the geographic information is not only the determination of the position, but also the determination of whether the place of birth is located at the junction of the region and the area. For example, suppose the user's residence is a northwest lake deca-weir, and the geographic location corresponding to the deca-weir is the middle part, located in the northwest of the lake, and adjacent to the southern province of the river; suppose the household book of the user is Guangdong Buddha mountain, and the geographic location corresponding to the Buddha mountain is south, is located inside the Guangdong province, and is not adjacent to other provinces.

The determining the geographical location corresponding to the household registration information based on the household registration information may be determining the geographical location corresponding to the household registration information by querying a map after the household registration information is obtained.

Then, after obtaining the geographic location, the determining, based on the geographic location corresponding to the household registration information, the voice recognition database to be invoked may be: judging whether the geographic position is in a boundary zone; determining the region which belongs to the boundary zone, further determining the boundary of which regions the region belongs to, and calling the corresponding voice recognition database according to the determined region; and if the voice recognition data does not belong to the boundary zone, calling a voice recognition database corresponding to the geographic position.

It should be noted that, the above-mentioned determining whether the geographic location is in the boundary zone may be performed by making a circle with the household location as a center and the preset distance as a radius, and when the circle includes other areas, the geographic location is considered to be in the boundary zone; and when other areas are not included in the circle, the geographic position is not considered to be in the boundary zone. Here, the preset radius may be determined as needed, for example, the preset radius is set to 30 km.

the speech recognition database comprises a Guangdong language recognition database, a Minnan language recognition database, a Hakka language recognition database and the like. The various voice recognition databases contain the characteristics of various local voice information, the contents of the local voice information can be determined by comparing and analyzing the characteristics of the obtained local voice information with the voice recognition databases, and the local voice information is converted into corresponding mandarin or character information, so that the information recommendation platform can conveniently perform information recommendation according to the converted official language.

It should be noted that the speech recognition database may be pre-configured in the information recommendation platform. The voice recognition database can store a mapping table, and the corresponding relation between local voice information and official language can be known by inquiring the mapping table. Thus, the local voice information is recognized based on the voice recognition database, and the official language can be obtained by inquiring the mapping table stored in the voice recognition database.

It should be noted that, when the geographic location is at a junction, feature data of all local voice information related to the junction needs to be incorporated into the voice recognition database to be invoked, that is, the voice recognition database to be invoked at this time includes multiple voice recognition databases.

FIG. 2 is a flow chart illustrating the conversion of local voice information into official language according to an embodiment of the present invention; as shown in fig. 2, the method mainly comprises the following steps:

Step 201, acquiring household registration information of a user, and determining a geographical location corresponding to the household registration information.

step 202, judging whether the geographic position is in a boundary zone; if yes, the process proceeds to step 203, and if no, the process proceeds to step 204.

Step 203, calling a voice recognition database of the region to which the geographical position corresponding to the household registration information belongs and the adjacent region;

Step 204, a voice recognition database of the region to which the geographical location corresponding to the household registration information belongs is called.

And step 205, processing the local voice information to obtain the official language.

it should be noted that, in the step 102, the local voice information is processed to obtain the official language, which may also be achieved by constructing a voice recognition model, extracting characteristics of the local voice information of each region by collecting the local voice information of each region, establishing the voice recognition model based on the extracted characteristics, further directly recognizing the obtained local voice information through the established voice recognition model, determining which region the local voice information belongs to, and performing characteristic comparison and analysis by using a corresponding voice recognition database to obtain the official language.

Here, the above-mentioned gathering of local voice information of each region may be performed by collecting 100 voice materials in each city, and ensuring the comprehensiveness of the extracted features through the diversity of samples.

It should be noted that if the direct recognition is implemented by using a speech recognition model, the speech recognition model may be a hybrid acoustic model, a hybrid gaussian model-hidden markov model, or the like.

And 103, judging whether the official language contains the target product information or not to obtain a judgment result.

Here, since the official language corresponding to the local voice information is recognized in the step 102, the official language can be directly recognized through the product recognition model, so that the judgment on whether the official language includes the target product information can be realized.

It should be noted that, for the recognition of the official language, if the official language is in the form of text information, that is, the official language is chinese characters, the construction of the product recognition model may be implemented by extracting keywords related to the target product, such as extracting the name of the target product, and constructing the product recognition model based on the name of the target product. Correspondingly, after the product identification model is obtained, the official language is processed through the product identification model, and a judgment result is output. The processing result may be represented by "yes/no", "1/0", or the like; a "1" means "yes" and a "0" means "no".

If the official language is presented in the form of voice, namely the official language is mandarin, the voice can be converted into characters, and then the judgment result is obtained by processing through the product recognition model.

Here, the converting of the speech into the text may be realized by acquiring a sound waveform of an official language, extracting acoustic features from the sound waveform, converting the acoustic features into factors, and converting the factors into text information. The phonemes are the basic units of human pronunciation. A commonly used english phoneme is a set of 39 phonemes. The commonly used Chinese phoneme is a phoneme set consisting of the initial consonant and the final consonant of the Chinese pinyin.

It should be noted that, since the sound is actually a wave, the sound may be framed; after framing, the audio data becomes many small segments, and then the acoustic feature extraction is performed on the small segments. Common methods for extracting acoustic features include: linear Predictive Coding (LPC), Mel-frequency cepstral coefficients (MC), and the like.

The above-mentioned conversion of the acoustic features into phonemes may be realized by an acoustic model; the acoustic model may be a neural network model composed of a Long Short Term Memory (LSTM) model and a Connected Temporal Classifier (CTC). The conversion of the phoneme to the text information may be performed by obtaining a phoneme sequence of the sound and then converting the phoneme sequence into the text information using a decoding technique such as a language model.

104, determining the operation attribute of the user based on the judgment result and the characteristic attribute of the user; wherein the operation attribute comprises one of re-operation and consultation before operation.

it should be noted that the operation attribute is used to characterize a category corresponding to the user on the information recommendation platform. The re-operation refers to re-using the information recommendation platform, and the consultation before the operation refers to consulting information of the information recommendation platform before the operation. Here, when the information recommendation platform is used for recommending product information, the operation is purchasing a product, the second operation is repurchasing a product, and the consultation before the operation is pre-sale consultation.

Here, the determination of the operation attribute of the user may be determined by the frequency of the user using the information recommendation platform and whether the target product information exists in the local language information of the user. In other words, if the frequency of using the information recommendation platform by the user is high, and the target product information directly exists in the collected local voice data of the user, the user can be considered as a repurchase product. Correspondingly, if the frequency of using the information recommendation platform by the user is low and the target product information does not exist in the collected local voice data of the user, the user can be considered to be just going to consult before sale.

based on this, before determining the operation attribute of the user corresponding to the official language, the frequency of using the information recommendation platform by the user, that is, the operation frequency, needs to be determined, where the operation frequency is represented by the category of the characteristic attribute of the user.

As such, the method comprises: acquiring account information of the user; determining a characteristic attribute of the user based on the account information; wherein the feature attributes include: the first type is used for representing that the operation frequency reaches a preset value, and the second type is used for representing that the operation frequency does not reach the preset value.

it should be noted that, for a user who has performed operations on the information recommendation platform multiple times, the purpose of reusing the information recommendation platform is to buy a buyback more. For the users who use the information recommendation platform for the first time or rarely, the purpose of use is more consultation due to the fact that the use is too little.

It should be further noted that, based on the account information, determining that the characteristic attribute of the user may be operation information corresponding to the account information obtained through the account information of the user; the operation information comprises operation time and operation times; and determining operation frequency based on the operation time and the operation frequency of the operation information, and determining the characteristic attribute of the user based on the operation frequency.

When the information recommendation platform is used for recommending product information, the operation information corresponding to the account information is order information under the account information, the time and the frequency of the user operating on the information recommendation platform can be determined by inquiring the order information of the user, the operation frequency can be determined based on the time and the frequency of the operation, and then the characteristic attribute of the user is determined.

The operation frequency reaching the preset value can be determined according to actual conditions, for example, the feature attribute of the user can be considered as the first category when the operation frequency on the information recommendation platform reaches 3 times per month. Correspondingly, if the number of times is not more than 3, the characteristic attribute of the user is considered to be the second type.

after the judgment of whether the target product information is contained in the official language and the determination of the characteristic attribute of the user are completed, the operation attribute of the user can be determined based on the judgment result and the characteristic attribute of the user. Here, the determining the operation attribute of the user based on the determination result and the characteristic attribute of the user includes:

Determining that the characteristic attribute of the user is of a first type and determining that the operation attribute of the user is a re-operation if the judgment result is yes; and determining that the judgment result is negative, the characteristic attribute of the user is of a second type, and the operation attribute of the user is consultation before operation.

And 105, generating recommendation information based on the operation attribute of the user.

here, since the operation attributes of the users are different, the form and the content of information recommendation are different.

for the case where the operation attribute of the user is the re-operation: generating recommendation information based on the operation attribute, including: determining the operation attribute of the user as re-operation, and acquiring target product information contained in the official language; acquiring historical operation information of the user associated with the product information based on the target product information; and generating first recommendation information based on the historical operation information.

here, the target product information included in the official language is specific product information that the user desires to add; the target product information includes a product name, a brand, a specification, a quantity, a target delivery time, and the like. For the user whose operation attribute is re-operation, since the user is for buyback, the input local voice information of the user after logging in the information recommendation platform includes the product information that the user wants to add. Thus, the contained target product information can be obtained by identifying the official language corresponding to the local voice information of the user.

it should be noted that the historical operation information of the user is information generated by the user performing previous operations on the information recommendation platform. When the information recommendation platform is used for recommending the product information, the historical operation information is historical order information. Based on this, the obtaining of the historical operation information of the user associated with the target product information refers to querying a historical order associated with the target product information from historical orders of the user, and then generating recommendation information according to the historical order.

As an example, assuming that a user has purchased a certain brand of laundry detergent on the information recommendation platform for many times before, when the target product information acquired in the official language of this time is the brand of laundry detergent, the brand of laundry detergent purchased before may be recommended to the user in combination with the user's historical purchase record about the brand of laundry detergent. Here, the first recommendation information is information of the brand of laundry detergent.

it should be further noted that, because the operation attribute of the user is a re-operation, that is, a buyback, while generating the first recommendation information, a recommendation order may be generated based on the first recommendation information, and sent to the user for confirmation; when the user's confirmation is received, the corresponding merchant may be notified to prepare the item.

for the case where the operation attribute of the user is a consultation before operation: generating recommendation information based on the operation attribute of the user, including: determining the operation attribute of the user as consultation before operation, and acquiring the intention of the user; based on the intention, obtaining a product category; acquiring historical operation information of the user and address information of the user, which are associated with the product category, based on the product category; generating second recommendation information based on the product category, historical operation information of the user associated with the product category, and address information.

It should be noted that the intention of the user refers to the purpose of the user to use the information recommendation platform. After logging in the information recommendation platform, the input local voice information contains the intention of the user, and the interested product category of the user can be determined through the intention of the user.

Here, the obtaining of the user's intention may be implemented based on the type of official language corresponding to the user's local voice information and the included keywords; when the type of the official language is identified as one of a question sentence or a demand sentence, and the question sentence comprises keywords such as 'can recommend … to me', and the demand sentence comprises keywords such as 'i want …', the intention of the user is considered to be that a certain product is expected to be recommended.

here, generally speaking, the word behind the keyword that "can recommend … to me" in the question sentence is the product category, and correspondingly, the word behind the keyword that "i want …" in the requirement sentence is the product category.

Here, the above-mentioned obtaining of the product category based on the intention may also be obtained by recognizing an official sentence and extracting a keyword in the official sentence. For example, keywords of the product category are extracted, a keyword recognition model is constructed based on the extracted keywords, and the official language is processed through the constructed keyword recognition model to determine the product category. The details of the extraction process are not repeated herein.

after the product category is obtained, recommendation can be realized by combining historical operation information of the user associated with the product category and address information of the user. Here, the historical operation information of the user associated with the product category refers to that historical operation information associated with the product category is inquired in a historical order of the user.

Here, when there is historical operation information related to a product category in the historical operation information of the user, store information, brand information, or product information in the historical operation information of the user related to the product category may be recommended to the user.

it should be noted that, because the operation attribute of the user is consultation before operation, that is, the operation frequency of the user on the information recommendation platform is low, the number of the obtained historical operation information of the user is small, in the actual operation, the historical operation information associated with the product category is probably not obtained, and at this time, the address information of the user can be further obtained; and recommending information through the acquired address information.

Here, recommending store information related to a product category closer to the user address information by address information can be recommended to the user. Because of the recommendation implemented by distance, the user can enjoy convenient and fast service.

As an example, when the obtained product category is laundry detergent, further obtaining a historical order of a user associated with the laundry detergent and address information of the user; recommending product information in the historical order associated with the laundry detergent to the user when the historical order associated with the laundry detergent can be found in the historical order of the user; when the historical order associated with the laundry detergent cannot be found in the historical orders of the user, further acquiring the address information of the user; recommending the laundry detergent in the store information which is closer to the address information and sold with the laundry detergent to the user.

Further, the recommendation information may be displayed in a recommendation list, but may also be in other forms, such as a text information form.

The recommendation list can be displayed in a sorting mode according to unit parameters, total storage quantity, distance from the address information of the user, total operation times and historical operation frequency of the user.

Here, the display of the order by the unit parameter means that the order is displayed with the height of the unit parameter. Taking the recommended operation of the products as an example, the products of the same type may be displayed in order of the price.

The display of sorting by total number of stores is sorting by the size of the number of stores.

the display of sorting by distance from the address information of the user is sorting by distance from the address information of the store to the address information of the user.

The sorting display by the total operation times is sorting by the total operation times of the target product of the user; taking the recommended operation of the products as an example, the products are sorted according to the total sales volume of the target products of the user.

the sorting display according to the historical operation frequency of the user refers to sorting display according to the historical operation frequency of the user on a certain product; taking the product recommendation operation as an example, the historical purchase times of the user are used for sorting and displaying.

It should be noted that the recommendation list is displayed in an order according to unit parameters, and includes: receiving the unit parameter interval selected by the user; and based on the selected unit parameter interval, sorting and displaying the unit parameters in the unit parameter interval according to the size of the unit parameters.

when the sorting display is performed at a distance from the address information of the user, the sorting display may be performed in combination with the total number of operations of the store. For example, when two stores are the same distance from the address information of the user, the stores may be sorted according to the total number of operations of the stores. Here, taking the product recommending operation as an example, when the distances are the same, and when the total sales volume of the target products of the shop that also sells a certain product is larger than that of another shop, the shop is arranged in front of the other shop.

According to the voice interaction method provided by the embodiment of the invention, information recommendation is carried out by acquiring local voice information of the user, and the diversity of information recommendation modes is increased in a voice interaction mode; and considering the incompatibility of the local voice information, the local voice information is processed, after the local voice information is converted into the official language, whether the official language contains the target product information is judged, the operation attribute of the user is determined by combining the judgment result and the characteristic attribute of the user, and then the recommendation information aiming at the user is generated based on the operation attribute of the user. Therefore, the operation attribute of the user is determined by judging the voice information, and the intention of the user can be captured quickly according to the operation attribute of the user, so that the information recommendation efficiency is greatly improved.

An embodiment of the present invention provides a voice interaction method, and fig. 3 is a schematic diagram illustrating an implementation flow of the voice interaction method provided in the embodiment of the present invention, as shown in fig. 3, the method mainly includes the following steps:

and 301, acquiring local voice information, and recognizing the local voice information to obtain official language.

Step 302, account information of the user is acquired, and operation frequency of the user is determined based on the account information.

step 303, judging whether the operation frequency of the user reaches a preset value; if yes, go to step 304; if not, go to step 306.

Step 304, judging whether the official language contains the target product information; if yes, go to step 305; if not, go to step 306.

and 305, determining the operation attribute of the user as the operation again, and finishing the corresponding operation.

step 306, judging whether the official language is an interrogative sentence; if yes, go to step 307; if not, go to step 308.

Step 307, judging whether the official language contains the product category; if yes, go to step 309; if not, go to step 310.

Step 308, judging whether the official language is a requirement statement; if yes, go to step 307; if not, the flow is ended.

Step 309, determining the operation attribute of the user as the consultation before the operation, and completing the corresponding operation.

Step 310, calling other modules to execute processing; and ending the flow.

According to the voice interaction method provided by the embodiment of the invention, information recommendation is carried out by acquiring local voice information of the user, and the diversity of information recommendation modes is increased in a voice interaction mode; and considering the incompatibility of the local voice information, the local voice information is processed, after the local voice information is converted into the official language, whether the official language contains the target product information is judged, the operation attribute of the user is determined by combining the judgment result and the characteristic attribute of the user, and then the recommendation information aiming at the user is generated based on the operation attribute of the user. Therefore, the operation attribute of the user is determined by judging the voice information, and the intention of the user can be captured quickly according to the operation attribute of the user, so that the information recommendation efficiency is greatly improved.

based on the same inventive concept of the above embodiments, an embodiment of the present invention provides a voice interaction apparatus, and fig. 4 is a schematic structural diagram of a voice interaction apparatus 400 provided in an embodiment of the present invention, as shown in fig. 4, the voice interaction apparatus 400 includes: an acquisition unit 401 unit, a processing unit 402 unit, a judgment unit 403, a determination unit 404 and a generation unit 405; wherein the content of the first and second substances,

The acquiring unit 401 is configured to acquire local voice information of a user;

The processing unit 402 is configured to process the local voice information to obtain an official language;

The judging unit 403 is configured to judge whether the official language includes the target product information, so as to obtain a judgment result;

the determining unit 404 is configured to determine an operation attribute of the user based on the determination result and the feature attribute of the user; wherein the operation attribute comprises one of re-operation and consultation before operation; the generating unit 405 is configured to generate recommendation information based on the operation attribute of the user.

it should be noted that, the processing unit 402 is further configured to obtain household registration information of the user; determining a geographical position corresponding to the household registration information based on the household registration information; determining a voice recognition database to be called based on the geographical position corresponding to the household registration information; and identifying the local voice information based on the voice identification database to obtain an official language.

it should be noted that the voice interaction apparatus 400 includes a characteristic attribute determining unit, where the characteristic attribute determining unit is configured to obtain account information of the user; determining a characteristic attribute of the user based on the account information; wherein the feature attributes include: the first type is used for representing that the operation frequency reaches a preset value, and the second type is used for representing that the operation frequency does not reach the preset value.

It should be further noted that the determining unit 404 is further configured to determine that the feature attribute of the user is of the first type and determine that the operation attribute of the user is a re-operation if the determination result is yes; and determining that the judgment result is negative, the characteristic attribute of the user is of a second type, and the operation attribute of the user is consultation before operation.

The generating unit 405 includes a first generating unit and a second generating unit; the first generating unit is used for determining that the operation attribute of the user is a re-operation and acquiring target product information contained in the official language; acquiring historical operation information of the user associated with the target product information based on the target product information; and generating first recommendation information based on the historical operation information.

the second generating unit is used for determining the operation attribute of the user as consultation before operation and acquiring the intention of the user; obtaining a product category based on the intention, and acquiring historical operation information of the user and address information of the user, which are associated with the product category, according to the product category; generating second recommendation information based on the product category, historical operation information of the user associated with the product category, and address information of the user.

It should be noted that, because the principle of the voice interaction apparatus 400 for solving the problem is similar to the voice interaction method, the specific implementation process and the implementation principle of the voice interaction apparatus 400 can be referred to the method and the implementation process, and repeated details are not repeated.

the voice interaction device provided by the embodiment of the invention carries out information recommendation by acquiring local voice information of a user, and increases the diversity of information recommendation modes in a voice interaction mode; and considering the incompatibility of the local voice information, the local voice information is processed, after the local voice information is converted into the official language, whether the official language contains the target product information is judged, the operation attribute of the user is determined by combining the judgment result and the characteristic attribute of the user, and then the recommendation information aiming at the user is generated based on the operation attribute of the user. Therefore, the operation attribute of the user is determined by judging the voice information, and the intention of the user can be captured quickly according to the operation attribute of the user, so that the information recommendation efficiency is greatly improved.

The components in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware or a form of a software functional module.

Based on the understanding that the technical solution of the embodiments of the present invention essentially or a part of the technical solution contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the method of the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.

Accordingly, embodiments of the present invention provide a computer storage medium storing a computer program that, when executed by at least one processor, performs the steps of the above-described embodiments.

Referring to fig. 5, a specific hardware structure of a voice interaction apparatus 500 provided in an embodiment of the present invention is shown, including: a network interface 501, a memory 502, and a processor 503; the various components are coupled together by a bus system 504. It is understood that the bus system 504 is used to enable communications among the components. The bus system 504 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 504 in fig. 5.

In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.

The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.

The methods disclosed in the several method embodiments provided in the present application may be combined arbitrarily without conflict to obtain new method embodiments.

Features disclosed in several of the product embodiments provided in the present application may be combined in any combination to yield new product embodiments without conflict.

The features disclosed in the several method or apparatus embodiments provided in the present application may be combined arbitrarily, without conflict, to arrive at new method embodiments or apparatus embodiments.

The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

17页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:语音流处理方法和装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!