A method, system and electronic device for triggering a lottery with voice

The voice-triggered lottery method solves the problem of low activity due to users needing to manually trigger the lottery, achieves a convenient lottery experience and prize distribution, and improves user participation.

CN112652307BActive Publication Date: 2024-10-01BEIJING BORUITONGYUN CULTURE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011405720.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-02
Publication Date
2024-10-01
Estimated Expiration
2040-12-02

AI Technical Summary

Technical Problem

Existing activity draws require users to manually trigger the draw, and the entrance to the draw is difficult to discover and remember, resulting in low user activity.

Method used

Provide a voice-triggered lottery method. By receiving and processing the user's voice information, it determines whether it matches the preset lottery password. If it matches, it extracts the corresponding activity information for the lottery, and improves the recognition efficiency and accuracy through denoising processing and volume filtering. , dynamically adjust the probability of winning to ensure prize distribution.

Benefits of technology

It improves user activity and stickiness, simplifies the lottery process, avoids the need for users to manually find the lottery entrance, enhances the convenience and flexibility of the lottery, and ensures that prizes can be distributed in a timely manner.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112652307B_ABST
    Figure CN112652307B_ABST
Patent Text Reader

Abstract

The present invention relates to a voice-triggered lottery method, system and electronic device, comprising receiving and processing user voice information to obtain text information; judging whether the text information matches a preset lottery password in a cache database; when the text information matches the preset lottery password, extracting preset activity information corresponding to the preset lottery password to conduct a lottery. The user triggers the lottery by voice, avoiding the step that the user needs to first find the lottery activity entrance and then manually trigger the lottery activity, making the lottery more convenient, thereby facilitating improving user activity and user stickiness.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information processing technology, and in particular to a method, system and electronic device for triggering a lottery with voice. Background Art

[0002] Artificial Intelligence (AI) is a new technical science that studies and develops theories, methods, technologies and application systems for simulating, extending and expanding human intelligence, while intelligent speech technology is the realization of human-machine language communication. Intelligent speech technology includes speech recognition technology and speech synthesis technology. With the development of information technology, intelligent speech technology has become the most convenient and effective means for people to obtain information and communicate.

[0003] In this era of information explosion, many applications and platforms use event draws to attract customers and increase interaction. Although artificial intelligence technology can already help people communicate and obtain information, current event draws often require users to manually trigger the draw entrance before starting the draw. However, since a page is filled with a lot of information, it is often difficult for users to find and remember the event entrance of the draw event information, which in turn makes the user activity of the draw event low. Summary of the invention

[0004] In order to overcome the problem that lottery information in existing lottery activities needs to be manually triggered by users, lottery activity entrances are not easy to be discovered and remembered by users, resulting in low user activity, the present invention provides a voice-triggered lottery method, system and electronic device.

[0005] In a first aspect, in order to solve the above technical problems, the present invention provides a voice-triggered lottery method, comprising:

[0006] Receive and process user voice information to obtain text information;

[0007] Determining whether the text information matches a preset lottery password in a cache database;

[0008] When the text information matches the preset lottery password, the preset activity information corresponding to the preset lottery password is extracted to conduct a lottery.

[0009] The beneficial effect of the voice-triggered lottery method provided by the present invention is that it solves the problem that the lottery information in the existing activity lottery needs to be manually triggered by the user, and the lottery activity entrance is not easy to be found and remembered by the user, resulting in low user activity. The user triggers the lottery by voice, avoiding the step that the user needs to first find the lottery activity entrance and then manually trigger the lottery activity, making the lottery more convenient, which is conducive to improving user activity and user stickiness.

[0010] On the basis of the above technical solution, a voice-triggered lottery method of the present invention can also be improved as follows.

[0011] Further, the processing of the user voice information to obtain text information includes:

[0012] The voice information is subjected to denoising to obtain intermediate voice information, and it is determined whether the volume of the intermediate voice information is between a first preset volume value and a second preset volume value. If so, the intermediate voice information is converted into the text information.

[0013] The beneficial effect of adopting the above further scheme is: since the user's environment is diverse and complex, before converting the user's voice information into text information, the voice information affected by external interference is denoised, and the voice information is screened according to the volume, which can make the subsequent recognition of the voice information more efficient and accurate.

[0014] Further, the receiving user voice information includes:

[0015] If the pause time of the user's input voice is less than or equal to the preset time interval, continue to receive the voice;

[0016] If the pause time of the user input voice is greater than the preset time interval, the voice reception is stopped to obtain the voice information.

[0017] The beneficial effect of adopting the above further scheme is: by setting a preset time interval for receiving user voice input, incomplete voice information caused by discontinuous user voice input can be avoided to a certain extent, thereby making the subsequent recognition of voice information more efficient and accurate.

[0018] Furthermore, before receiving and processing the user voice information, the method further includes:

[0019] The preset lottery password is created and the preset activity information is set according to the first user's needs, and the preset lottery password is associated with the preset activity information.

[0020] The beneficial effect of adopting the above further scheme is that the preset lottery password and preset activity information can be created and set according to specific user needs, so that the activity lottery information can be more flexible and user-friendly, thereby further improving user activity and user stickiness.

[0021] Further, associating the preset lottery password with the preset activity information includes:

[0022] According to the preset activity time in the preset activity information, when it is queried and determined that all lottery passwords in the cache database within the preset activity time do not conflict with the preset lottery password, then,

[0023] A prompt is given that the creation of the lottery password is successful, and the preset lottery password and the preset activity information are associated, the associated preset lottery password and the preset activity information are stored in the cache database, and the cache validity period of the preset lottery password and the preset activity information is set according to the preset activity time.

[0024] Furthermore, it also includes:

[0025] If any lottery password in the cache database within the preset activity time conflicts with the preset lottery password, a password conflict prompt is displayed;

[0026] When the administrator confirms to modify the preset lottery password, the preset lottery password is re-created, and the newly created preset lottery password is associated with the preset activity information;

[0027] When the manager confirms that the preset lottery password will not be modified, a prompt is given that the conflicting lottery password is successfully created, and the cache database is queried and deleted for the expired activity information corresponding to the preset lottery password, and the cache validity period of the preset lottery password is modified to the latest end time of all remaining activity information corresponding to the preset lottery password in the cache database, and the preset activity information after the modified cache validity period is stored in the cache database.

[0028] The beneficial effect of adopting the above further scheme is: by querying all the lottery passwords in the cache database that are within the same time as the preset activity time of the preset activity information, and judging whether all the lottery draws conflict with the preset lottery passwords, it is convenient for the management personnel to manage the preset lottery passwords. When there is no conflict, the lottery password is successfully created. When a conflict occurs, you can choose to modify the preset lottery password, or you can choose not to modify it and keep the conflicting password. At the same time, the cache validity period of the preset lottery password and the preset activity information is set according to the preset activity time, and the system can automatically clear the expired lottery password and activity information, so that it can further facilitate the management personnel to manage the lottery password and activity information.

[0029] Furthermore, it also includes:

[0030] The preset activity information also includes a first preset number of draws, and the preset activity time includes a first preset moment and a second preset moment. Within the time range from the first preset moment to the second preset moment, if the number of draws triggered by user voice is less than or equal to the first preset number of draws, the winning probability is adjusted so that all prizes can be distributed to users within the preset activity time.

[0031] The beneficial effect of adopting the above further scheme is: by implementing dynamic adjustment of the winning probability, it is possible to avoid the situation where the user does not participate in the lottery enough times and not all prizes can be drawn due to the need to re-enter the password due to incorrect voice input or verification failure, which will take a certain amount of time. At the same time, adjusting the winning probability in real time can avoid the subjectivity of human adjustment and save the complicated manual operation process.

[0032] Furthermore, it also includes:

[0033] Modify any activity information in the cache database according to the second user's needs to obtain modified activity information, query all cached lottery passwords corresponding to the modified activity information from the cache database, and delete the activity information associated with all cached lottery passwords;

[0034] All cached lottery passwords are associated with the modified activity information.

[0035] The beneficial effect of adopting the above further scheme is that the administrator can modify any activity information in the cache database at any time according to user needs, and can update the activity information in real time, thereby making it convenient for the administrator to manage while making the lottery activity more flexible and real-time.

[0036] Furthermore, it also includes:

[0037] When the text information does not match the preset lottery password, the server performs voice interaction with the user.

[0038] The beneficial effect of adopting the above further scheme is: when the text information converted from the voice information input by the user does not match the preset lottery password, the artificial intelligence assistant on the server side can interact with the user by voice. Among them, the artificial intelligence assistants include Xiaotuo, Xiaodu, Xiaoai, Xiaoju, Xiaona, etc. By having artificial intelligence assistants communicate with users and exchange daily knowledge, the user experience can be improved, thereby further improving user activity and stickiness.

[0039] In a second aspect, the present invention provides a voice-triggered lottery system, including a receiving and identifying module, a matching module and an extracting module.

[0040] The receiving and identifying module is used to receive and process user voice information to obtain text information;

[0041] The matching module is used to determine whether the text information matches the preset lottery password;

[0042] The extraction module is used to extract the activity information corresponding to the preset lottery password when the text information matches the preset lottery password, so as to conduct a lottery.

[0043] The beneficial effect of the voice-triggered lottery system provided by the present invention is that it solves the problem that lottery information in existing activity lotteries needs to be manually triggered by users, and the lottery activity entrance is not easy to be found and remembered by users, resulting in low user activity. Users trigger the lottery by voice, avoiding the step that users need to first find the lottery activity entrance and then manually trigger the lottery activity, which is conducive to improving user activity and user stickiness.

[0044] In a third aspect, the present invention provides an electronic device comprising a memory, a processor, and a program stored in the memory and running on the processor, wherein the processor implements the steps of a voice-triggered lottery method as described above when executing the program. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0046] Figure 1 A flow chart of a voice-triggered lottery drawing method according to an embodiment of the present invention;

[0047] Figure 2 A schematic diagram of the structure of a voice-triggered lottery system according to an embodiment of the present invention;

[0048] Figure 3 The figure is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0049] The following examples are provided to further explain and supplement the present invention and do not constitute any limitation to the present invention.

[0050] For ease of understanding, the terms involved in the embodiments of the present application are explained below:

[0051] Client, or user end, refers to a program that corresponds to the server and provides local services to customers. Except for some applications that only run locally, it is generally installed on an ordinary client and needs to cooperate with the server to run. The backend management system refers to a management system that manages, publishes, and maintains the website pages displayed by the client. It can separate the content (text, pictures, etc.) of a website from the components of the website, connect various pages together, and control the display of the pages. In the present invention, the server serves the client and the backend management system, and some functions and operations of the client and the backend management system are completed and implemented through the server.

[0052] The voice-triggered lottery method according to an embodiment of the present invention is described below with reference to the accompanying drawings.

[0053] like Figure 1 As shown, a voice-triggered lottery method according to an embodiment of the present invention comprises the following steps:

[0054] S2, receiving and processing user voice information to obtain text information;

[0055] S3, determining whether the text information matches the preset lottery password in the cache database;

[0056] S4. When the text information matches the preset lottery password, extract the preset activity information corresponding to the preset lottery password to conduct a lottery.

[0057] After the lottery is completed, the server returns the lottery results to the client, and the client displays the lottery results to the user.

[0058] Preferably, before receiving and processing the user voice information and obtaining the text information, S2 further includes:

[0059] S1. Create the preset lottery password and set the preset activity information according to the first user's needs, and associate the preset lottery password with the preset activity information.

[0060] For example, the S1 may specifically be:

[0061] Administrators use the backend management system to create and set up the following based on the needs of the first user:

[0062] Preset lottery password K0: start the lottery;

[0063] Preset event information H0: Free draw of water cups, the preset event time is November 01, 2020 - November 15, 2020;

[0064] The preset activity information also includes information such as prize pictures and prize redemption methods. After creating and setting the preset lottery password and preset activity information, the preset lottery password can also be checked to see if it conflicts with the lottery password in the cache database. There are mainly two situations:

[0065] (1) There is no conflict in the preset lottery password

[0066] After the administrator completes the creation of the preset lottery password and the setting of the preset activity information, the backend management system uploads the preset lottery password and the preset activity information to the server; after the server receives the preset lottery password and the preset activity information, the server queries the cache database for all activity information with activity time between November 01, 2020 and November 15, 2020, and obtains the following activity information:

[0067] H1: Draw a half-price burger;

[0068] H2: Free blind box draw;

[0069] The server further queries the lottery passwords corresponding to H1 and H2 in the cache database:

[0070] The lottery password K1 corresponding to H1: I want a half-price hamburger;

[0071] H2's corresponding lottery code K2: Start drawing blind boxes;

[0072] The server determines through the cache database that the lottery password "K1: I want a half-price hamburger" does not conflict with the preset lottery password "K0: Start lottery";

[0073] The server determines through the cache database that the lottery password "K2: Start drawing blind boxes" does not conflict with the preset lottery password "K0: Start drawing lottery";

[0074] At this time, the server queries and determines that all the lottery passwords in the cache database within the preset activity time do not conflict with the preset lottery password, then the server sends a message of "successful creation of lottery password" to the background management system, and the background management system prompts the administrator "successful creation of lottery password" on the lottery password creation page. At the same time, the server associates the preset lottery password "K0: Start lottery" with the preset activity information "H0: Free draw of water cup" through the cache database, and stores the associated preset lottery password K0 and preset activity information H0 in the cache database.

[0075] The cache validity period of the preset lottery password and the preset activity information can also be set according to the preset activity time. In this embodiment, the cache validity period of the preset lottery password K0 and the preset activity information H0 is until November 15, 2020.

[0076] (2) The preset lottery password conflicts

[0077] The server queries the cache database for all activity information between November 01, 2020 and November 15, 2020, and obtains the following activity information:

[0078] H3: Win a free mobile phone;

[0079] H4: Win half-price Bluetooth headphones;

[0080] H5: Get a free mouse;

[0081] The server further queries the lottery passwords corresponding to H1 and H2 in the cache database:

[0082] H3 corresponding to the lottery password K3: start the lottery;

[0083] The lottery code corresponding to H4 is K4: start the lottery;

[0084] The lottery code corresponding to H5 is K5: I am going to start the lottery;

[0085] The server determines through the cache database that the lottery password "K3: Start lottery" conflicts with the preset lottery password "K0: Start lottery";

[0086] The server determines through the cache database that the lottery password "K4: Start lottery" conflicts with the preset lottery password "K0: Start lottery";

[0087] The server determines through the cache database that the lottery password "K5: I'm going to start the lottery" does not conflict with the preset lottery password "K0: Start the lottery";

[0088] At this time, the server queries and determines that the lottery passwords K3 and K4 in the cache database conflict with the preset lottery password. Then, the server sends a message of "lottery password conflict" to the background management system, and the background management system prompts the administrator of "lottery password conflict" on the lottery password creation page:

[0089] ① When the administrator confirms to modify the preset lottery password: the administrator recreates the preset lottery password K0 through the background management system according to the needs of the first user.

[0090] The preset lottery password K0: Start drawing the water cup;

[0091] After recreating the preset lottery password K0, repeat the above query and determine whether there is a conflict. If the newly created preset lottery password K0 does not conflict, execute the step described in (1). If the newly created preset lottery password K0 conflicts, execute the step described in (2).

[0092] ② When the administrator confirms that he does not want to modify the preset lottery password, the lottery password creation page of the background management system prompts the administrator that "the conflict lottery password has been created successfully". At the same time, the background management system uploads the information of "the conflict lottery password has been created successfully" to the server.

[0093] After receiving the information, the server queries and deletes the expired activity information corresponding to the preset lottery password in the cache database. It can also modify the cache validity period of the preset lottery password to the latest end time of all remaining activity information corresponding to the preset lottery password in the cache database. Assume that it is November 1, 2020, and the activity time of H3 in this embodiment is October 20, 2020-October 28, 2020, which has expired and can be deleted; the activity time of H4 is November 1, 2020-November 20, 2020, which has not expired and ends later than the preset activity information H0, so the cache validity period of the preset activity information H0 is set to end on November 20, 2020, and then the preset activity information after modifying the cache validity period is stored in the cache database.

[0094] In addition, after the user inputs the lottery password by voice, if the server detects that the lottery password entered by the user is a conflicting password, that is, the same password has different activities, a pop-up window will pop up on the client to allow the user to select an activity to participate in the lottery.

[0095] By querying all the lottery passwords in the cache database that are within the same time as the preset activity time of the preset activity information, and judging whether all the lottery draws conflict with the preset lottery passwords, it is convenient for the administrator to manage the preset lottery passwords. When there is no conflict, the lottery password is successfully created. When there is a conflict, you can choose to modify the preset lottery password, or you can choose not to modify it and keep the conflicting password. At the same time, the cache validity period of the preset lottery password and the preset activity information is set according to the preset activity time. The system can automatically clear the expired lottery password and activity information, which can further facilitate the management of the lottery password and activity information by the administrator.

[0096] In addition, in addition to the administrator creating the preset lottery password through the backend management system, the administrator sends the preset lottery password information to the server through the backend management system. The server generates the preset lottery password through a preset password generation algorithm, and then caches the preset lottery password and preset activity information into the cache database.

[0097] Preferably, the receiving of user voice information in S2 specifically includes:

[0098] S20, if the pause time of the user input voice is less than or equal to the preset time interval, continue to receive the voice;

[0099] If the pause time of the user input voice is greater than the preset time interval, the voice reception is stopped to obtain the voice information.

[0100] The preset time interval t1 can be set to 2 seconds. Assume that the preset lottery password K0 is "Start Lottery". When the client receives the user's voice information, the user pauses when inputting the word "start" in the voice, and the pause time is t, then:

[0101] (1) t≤t1: the client continues to receive the user's voice input;

[0102] (2) t>t1: the client stops receiving the voice input by the user, and the voice input by the user that has been received forms the voice information.

[0103] The preset time interval can be set by the administrator according to the actual situation, or can be automatically set by the server through artificial intelligence technology. By setting the preset time interval for receiving the user's voice input, the incomplete voice information caused by the discontinuous user voice input can be avoided to a certain extent, so that the efficiency and accuracy of the subsequent voice information recognition are higher.

[0104] Preferably, the processing of the user voice information to obtain text information in S2 specifically includes:

[0105] The voice information is subjected to denoising to obtain intermediate voice information, and it is determined whether the volume of the intermediate voice information is between a first preset volume value and a second preset volume value, and if so, the intermediate voice information is converted into the text information. If the volume of the intermediate voice information is not between the first preset volume value and the second preset volume value, it means that the volume of the voice information input by the user is too low or too high, and needs to be re-entered.

[0106] In addition, an intermediate volume preset value can be set. When the volume of the voice information input by the user is greater than the intermediate volume preset value and less than the second volume preset value, the probability of the user winning the prize will increase. The intermediate volume preset value, the first volume preset value and the second volume preset value can be set by the management personnel according to the actual situation, or can be automatically set reasonably by the server through artificial intelligence technology.

[0107] Since the user's environment is diverse and complex, before converting the user's voice information into text information, the voice information affected by external interference is denoised and the voice information is screened according to the volume, which can make the subsequent recognition of the voice information more efficient and accurate.

[0108] Preferably, it also includes:

[0109] S5. When the text information does not match the preset lottery password, the server performs voice interaction with the user.

[0110] When the text information does not match the preset lottery password, the artificial intelligence assistant on the server side can interact with the user through voice. Among them, the artificial intelligence assistants include Xiaotuo, Xiaodu, Xiaoai, Xiaoju, Xiaona, etc. By having the artificial intelligence assistant communicate with the user and exchange daily knowledge, the user experience can be enhanced, thereby further improving the user's activity and stickiness.

[0111] Preferably, it also includes:

[0112] The preset activity information also includes a first preset number of draws, and the preset activity time includes a first preset moment and a second preset moment. Generally speaking, the preset activity time is certain, that is, the preset activity is time-limited. For example, the preset activity time is 15:00-17:00 on December 1, 2020, the first preset moment is 15:00 on December 1, 2020, and the second preset moment is 15:15 on December 1, 2020. During the time range from 15:00-15:15 on December 1, 2020, that is, from the first preset moment to the second preset moment, due to the user inputting voice and the lottery password input error or verification failure, it will take a certain amount of time to re-enter the password, resulting in too few times for the user to participate in the lottery, that is, the number of times the user voice triggers the lottery is less than or equal to the first preset number of draws, the following method can be used to adjust the probability of winning so that the prizes can be distributed in time to achieve better activity effects, specifically:

[0113] ①According to the formula Determine the initial number of vacancies, where ω is the initial number of vacancies, N min is the minimum number of participants, N max is the maximum number of participants, μ is the number of times each person is scheduled to participate;

[0114] ② Take the product of the minimum number of participants and the scheduled number of participants per person as the number of prize digits; take the number of prize digits as columns and the initial number of empty digits as rows to construct a lottery data model, where the number of prize digits is greater than or equal to the actual total number of prizes;

[0115] ③ Setting a preset time, counting the number of participations in the lottery triggered by user voice within the preset time, and calculating the vacancy scaling ratio according to the number of participations in the lottery within the preset time; adjusting the number of rows in each row of the lottery data model to a value corresponding to the vacancy scaling ratio;

[0116]

[0117] Where γ is the vacancy scaling ratio, ρ is the number of lottery draws within a preset time, and N min is the minimum number of participants, μ is the scheduled number of participants per person, t1 is the number of hours per day, and t2 is the number of minutes per hour.

[0118] ④ Obtain the total number of times all current users have participated in the lottery triggered by voice, and calculate the row index value and column index value based on the total number of times they have participated in the lottery;

[0119] Find the number of rows of the adjusted lottery data model according to the row index value, and find the number of columns of the adjusted lottery data model according to the column index value; and use the result of the corresponding position of the row number and the column number as the lottery result;

[0120] The row index Column Index

[0121] x is the row index, y is the column index, and κ is the total number of lottery participations.

[0122] In addition, the preset activity information also includes a second preset number of draws. If the cumulative number of times the user's voice triggers participation in the draw within the time range from the first preset moment to the second preset moment is less than the second preset number of draws, the winning probability can be adjusted by the above-mentioned method of adjusting the winning probability so that all prizes can be distributed to users within the preset activity time.

[0123] The winning probability can also be adjusted in real time and dynamically within the preset activity time through the above-mentioned method of adjusting the winning probability, thereby avoiding the uneven distribution of prizes due to the probability of drawing the lottery being too large or too small. At the same time, adjusting the winning probability in real time can avoid the subjectivity of human adjustment and save the complicated manual operation process.

[0124] Preferably, it also includes:

[0125] S6. Modify any activity information in the cache database according to the second user's needs to obtain modified activity information, query all cached lottery passwords corresponding to the modified activity information from the cache database, and delete the activity information associated with all cached lottery passwords;

[0126] All cached lottery passwords are associated with the modified activity information.

[0127] Since real-life sweepstakes sometimes change, it is necessary to modify the sweepstakes information based on actual conditions. The modification time may be after the sweepstakes password is successfully created, when a password conflict is prompted, or when the sweepstakes is in progress. Administrators can modify any activity information in the cache database at any time based on user needs, and can update activity information in real time, thereby making it easier for administrators to manage while making sweepstakes more flexible and real-time.

[0128] In the above embodiments, although the steps are numbered, such as S1, S2, etc., these are only specific embodiments given in the present application. Those skilled in the art may adjust the execution order of S1, S2, etc. according to actual conditions, which is also within the scope of protection of the present invention. It can be understood that in some embodiments, some or all of the above embodiments may be included.

[0129] like Figure 2 As shown, a voice-triggered lottery system according to an embodiment of the present invention includes a receiving and identifying module 210, a matching module 220, and an extracting module 230.

[0130] The receiving and identifying module 210 is used to receive and process user voice information to obtain text information;

[0131] The matching module 220 is used to determine whether the text information matches the preset lottery password;

[0132] The extraction module 230 is used to extract the activity information corresponding to the preset lottery password when the text information matches the preset lottery password, so as to conduct a lottery.

[0133] This solves the problem that in existing activity draws, the draw information needs to be manually triggered by users, and the draw entry is not easy for users to find and remember, resulting in low user activity. Users trigger the draw by voice, avoiding the need for users to first find the draw entry and then manually trigger the draw, which is conducive to improving user activity and user stickiness.

[0134] Preferably, it also includes a creation module,

[0135] The creation module is used to create the preset lottery password and set the preset activity information according to the first user's needs, and associate the preset lottery password with the preset activity information.

[0136] Specifically, the creation module is used to query and determine that all lottery passwords in the cache database within the preset activity time do not conflict with the preset lottery password according to the preset activity time in the preset activity information, then,

[0137] A prompt is given that the creation of the lottery password is successful, and the preset lottery password and the preset activity information are associated, the associated preset lottery password and the preset activity information are stored in the cache database, and the cache validity period of the preset lottery password and the preset activity information is set according to the preset activity time.

[0138] If any lottery password in the cache database within the preset activity time conflicts with the preset lottery password, a password conflict prompt is displayed;

[0139] When the administrator confirms to modify the preset lottery password, the preset lottery password is re-created, and the newly created preset lottery password is associated with the preset activity information;

[0140] When the manager confirms that the preset lottery password will not be modified, a prompt is given that the conflicting lottery password is successfully created, and the cache database is queried and deleted for the expired activity information corresponding to the preset lottery password, and the cache validity period of the preset lottery password is modified to the latest end time of all remaining activity information corresponding to the preset lottery password in the cache database, and the preset activity information after the modified cache validity period is stored in the cache database.

[0141] By querying all the lottery passwords in the cache database that are within the same time as the preset activity time of the preset activity information, and judging whether all the lottery draws conflict with the preset lottery passwords, it is convenient for the administrator to manage the preset lottery passwords. When there is no conflict, the lottery password is successfully created. When there is a conflict, you can choose to modify the preset lottery password, or you can choose not to modify it and keep the conflicting password. At the same time, the cache validity period of the preset lottery password and the preset activity information is set according to the preset activity time. The system can automatically clear the expired lottery password and activity information, which can further facilitate the management of the lottery password and activity information by the administrator.

[0142] Preferably, the receiving and identifying module 210 includes a receiving module and an identifying module.

[0143] The receiving module is used for continuing to receive the voice if the pause time of the user input voice is less than or equal to the preset time interval value;

[0144] If the pause time of the user input voice is greater than the preset time interval, the voice reception is stopped to obtain the voice information.

[0145] By setting a preset time interval for receiving user voice input, incomplete voice information caused by discontinuous user voice input can be avoided to a certain extent, thereby making the subsequent recognition of voice information more efficient and accurate.

[0146] The recognition module is used to perform denoising on the voice information to obtain intermediate voice information, and determine whether the volume of the intermediate voice information is between a first volume preset value and a second volume preset value. If so, convert the intermediate voice information into the text information.

[0147] Since the user's environment is diverse and complex, before converting the user's voice information into text information, the voice information affected by external interference is denoised and the voice information is screened according to the volume, which can make the subsequent recognition of the voice information more efficient and accurate.

[0148] Preferably, it also includes a voice interaction module,

[0149] The voice interaction module is used for the server to perform voice interaction with the user when the text information does not match the preset lottery password.

[0150] When the text information converted from the voice information input by the user does not match the preset lottery password, the artificial intelligence assistant on the server can interact with the user by voice. Among them, the artificial intelligence assistants include Xiaotuo, Xiaodu, Xiaoai, Xiaoju, Xiaona, etc. By having artificial intelligence assistants communicate with users and exchange daily knowledge, the user experience can be improved, thereby further improving user activity and stickiness.

[0151] Preferably, it also includes a modification module, which is used to modify any activity information in the cache database according to the needs of the second user, obtain modified activity information, query all cached lottery passwords corresponding to the modified activity information from the cache database, and delete the activity information associated with all cached lottery passwords; associate all cached lottery passwords with the modified activity information.

[0152] Administrators can modify any activity information in the cache database at any time according to user needs, and can update activity information in real time, which not only facilitates management for administrators, but also makes the lottery more flexible and real-time.

[0153] The above-mentioned parameters and steps for each unit module to implement corresponding functions in a voice-triggered lottery system of the present invention can refer to the parameters and steps in the embodiment of a voice-triggered lottery method above, and will not be repeated here.

[0154] like Figure 3 As shown, an electronic device 300 of an embodiment of the present invention includes a memory 310, a processor 320, and a program 330 stored in the memory 310 and running on the processor 320. When the processor 320 executes the program 330, it implements part or all of the steps of any of the above-mentioned voice-triggered lottery methods.

[0155] Among them, the electronic device 300 can be a computer, a mobile phone, etc. Correspondingly, its program 330 is computer software or a mobile phone APP, etc., and the above-mentioned parameters and steps in an electronic device 300 of the present invention can refer to the parameters and steps in the embodiment of a voice-triggered lottery method mentioned above, and will not be repeated here.

[0156] The reader should understand that in the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification and the features of different embodiments or examples without contradiction.

[0157] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0158] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.

[0159] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention.

[0160] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0161] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0162] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A voice-triggered lottery method, It is characterized in that The following steps are involved: Receive and process user voice information to obtain text information; Determining whether the text information matches a preset lottery password in a cache database; When the text information matches the preset lottery password, extracting the preset activity information corresponding to the preset lottery password to conduct a lottery; Before receiving and processing the user voice information, the method further includes: Creating the preset lottery password and setting the preset activity information according to the first user's needs, and associating the preset lottery password with the preset activity information; Associating the preset lottery password with the preset activity information includes: According to the preset activity time in the preset activity information, when it is queried and determined that all lottery passwords in the cache database within the preset activity time do not conflict with the preset lottery password, then, Prompt that the lottery password is created successfully, associate the preset lottery password with the preset activity information, store the associated preset lottery password and the preset activity information in the cache database, and set the cache validity period of the preset lottery password and the preset activity information according to the preset activity time; If any lottery password in the cache database within the preset activity time conflicts with the preset lottery password, a password conflict prompt is displayed; When the administrator confirms to modify the preset lottery password, the preset lottery password is re-created, and the newly created preset lottery password is associated with the preset activity information; When the administrator confirms that the preset lottery password will not be modified, a prompt is given that the conflicting lottery password is created successfully, and the cache database is queried and deleted for the expired activity information corresponding to the preset lottery password, and the cache validity period of the preset lottery password is modified to the latest end time of all the remaining activity information corresponding to the preset lottery password in the cache database, and the preset activity information after the modified cache validity period is stored in the cache database; The preset activity information also includes a first preset number of draws, the preset activity time includes a first preset time and a second preset time, and further includes: Within the time range from the first preset time to the second preset time, if the number of times the user participates in the lottery triggered by voice is less than or equal to the first preset number of lottery draws, the probability of winning is adjusted so that all prizes can be distributed to the user within the preset activity time; The adjusted winning probability is specifically: According to the formula Determine the initial number of vacancies, where ω is the initial number of vacancies, N min is the minimum number of participants, N max is the maximum number of participants, μ is the number of times each person is scheduled to participate; The product of the minimum number of participants and the predetermined number of participants per person is used as the number of prize digits; the number of prize digits is used as a column, and the initial number of empty digits is used as a row to construct a lottery data model, where the number of prize digits is greater than or equal to the actual total number of prizes; Set a preset time, count the number of participations in the lottery triggered by user voice within the preset time, and calculate the vacancy scaling ratio according to the number of participations in the lottery within the preset time; adjust the number of rows in each row of the lottery data model to a value corresponding to the vacancy scaling ratio; Where γ is the vacancy scaling ratio, ρ is the number of lottery draws within a preset time, and N min is the minimum number of participants, μ is the number of times each person is expected to participate, t 1 is the number of hours per day, t 2 is the number of minutes per hour; Obtain the total number of times all current users have participated in the lottery triggered by voice, and calculate the row index value and column index value according to the total number of times they have participated in the lottery; Find the number of rows of the adjusted lottery data model according to the row index value, and find the number of columns of the adjusted lottery data model according to the column index value; and use the result of the corresponding position of the row number and the column number as the lottery result; Row Index Column Index x is the row index, y is the column index, and κ is the total number of lottery participations.

2. A voice-triggered lottery method according to claim 1, It is characterized in that The processing of user voice information to obtain text information includes: The voice information is subjected to denoising to obtain intermediate voice information, and it is determined whether the volume of the intermediate voice information is between a first preset volume value and a second preset volume value. If so, the intermediate voice information is converted into the text information.

3. A voice-triggered lottery method according to claim 1, It is characterized in that The receiving user voice information comprises: If the pause time of the user's input voice is less than or equal to the preset time interval, continue to receive the voice; If the pause time of the user input voice is greater than the preset time interval, the voice reception is stopped to obtain the voice information.

4. A voice-triggered lottery method according to any one of claims 1 to 3, It is characterized in that Also includes: Modify any activity information in the cache database according to the second user's needs to obtain modified activity information, query all cached lottery passwords corresponding to the modified activity information from the cache database, and delete the activity information associated with all cached lottery passwords; All cached lottery passwords are associated with the modified activity information.

5. A voice-triggered lottery method according to any one of claims 1 to 3, It is characterized in that Also includes: When the text information does not match the preset lottery password, the server performs voice interaction with the user.

6. A voice-triggered lottery system, It is characterized in that It includes receiving and identifying module, matching module and extracting module. The receiving and identifying module is used to receive and process user voice information to obtain text information; The matching module is used to determine whether the text information matches the preset lottery password; The extraction module is used to extract the activity information corresponding to the preset lottery password when the text information matches the preset lottery password, so as to conduct a lottery; Before receiving and processing the user voice information, the method further includes: Creating the preset lottery password and setting the preset activity information according to the first user's needs, and associating the preset lottery password with the preset activity information; Associating the preset lottery password with the preset activity information includes: According to the preset activity time in the preset activity information, when it is queried and determined that all lottery passwords in the cache database within the preset activity time do not conflict with the preset lottery password, then, Prompt that the lottery password is created successfully, associate the preset lottery password with the preset activity information, store the associated preset lottery password and the preset activity information in the cache database, and set the cache validity period of the preset lottery password and the preset activity information according to the preset activity time; If any lottery password in the cache database within the preset activity time conflicts with the preset lottery password, a password conflict prompt is displayed; When the administrator confirms to modify the preset lottery password, the preset lottery password is re-created, and the newly created preset lottery password is associated with the preset activity information; When the administrator confirms that the preset lottery password will not be modified, a prompt is given that the conflicting lottery password is created successfully, and the cache database is queried and deleted for the expired activity information corresponding to the preset lottery password, and the cache validity period of the preset lottery password is modified to the latest end time of all the remaining activity information corresponding to the preset lottery password in the cache database, and the preset activity information after the modified cache validity period is stored in the cache database; The preset activity information also includes a first preset number of draws, the preset activity time includes a first preset time and a second preset time, and further includes: Within the time range from the first preset time to the second preset time, if the number of times the user participates in the lottery triggered by voice is less than or equal to the first preset number of lottery draws, the probability of winning is adjusted so that all prizes can be distributed to the user within the preset activity time; The adjusted winning probability is specifically: According to the formula Determine the initial number of vacancies, where ω is the initial number of vacancies, N min is the minimum number of participants, N max is the maximum number of participants, μ is the number of times each person is scheduled to participate; The product of the minimum number of participants and the predetermined number of participants per person is used as the number of prize digits; the number of prize digits is used as a column, and the initial number of empty digits is used as a row to construct a lottery data model, where the number of prize digits is greater than or equal to the actual total number of prizes; Set a preset time, count the number of participations in the lottery triggered by user voice within the preset time, and calculate the vacancy scaling ratio according to the number of participations in the lottery within the preset time; adjust the number of rows in each row of the lottery data model to a value corresponding to the vacancy scaling ratio; Where γ is the vacancy scaling ratio, ρ is the number of lottery draws within a preset time, and N min is the minimum number of participants, μ is the number of times each person is expected to participate, t 1 is the number of hours per day, t 2 is the number of minutes per hour; Obtain the total number of times all current users have participated in the lottery triggered by voice, and calculate the row index value and column index value according to the total number of times they have participated in the lottery; Find the number of rows of the adjusted lottery data model according to the row index value, and find the number of columns of the adjusted lottery data model according to the column index value; and use the result of the corresponding position of the row number and the column number as the lottery result; Row Index Column Index x is the row index, y is the column index, and κ is the total number of lottery participations.