Intelligent reception method, device, equipment and storage medium
Through face recognition and speech recognition technology, personalized reception strategies are automatically matched, which solves the problem of low intelligence of existing front desk robots, improves visitor experience and reception efficiency, and saves labor costs.
Patent Information
- Application Number
- CN202411017034.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-29
AI Technical Summary
The existing front desk robots have low intelligence. Visitors need to operate the display screen to complete registration or obtain guidance. This is inefficient and has a poor experience. It is especially time-consuming and labor-intensive for visitors who are not familiar with robots.
By collecting visitors' facial information for recognition processing, the visitor type is determined, and personalized reception strategies are matched according to the type. During the implementation of the strategy, voice data is collected for speech recognition processing, and the target reception strategy is automatically executed, including playing prompts and issuing access control permissions. , navigation and other operations.
It reduces the operating steps for visitors, improves visitor experience, realizes automated reception, saves labor costs, and provides personalized and efficient reception services.
Smart Images

Figure CN118544367B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence, and in particular to an intelligent guest reception method, device, equipment and storage medium. Background Art
[0002] In real life, when visitors arrive at a place to visit, they usually need to complete manual registration at the front desk, write down the visitor's relevant information, purpose, etc., and each visitor needs to be contacted by the front desk staff one by one, which is inefficient and requires certain labor costs. Therefore, based on this problem, relevant technicians have developed a front desk robot, but the existing front desk robot has a low degree of intelligence. It can only display relevant content on the display screen, and then all visitors need to operate on the display screen in person to complete relevant registration or obtain guidance. For visitors who are not familiar with the front desk robot, it is time-consuming and laborious, and the visitor experience is poor, so a solution is needed. Summary of the invention
[0003] The embodiments of the present application provide an intelligent reception method, device, equipment and storage medium to solve at least one problem existing in the related art. The technical solution is as follows:
[0004] In a first aspect, an embodiment of the present application provides a method for intelligent reception, including:
[0005] Collect visitors’ facial information;
[0006] Recognize and process the facial information to determine the visitor type, where the visitor type includes at least one of a guest, a courier, and a property staff;
[0007] According to the visitor type, a personalized reception strategy is matched, and the visitor's voice data is collected during the execution of the personalized reception strategy;
[0008] The voice data is subjected to voice recognition processing, and a target reception strategy is executed according to the voice recognition processing result.
[0009] In one embodiment, collecting the visitor's facial information includes:
[0010] Capture images through a camera;
[0011] Extracting facial features from the image to determine facial feature information;
[0012] When the facial feature information includes facial information of a human face, the facial feature information is used as the facial information of the visitor;
[0013] When the facial feature information includes facial information of multiple faces, determine the proportion of each facial information in the image; when the maximum proportion is unique, use the facial information corresponding to the maximum proportion as the visitor's facial information; when the maximum proportion is not unique, calculate the distance between the center coordinates of the facial information with the maximum proportion and the center point of the image, and use the facial information with the smallest distance as the visitor's facial information.
[0014] In one implementation, the identifying and processing the facial information to determine the visitor type includes:
[0015] Matching the facial information with pre-stored faces in a face database;
[0016] When the match is successful, the type of the matched pre-stored face is used as the visitor type;
[0017] When the match fails, the selectable visitor types are displayed on the screen, and the selected visitor type is determined in response to a touch operation. Alternatively, the focal length of the camera is adjusted to obtain a body image of the visitor, and the body image is recognized through a recognition model to determine the current clothing features. The visitor type is determined based on a similarity calculation between the current clothing features and the pre-stored first clothing features of the property staff and the second clothing features of the courier.
[0018] In one embodiment, the determining the visitor type by calculating the similarity between the current clothing feature and the first clothing feature of the property staff and the second clothing feature of the courier includes:
[0019] Calculating a first similarity between the current clothing feature and the first pre-stored clothing feature, and calculating a second similarity between the current clothing feature and the second pre-stored clothing feature, by using a similarity algorithm;
[0020] When the first similarity is greater than or equal to the similarity threshold, the visitor type is determined to be property staff; when the second similarity is greater than or equal to the similarity threshold, the visitor type is determined to be a courier; when the first similarity is less than the similarity threshold and the second similarity is less than the similarity threshold, the visitor type is determined to be a guest.
[0021] In one embodiment, matching a personalized reception strategy according to the visitor type includes:
[0022] When the visitor type is a courier, a prompt for finding a courier locker is played and the location of the courier locker is displayed. When the courier arrives at the location of the courier locker and deposits the item based on the last digit of the mobile phone number, the target mobile phone number is searched from the address book based on the last digit of the mobile phone number, and the information of the item to be picked up is sent to the target mobile phone number or the target mobile phone number is automatically dialed, and the information of the item to be picked up is played through text-to-speech.
[0023] When the visitor type is a property staff, the pre-collected feedback information is played, and the identity ID is associated based on the feedback information, and the contact information of the identity ID is displayed. In response to a click instruction on the contact information, a call with the person corresponding to the identity ID is established. The feedback information includes repair, consultation, complaint and suggestion;
[0024] When the visitor type is a guest, the guest is prompted to present the access code information, the access code information is obtained, the access object is determined by matching the access code information with the access information collected in advance through the mini program, and the target area on the target floor where the access object is located is determined according to the information of the access object in the database, a navigation route to the target area on the target floor is generated according to the indoor map and a navigation voice is played, and access control authority is issued to the guest based on the facial information so that the guest can enter the elevator through the access control.
[0025] In one implementation, the voice data includes audio information at several moments; performing voice recognition processing on the voice data and executing the target reception strategy according to the voice recognition processing result includes:
[0026] Determine a first moment and a second moment adjacent to the first moment, and determine a first amplitude of the audio information at the first moment and a second amplitude of the audio information at the second moment;
[0027] Calculate the product of the amplitude enhancement coefficient and the first amplitude, determine the difference between the second amplitude and the product, obtain the enhanced amplitude, update the second amplitude to the enhanced amplitude, take the second moment as the new first moment and determine the new second moment, return to the step of determining the first amplitude of the audio information at the first moment and the second amplitude of the audio information at the second moment, until the audio information at several moments is updated to obtain enhanced voice data;
[0028] The enhanced voice data is framed to obtain a plurality of frames of enhanced audio signals, and the short-time average amplitude of each frame of the enhanced audio signal is calculated. When the short-time average amplitude is greater than or equal to an energy threshold, the enhanced voice data is determined as target voice data; otherwise, the enhanced voice data is sound enhanced by a sound enhancement model to obtain target voice data;
[0029] Calculating an emotion score according to the target speech data, determining an emotion type according to the emotion score, and matching a target intonation from an intonation database according to the emotion type;
[0030] Converting the target speech data into text content, and determining a target answer text according to the text content;
[0031] When the visitor type is a courier, synthesizing a first audio based on a preset sound, the target tone, and the target answer text, and playing the first audio as an answer to the voice data;
[0032] When the visitor type is a property staff, matching a first voice of the corresponding person based on the identity ID, synthesizing a second audio according to the first voice, the target tone and the target answer text, and playing the second audio as a response to the voice data;
[0033] When the visitor type is a guest, a corresponding second sound is matched based on the visit object, a third audio is synthesized according to the second sound, the target tone and the target answer text, and the third audio is played as a response to the voice data.
[0034] In one implementation, determining the emotion type according to the emotion score includes:
[0035] Compare the sentiment score with a plurality of score ranges, and take the sentiment corresponding to the target score range containing the sentiment score as the sentiment type;
[0036] or,
[0037] Extract left eye feature information, right eye feature information, left corner of mouth feature information and right corner of mouth feature information from the facial information, determine a first interval based on the left eye feature information and the right eye feature information, determine a second interval based on the left corner of mouth feature information and the right corner of mouth feature information, determine a facial feature score based on the first interval and the second interval, perform weighted calculation based on the emotion score and the facial feature score to determine a target score, compare the target score with several score ranges, and take the emotion corresponding to the target score range that includes the target score as the emotion type.
[0038] In a second aspect, an embodiment of the present application provides an intelligent reception device, including:
[0039] Collection module, used to collect visitors' facial information;
[0040] A determination module, configured to identify and process the facial information to determine the visitor type, wherein the visitor type includes at least one of a guest, a courier, and a property staff;
[0041] A matching module, used to match a personalized reception strategy according to the visitor type, and collect the visitor's voice data during the execution of the personalized reception strategy;
[0042] The execution module is used to perform speech recognition processing on the speech data and execute the target reception strategy according to the speech recognition processing result.
[0043] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor and a memory, wherein the memory stores instructions, and the instructions are loaded and executed by the processor to implement a method in any one of the above-mentioned embodiments.
[0044] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed, the method in any one of the above-mentioned embodiments is implemented.
[0045] The beneficial effects of the above technical solution include at least:
[0046] By collecting the facial information of visitors, identifying and processing the facial information, the type of visitor is determined, and the visitor type includes at least one of guests, couriers and property personnel. According to the type of visitor, a personalized reception strategy is matched, and the visitor type is automatically determined according to the facial information, and then a personalized reception strategy is matched. It is highly targeted and helps to reduce the operations that visitors need to perform, saving time and effort, and is convenient, fast and user-friendly. In the process of executing the personalized reception strategy, the visitor's voice data is collected, and voice recognition processing is performed on the voice data. According to the voice recognition processing results, the target reception strategy is executed, and feedback on the visitor's voice data can be provided in a timely manner, which helps to improve the visitor's experience.
[0047] The above summary is for illustrative purposes only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments and features described above, further aspects, embodiments and features of the present application will be readily apparent by reference to the accompanying drawings and the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments disclosed in the present application and should not be regarded as limiting the scope of the present application.
[0049] Figure 1 This is a schematic diagram of the steps of the intelligent reception method according to an embodiment of the present application;
[0050] Figure 2 This is a structural block diagram of an intelligent guest reception device according to an embodiment of the present application;
[0051] Figure 3 This is a structural block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0052] In the following, only some exemplary embodiments are briefly described. As those skilled in the art will appreciate, the described embodiments may be modified in various ways without departing from the spirit or scope of the present application. Therefore, the drawings and descriptions are considered to be exemplary and non-restrictive in nature.
[0053] Reference Figure 1 , a flow chart of an intelligent reception method according to an embodiment of the present application is shown, and the intelligent reception method may at least include steps S100-S400:
[0054] S100: Collect visitor's facial information.
[0055] S200: Recognize and process the facial information to determine the visitor type.
[0056] It should be noted that the visitor type includes at least one of a guest, a courier, and a property staff.
[0057] S300: Match a personalized reception strategy according to the visitor type, and collect the visitor's voice data during the execution of the personalized reception strategy.
[0058] S400: Perform speech recognition processing on the speech data, and execute the target reception strategy according to the speech recognition processing result.
[0059] The intelligent welcoming reception method of the embodiment of the present application can be executed by a digital human front desk system. The digital human front desk system includes but is not limited to a welcoming robot (hereinafter referred to as the robot). The welcoming robot can be connected to and interact with express cabinets, access control, elevators, servers, and telephone network systems through the network.
[0060] The technical solution of the embodiment of the present application collects the facial information of the visitor, identifies and processes the facial information, determines the visitor type, and the visitor type includes at least one of a guest, a courier, and a property staff. According to the visitor type, a personalized reception strategy is matched, and the visitor type is automatically determined according to the facial information, and then the personalized reception strategy is matched. It is highly targeted and helps to reduce the operations that the visitor needs to perform, saving time and effort, and is convenient, fast and humane. In the process of executing the personalized reception strategy, the visitor's voice data is collected, and the voice data is processed by voice recognition. According to the voice recognition processing result, the target reception strategy is executed, and the visitor's voice data can be fed back in time, which is conducive to improving the visitor's experience. At the same time, the high degree of intelligence helps to save labor costs.
[0061] In one embodiment, step S100 includes steps S110-S140:
[0062] S110, capturing an image through a camera.
[0063] Optionally, images can be captured using a camera on the robot.
[0064] S120: extract facial features from the image to determine facial feature information.
[0065] Optionally, a pre-trained face recognition model is stored in the robot, and after the captured image is input into the face recognition model, face feature extraction can be performed to determine face feature information.
[0066] S130: When the facial feature information includes facial information of a human face, the facial feature information is used as the facial information of the visitor.
[0067] S140. When the facial feature information includes facial information of multiple faces, determine the proportion of each facial information in the image. When the maximum proportion is unique, use the facial information corresponding to the maximum proportion as the visitor's facial information. When the maximum proportion is not unique, calculate the distance between the center coordinates of the facial information with the maximum proportion and the center point of the image, and use the facial information with the shortest distance as the visitor's facial information.
[0068] Optionally, since there may be one or more faces in the image when the image is captured, the extracted facial feature information may include facial information of one or more faces. If the facial feature information includes facial information of one face, the facial feature information is directly used as the facial information of the visitor. When the facial feature information includes facial information of multiple faces, the robot's processor will compare the area size occupied by each facial information with the image size to determine the proportion of each facial information in the image. For example, there may be face A, face B, and face C. If the proportion of face A is the largest, that is, the maximum proportion is unique, the facial information corresponding to the maximum proportion is used as the facial information of the visitor, that is, the facial information corresponding to face A is used as the facial information of the visitor; and if the maximum proportion is not unique, for example, face B and face C are both the largest proportions, then the distance between the center coordinates of the facial information with the largest proportion and the center point of the image is calculated respectively, and the facial information with the smallest distance is used as the facial information of the visitor. For example, if the distance of face C is the smallest, the facial information of face C is used as the facial information of the visitor. It should be noted that the closer to the center, the more likely it is a visitor, while the farther away from the center, the more likely it is that it has mistakenly entered the camera.
[0069] In one embodiment, step S200 includes steps S210-S230:
[0070] S210: Match the facial information with pre-stored faces in a face database.
[0071] It should be noted that the face can be entered in advance in the mini program or system, and then stored in the face database. Therefore, after obtaining the face information, it can be compared with the pre-stored faces in the face database to determine whether it matches. At the same time, for each pre-stored face, the corresponding identity type is entered, such as a courier (responsible for the current area), a property staff, or some guests who have made an appointment or been invited.
[0072] S220: When the match is successful, the type of the matched pre-stored face is used as the visitor type.
[0073] Optionally, if there is a pre-stored face with the same facial information in the face database, the match is successful, and the type of the matched pre-stored face is used as the visitor type.
[0074] S230. When the match fails, the selectable visitor types are displayed on the screen, and the selected visitor type is determined in response to the touch operation, or the focal length of the camera is adjusted to obtain the visitor's body image, the body image is recognized by the recognition model, the current clothing features are determined, and the visitor type is determined based on the similarity calculation between the current clothing features and the pre-stored first clothing features of the property staff and the second clothing features of the courier.
[0075] Optionally, if the face database does not match the pre-stored face, the selectable visitor types, such as guests, couriers and property staff, can be displayed on the robot's screen. At this time, the visitor can touch the screen to independently select the visitor type, so that the robot can determine the visitor type.
[0076] In other embodiments, since the image currently captured is the visitor's facial image, the robot can automatically adjust the focal length of the camera to obtain the visitor's body image, such as the visitor's upper body or whole body, and then recognize the body image through a recognition model that has been trained in advance based on a large amount of clothing data, thereby determining the current clothing characteristics.
[0077] Then, the similarity is calculated based on the current clothing feature and the first clothing feature of the pre-stored property staff and the second clothing feature of the courier to determine the visitor type. It should be noted that the database connected to the robot has a clothing database in addition to the face database, and the clothing database has the clothing features of the courier and the property staff pre-stored. Therefore, the first similarity between the current clothing feature and the pre-stored first clothing feature (i.e., the clothing feature of the property staff) can be calculated by the similarity algorithm, and the second similarity between the current clothing feature and the pre-stored second clothing feature (i.e., the clothing feature of the courier) can be calculated. When the first similarity is greater than or equal to the similarity threshold, the visitor type is determined to be a property staff, and when the second similarity is greater than or equal to the similarity threshold, the visitor type is determined to be a courier. It can be understood that when the first similarity is less than the similarity threshold and the second similarity is less than the similarity threshold, it can be considered that there is no pre-stored similar clothing in the clothing database, and the visitor type is determined to be a guest.
[0078] In one embodiment, in step S300, a personalized reception strategy is matched according to the visitor type, and in the process of executing the personalized reception strategy, the visitor's voice data is collected through the microphone of the robot. For example, the voice data can be voice data for a period of time, and can include audio information at several moments.
[0079] In the embodiment of the present application, based on different visitor types, a personalized reception strategy that can be automatically executed by the robot is configured in advance to improve the effect of visitor reception and targeted reception, and improve the visitor experience. The personalized reception strategy is matched according to the visitor type in step S300, including steps S310-S330:
[0080] S310. When the visitor type is a courier, a prompt for finding the courier cabinet is played and the location of the courier cabinet is displayed. When the courier arrives at the location of the courier cabinet and deposits the item based on the last digit of the mobile phone number, the target mobile phone number is searched from the address book based on the last digit of the mobile phone number, and the information of the item to be picked up is sent to the target mobile phone number or the target mobile phone number is automatically dialed, and the information of the item to be picked up is played through text-to-speech.
[0081] In an embodiment of the present application, when the visitor type is a courier, the robot can play prompts for finding the express cabinet through a speaker and display the location of the express cabinet, so that the courier can understand the location of the express cabinet, which is convenient for solving the problem of express delivery being difficult to find and easy to be stranded. In addition, the courier can scan the QR code displayed by the robot, follow the official account or enter the mini program. At this time, the location of the express cabinet and the guide map can be displayed on the courier's mobile terminal for easy search. When the courier arrives at the location of the express cabinet, he can open the door of the express cabinet to deposit the items based on the input of the last digit of the recipient's mobile phone number. After depositing the items based on the last digit of the mobile phone number, the robot's address book stores the names, mobile phone numbers and other content of employees of various companies collected in advance. Therefore, the robot can find the target mobile phone number from the address book according to the last digit of the mobile phone number. For example, based on the last digit 1913, the number 131xxxxx1913 is found, then the number 131xxxxx1913 is the target mobile phone number. At this time, the robot sends the information of the object to be picked up to the target mobile phone number through the connected telephone network system, such as notifying which grid of the express cabinet the object is in, or automatically dials the target mobile phone number through the connected telephone network system, and plays the information of the object to be picked up through text-to-speech, such as notifying which grid of the express cabinet the object is in. The subsequent recipient can open the cabinet door and take out the express by scanning the code or face recognition with the mobile phone, which is convenient and fast.
[0082] S320. When the visitor type is a property staff, the pre-collected feedback information is played, and the identity ID is associated based on the feedback information. The contact information of the identity ID is displayed. In response to a click instruction on the contact information, a call with the person corresponding to the identity ID is established. The feedback information includes repair reports, consultations, complaints and suggestions.
[0083] In an embodiment of the present application, the company's employees can fill in information on their mobile phone terminals or computers to generate feedback information related to the property, such as consultations, complaints, and repairs. The feedback information is stored in a database, and the feedback information can also include the company's employee's identity ID, such as name, number, mobile phone number, etc. The robot can obtain the feedback information from the database; or, the company's employees can also directly operate on the robot's screen and fill in information to generate feedback information related to the property, such as repairs, consultations, complaints, and suggestions.
[0084] Then, when the visitor type is a property staff, the robot plays the pre-collected feedback information through the speaker for the property staff to understand the situation. When the feedback information is greater than the quantity threshold, it can be displayed on the screen for display. The property staff selects a specific piece of feedback information by touching it, and then the robot plays the selected pre-collected feedback information through the speaker, and associates the identity ID based on the feedback information to match the corresponding employee from the database. At the same time, the contact information of the identity ID can be displayed on the robot's screen. In response to the click instruction on the contact information, a call with the person corresponding to the identity ID is established through the telephone network system, so that the property staff can directly communicate with the employee of the feedback information, understand the situation more directly, and the efficiency is higher and the process is simpler.
[0085] S330. When the visitor type is a guest, prompt the guest to present the access code information, obtain the access code information, match the access code information with the access information collected in advance through the mini program, determine the access object, determine the target area on the target floor where the access object is located based on the information of the access object in the database, generate a navigation route to the target area on the target floor based on the indoor map and play the navigation voice, and issue access control permissions to the guest based on facial information so that the guest can enter the elevator through the access control.
[0086] In the embodiment of the present application, when the visitor type is a guest, the guest is prompted to show the access code information. It should be noted that the access code information can be a reservation made by the visitor in advance in the mini program or official account. After the reservation is successful, the robot will call the visitor to confirm the reservation. After confirmation, the reservation code will be notified by SMS, which is a type of access code information; or, the person being visited makes an appointment in advance in the mini program or official account. After the appointment is successful, the robot automatically calls the mobile phone number of the person being visited to confirm the appointment. After confirmation, an invitation code is generated, which is a type of access code information. Then, the invitation code is sent to the guest's mobile phone in the form of a text message.
[0087] In an embodiment of the present application, when the guest arrives at the site, the access code information is entered into the robot, and the access code information is matched with the access information collected in advance through the mini-program, such as the access information for the specific person to be visited, that is, who the person to be visited is, so as to determine the object of visit. It should be noted that the database of the embodiment of the present application also includes the information of the object of visit, and the target area in the target floor where the object of visit is located is determined based on the information of the object of visit in the database. The information of the object of visit includes but is not limited to the location of the object of visit. For example, the object of visit is Xiao Ming. Based on Xiao Ming's information, it can be known that Xiao Ming is from the Human Resources Department. At this time, the location of the Human Resources Department is determined to be the first office on the left on the 13th floor. At this time, the robot can generate a navigation route to the target area on the target floor based on the indoor map collected and modeled in advance and play the navigation voice. In addition, access control rights are issued to guests based on facial information, so that guests can enter the elevator through the access control. For example, taking the above example, it is determined that the visitor is Xiao Ming. Based on Xiao Ming's information, it can be known that Xiao Ming is from the Human Resources Department. At this time, the location of the Human Resources Department is determined to be the first office on the left on the 13th floor. Then the navigation route can be displayed in the indoor map, which is to take the elevator to the 13th floor (target floor), then turn left after exiting the elevator, and arrive at the Human Resources Department (target area). Guests can collect and take pictures, or scan codes to follow QR codes or mini programs, so that they can continue to watch the navigation route on their mobile phones and listen to the navigation voice, so that they can reach their destination independently, which is convenient and user-friendly.
[0088] In addition, the robot will issue access control permissions to guests based on their facial information, allowing them to enter the elevator through the access control system to ensure that they can reach the target area and find the person they are visiting, Xiao Ming, according to the navigation route.
[0089] In one implementation, step S400 includes steps S410-S480:
[0090] S410: Determine a first moment and a second moment adjacent to the first moment, and determine a first amplitude of the audio information at the first moment and a second amplitude of the audio information at the second moment.
[0091] In the embodiment of the present application, since the surrounding environment may be noisy, the collected voice data may not be clear, which may easily cause the robot to be unable to obtain the accurate human voice of the visitor, so the voice data can be processed by the audio processing model pre-set in the robot. Optionally, since the voice data includes audio information at several moments, the earliest moment in the language data is determined as the first moment, and the moment after the first moment and adjacent to the first moment is the second moment, and then the first amplitude d(t) of the audio information at the first moment and the second amplitude d(t+1) of the audio information at the second moment are determined, t represents the currently selected first moment, and t+1 represents the second moment after the first moment and adjacent to the first moment.
[0092] S420, calculate the product of the amplitude enhancement coefficient and the first amplitude, determine the difference between the second amplitude and the product, obtain the enhanced amplitude, update the second amplitude to the enhanced amplitude, take the second moment as the new first moment and determine the new second moment, return to the step of determining the first amplitude of the audio information at the first moment and the second amplitude of the audio information at the second moment, until the audio information at several moments is updated to obtain enhanced voice data.
[0093] In the embodiment of the present application, the amplitude enhancement coefficient β can be dynamically adjusted based on the environmental conditions, for example, at a certain time length threshold, such as collecting the environmental audio once every 1 minute, and determining the average amplitude value of the environmental audio. When the average amplitude value is less than or equal to the first amplitude threshold, the amplitude enhancement coefficient β is randomly selected from the first range, and when the average amplitude value is greater than the first amplitude threshold and less than or equal to the first amplitude threshold, the amplitude enhancement coefficient β is randomly selected from the second range. When the average amplitude value is greater than the second amplitude threshold, the amplitude enhancement coefficient β is randomly selected from the third range. It should be noted that the first range is greater than the second range, and the second range is greater than the third range, for example, the first range is 0.8-0.99, the second range is 0.7-0.8, and the third range is 0.6-0.7; in some embodiments, the amplitude enhancement coefficient β can also be directly preset without specific limitation.
[0094] In the embodiment of the present application, the product βd(t) of the amplitude enhancement coefficient β and the first amplitude d(t) is calculated, and the difference between the second amplitude d(t+1) and the product βd(t) is determined to obtain the enhanced amplitude D(t+1), that is, the formula is:
[0095] D(t+1)=d(t+1) - βd(t)
[0096] Then, the second amplitude d(t+1) is updated to the enhanced amplitude D(t+1), the second moment is taken as the new first moment and the new second moment is determined, and the step of determining the first amplitude of the audio information at the first moment and the second amplitude of the audio information at the second moment is returned, that is, returning to step S410, until the audio information at several moments is updated to obtain enhanced voice data. It should be noted that, based on the above formula of the amplitude enhancement coefficient, the spectrum amplitude of the low-frequency part is reduced, the low-frequency audio information is suppressed, and the resolution of the high-frequency part of the audio information is improved, which is conducive to the robot obtaining enhanced voice data that is easier to recognize human voices.
[0097] S430, perform frame processing on the enhanced voice data to obtain several frames of enhanced audio signals, calculate the short-time average amplitude of each frame of the enhanced audio signal, and when the short-time average amplitude is greater than or equal to the energy threshold, determine the enhanced voice data as the target voice data, otherwise perform sound enhancement on the enhanced voice data through the sound enhancement model to obtain the target voice data.
[0098] In the embodiment of the present application, the enhanced voice data can be framed by Hamming windowing to obtain several frames of enhanced audio signals, and the short-time average amplitude of each frame of enhanced audio signals is calculated. The formula is:
[0099]
[0100] Among them, N a is the short-time average amplitude of the enhanced audio signal in frame a, X a (b) is the enhanced audio signal of the ath frame. The length range of each frame of the enhanced audio signal is: [0, C], C is a constant determined by the length of the Hamming window, and b is the point index in the enhanced audio signal.
[0101] Specifically, when the short-time average amplitude is greater than or equal to the energy threshold, the enhanced speech data is determined as the target speech data. Otherwise, the enhanced speech data is further enhanced through the sound enhancement model to obtain the target speech data, thereby further improving the speech quality and facilitating improving the recognition accuracy.
[0102] S440: Calculate an emotion score according to the target speech data, determine an emotion type according to the emotion score, and match the target intonation from the intonation database according to the emotion type.
[0103] In the embodiment of the present application, based on two dimensions including but not limited to voice intonation and speech speed, the target speech data is processed using a pre-trained emotion model to determine an emotion score.
[0104] In the embodiment of the present application, when determining the emotion type according to the emotion score, there are two ways:
[0105] 1) Compare the emotion score with several score ranges, and take the emotion corresponding to the target score range containing the emotion score as the emotion type. For example, the emotion type includes but is not limited to joy, neutrality, and worry. Joy corresponds to the first score range, neutrality corresponds to the second score range, and worry corresponds to the third score range. The first score range is greater than the second score range, and the second score range is greater than the third score range.
[0106] 2) Extract the left eye feature information, the right eye feature information, the left corner of the mouth feature information and the right corner of the mouth feature information from the facial information, determine the first interval according to the left eye feature information and the right eye feature information, that is, calculate the first interval between the left eye and the right eye, and determine the second interval according to the left corner of the mouth feature information and the right corner of the mouth feature information, that is, calculate the second interval between the left corner of the mouth and the right corner of the mouth. It should be noted that, because people have different expressions of eyes and mouth corners when they are in different emotions, based on the first interval of the left eye and the right eye, and the second interval between the left corner of the mouth and the right corner of the mouth, the score of the emotion label can be set, for example, the emotion label includes three scores corresponding to joy, neutrality and worry, and then input into the neural network for training to determine the facial emotion calculation model. Therefore, after determining the first interval and the second interval, they can be input into the facial emotion calculation model to calculate and determine the facial feature score. Finally, in order to more accurately determine the emotion type, a weighted calculation is performed based on the emotion score and the facial feature score to determine the target score, and the target score is compared with several score ranges, such as the first score range, the second score range, and the third score range, so that the emotion corresponding to the target score range containing the target score is taken as the emotion type. It should be noted that during the weighted calculation, the weight parameter can be set based on the actual situation.
[0107] In the embodiment of the present application, the database also includes a voice intonation database, which contains voice intonations corresponding to different emotion types. Therefore, after determining the emotion type, the target voice intonation can be matched from the voice intonation database according to the emotion type. For example, if the emotion type is joy, a high tone of excitement is matched to respond to the visitor's emotion and make the visitor more happy; if the emotion type is neutral, a calm tone is matched; if the emotion type is worry, an encouraging / gentle tone is matched to relieve the visitor's emotion.
[0108] S450: Convert the target voice data into text content, and determine the target answer text according to the text content.
[0109] Optionally, the target voice data is converted into text content through TTS technology, and then the text content is input into a large language model to determine the target answer text.
[0110] S460: When the visitor type is a courier, synthesize a first audio based on a preset sound, a target tone, and a target answer text, and play the first audio as a response to the voice data.
[0111] In an embodiment of the present application, when the visitor type is a courier, a first audio is synthesized based on a preset sound, a target answer text, and a target tone through speech synthesis technology, and the first audio is played as a response to the voice data.
[0112] S470. When the visitor type is a property staff, a first voice of the corresponding person is matched based on the identity ID, a second audio is synthesized according to the first voice, the target tone and the target answer text, and the second audio is played as a response to the voice data.
[0113] In the embodiment of the present application, a sound library is pre-configured, which contains several preset sounds and employee voices. When the visitor type is a property staff, for example, when the property staff asks about the feedback information, in order to more realistically present the feedback, the first voice of the corresponding person is matched based on the identity ID, and then the second audio is synthesized according to the first voice, the target tone and the target answer text through speech synthesis technology, and the second audio is played as a response to the voice data.
[0114] S480. When the visitor type is a guest, a corresponding second sound is matched based on the visit object, a third audio is synthesized according to the second sound, a target tone and a target answer text, and the third audio is played as a response to the voice data.
[0115] In an embodiment of the present application, when the visitor type is a guest, for example, the person the guest needs to visit is Xiao Ming, when the guest has questions, in order to increase authenticity and intimacy, the corresponding second voice can be matched based on the person being visited, and then, through speech synthesis technology, a third audio is synthesized according to the second voice, target intonation and target answer text, and the third audio is played as an answer to the voice data.
[0116] Through the method of the embodiment of the present application, analysis can be performed based on the visitor's face and audio to determine the visitor type such as guests, couriers, and property personnel, and then a personalized reception strategy can be matched. This is highly targeted and helps reduce the operations that visitors need to perform, saving time and effort, and is convenient, fast, and user-friendly. In the process of executing the personalized reception strategy, the visitor's voice data is collected, and voice recognition processing is performed on the voice data. During the processing, a method for enhancing voice data is introduced to obtain clearer and more accurate voice data, which is conducive to timely and accurate feedback on the visitor's voice data, and is conducive to further improving the visitor's experience.
[0117] Reference Figure 2 , shows a structural block diagram of an intelligent reception device according to an embodiment of the present application, and the device may include:
[0118] Collection module, used to collect visitors' facial information;
[0119] A determination module, used to identify and process facial information to determine the visitor type, where the visitor type includes at least one of a guest, a courier, and a property staff;
[0120] A matching module is used to match personalized reception strategies according to visitor types and collect visitor voice data during the execution of personalized reception strategies;
[0121] The execution module is used to perform speech recognition processing on the speech data and execute the target reception strategy according to the speech recognition processing result.
[0122] The functions of each module in each device in the embodiments of the present application can be found in the corresponding description in the above method, and will not be repeated here.
[0123] Reference Figure 3 , shows a structural block diagram of an electronic device according to an embodiment of the present application, the electronic device includes: a memory 310 and a processor 320, the memory 310 stores instructions that can be run on the processor 320, and the processor 320 loads and executes the instructions to implement the intelligent reception method in the above embodiment. The number of the memory 310 and the processor 320 can be one or more.
[0124] In one embodiment, the electronic device further includes a communication interface 330 for communicating with external devices and performing data exchange transmission. If the memory 310, the processor 320 and the communication interface 330 are implemented independently, the memory 310, the processor 320 and the communication interface 330 can be interconnected through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0125] Optionally, in a specific implementation, if the memory 310, the processor 320 and the communication interface 330 are integrated on a chip, the memory 310, the processor 320 and the communication interface 330 can communicate with each other through an internal interface.
[0126] An embodiment of the present application provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the intelligent guest reception method provided in the above embodiment.
[0127] An embodiment of the present application also provides a chip, which includes a processor for calling and executing instructions stored in the memory from the memory, so that a communication device equipped with the chip executes the method provided by the embodiment of the present application.
[0128] An embodiment of the present application also provides a chip, including: an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected via an internal connection path, and the processor is used to execute the code in the memory. When the code is executed, the processor is used to execute the method provided in the embodiment of the application.
[0129] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor supporting the advanced RISC machines (ARM) architecture.
[0130] Further, optionally, the above-mentioned memory may include a read-only memory and a random access memory, and may also include a non-volatile random access memory. The memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may include a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may include a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct rambus RAM (DR RAM).
[0131] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.
[0132] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example" or "some examples" 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 application. Moreover, the described specific features, structures, materials or characteristics 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, unless they are contradictory.
[0133] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0134] Any process or method description in the flow chart or otherwise described herein can be understood to represent a module, fragment or portion of a code including one or more executable instructions for implementing the steps of a specific logical function or process. And the scope of the preferred embodiment of the present application includes other implementations, in which the functions may not be performed in the order shown or discussed, including in a substantially simultaneous manner or in a reverse order according to the functions involved.
[0135] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, which can be embodied in any computer-readable medium for use by an instruction execution system, apparatus or device (such as a computer-based system, a system including a processor or other system that can fetch instructions from an instruction execution system, apparatus or device and execute instructions), or used in combination with these instruction execution systems, apparatuses or devices.
[0136] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. All or part of the steps of the above embodiment method can be completed by instructing the relevant hardware through a program, which can be stored in a computer-readable storage medium, and when the program is executed, it includes one of the steps of the method embodiment or a combination thereof.
[0137] In addition, each functional unit in each embodiment of the present application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the above-mentioned integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. The storage medium can be a read-only memory, a disk or an optical disk, etc.
[0138] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. An intelligent reception method, characterized in that: include: Collect visitors’ facial information; Recognize and process the facial information to determine the visitor type, where the visitor type includes at least one of a guest, a courier, and a property staff; According to the visitor type, a personalized reception strategy is matched, and the visitor's voice data is collected during the execution of the personalized reception strategy; Performing speech recognition processing on the speech data, and executing a target reception strategy according to the speech recognition processing result; According to the visitor type, matching the personalized reception strategy includes: When the visitor type is a courier, a prompt for finding a courier locker is played and the location of the courier locker is displayed. When the courier arrives at the location of the courier locker and deposits the item based on the last digit of the mobile phone number, the target mobile phone number is searched from the address book based on the last digit of the mobile phone number, and the information of the item to be picked up is sent to the target mobile phone number or the target mobile phone number is automatically dialed, and the information of the item to be picked up is played through text-to-speech. When the visitor type is a property staff, the pre-collected feedback information is played, and the identity ID is associated based on the feedback information, and the contact information of the identity ID is displayed. In response to a click instruction on the contact information, a call with the person corresponding to the identity ID is established. The feedback information includes repair, consultation, complaint and suggestion; When the visitor type is a guest, the guest is prompted to present the access code information, the access code information is obtained, the access object is determined according to the matching of the access code information with the access information collected in advance through the mini program, the target area on the target floor where the access object is located is determined according to the information of the access object in the database, a navigation route to the target area on the target floor is generated according to the indoor map and a navigation voice is played, and access control authority is issued to the guest based on the facial information, so that the guest can enter the elevator through the access control; The voice data includes audio information at several moments; performing voice recognition processing on the voice data and executing the target reception strategy according to the voice recognition processing result includes: Determine a first moment and a second moment adjacent to the first moment, and determine a first amplitude of the audio information at the first moment and a second amplitude of the audio information at the second moment; Calculate the product of the amplitude enhancement coefficient and the first amplitude, determine the difference between the second amplitude and the product, obtain the enhanced amplitude, update the second amplitude to the enhanced amplitude, take the second moment as the new first moment and determine the new second moment, return to the step of determining the first amplitude of the audio information at the first moment and the second amplitude of the audio information at the second moment, until the audio information at several moments is updated to obtain enhanced voice data; The enhanced voice data is framed to obtain a plurality of frames of enhanced audio signals, and the short-time average amplitude of each frame of the enhanced audio signal is calculated. When the short-time average amplitude is greater than or equal to an energy threshold, the enhanced voice data is determined as target voice data; otherwise, the enhanced voice data is sound enhanced by a sound enhancement model to obtain target voice data; Calculating an emotion score according to the target speech data, determining an emotion type according to the emotion score, and matching a target intonation from an intonation database according to the emotion type; Converting the target speech data into text content, and determining a target answer text according to the text content; When the visitor type is a courier, synthesizing a first audio based on a preset sound, the target tone, and the target answer text, and playing the first audio as an answer to the voice data; When the visitor type is a property staff, matching a first voice of the corresponding person based on the identity ID, synthesizing a second audio according to the first voice, the target tone and the target answer text, and playing the second audio as a response to the voice data; When the visitor type is a guest, a corresponding second sound is matched based on the visit object, a third audio is synthesized according to the second sound, the target tone and the target answer text, and the third audio is played as a response to the voice data.
2. The intelligent reception method according to claim 1, characterized in that: The collection of visitor's facial information includes: Capture images through a camera; Extracting facial features from the image to determine facial feature information; When the facial feature information includes facial information of a human face, the facial feature information is used as the facial information of the visitor; When the facial feature information includes facial information of multiple faces, determine the proportion of each facial information in the image; when the maximum proportion is unique, use the facial information corresponding to the maximum proportion as the visitor's facial information; when the maximum proportion is not unique, calculate the distance between the center coordinates of the facial information with the maximum proportion and the center point of the image, and use the facial information with the smallest distance as the visitor's facial information.
3. The intelligent reception method according to claim 1, characterized in that: The identifying and processing the facial information to determine the visitor type includes: Matching the facial information with pre-stored faces in a face database; When the match is successful, the type of the matched pre-stored face is used as the visitor type; When the match fails, the selectable visitor types are displayed on the screen, and the selected visitor type is determined in response to a touch operation. Alternatively, the focal length of the camera is adjusted to obtain a body image of the visitor, and the body image is recognized through a recognition model to determine the current clothing features. The visitor type is determined based on a similarity calculation between the current clothing features and the pre-stored first clothing features of the property staff and the second clothing features of the courier.
4. The intelligent guest reception method according to claim 3, characterized in that: The determining of the visitor type by calculating the similarity between the current clothing feature and the first clothing feature of the property staff and the second clothing feature of the courier includes: Calculating a first similarity between the current clothing feature and the first pre-stored clothing feature, and calculating a second similarity between the current clothing feature and the second pre-stored clothing feature, by using a similarity algorithm; When the first similarity is greater than or equal to the similarity threshold, the visitor type is determined to be property staff; when the second similarity is greater than or equal to the similarity threshold, the visitor type is determined to be a courier; when the first similarity is less than the similarity threshold and the second similarity is less than the similarity threshold, the visitor type is determined to be a guest.
5. The intelligent guest reception method according to claim 3 is characterized in that: Determining the emotion type according to the emotion score includes: Compare the sentiment score with a plurality of score ranges, and take the sentiment corresponding to the target score range containing the sentiment score as the sentiment type; or, Extract left eye feature information, right eye feature information, left corner of mouth feature information and right corner of mouth feature information from the facial information, determine a first interval based on the left eye feature information and the right eye feature information, determine a second interval based on the left corner of mouth feature information and the right corner of mouth feature information, determine a facial feature score based on the first interval and the second interval, perform weighted calculation based on the emotion score and the facial feature score to determine a target score, compare the target score with several score ranges, and take the emotion corresponding to the target score range that includes the target score as the emotion type.
6. An intelligent reception device, characterized in that: include: Collection module, used to collect visitors' facial information; A determination module, configured to identify and process the facial information to determine the visitor type, wherein the visitor type includes at least one of a guest, a courier, and a property staff; A matching module, used to match a personalized reception strategy according to the visitor type, and collect the visitor's voice data during the execution of the personalized reception strategy; An execution module, used for performing speech recognition processing on the speech data, and executing a target reception strategy according to the speech recognition processing result; According to the visitor type, matching the personalized reception strategy includes: When the visitor type is a courier, a prompt for finding a courier locker is played and the location of the courier locker is displayed. When the courier arrives at the location of the courier locker and deposits the item based on the last digit of the mobile phone number, the target mobile phone number is searched from the address book based on the last digit of the mobile phone number, and the information of the item to be picked up is sent to the target mobile phone number or the target mobile phone number is automatically dialed, and the information of the item to be picked up is played through text-to-speech. When the visitor type is a property staff, the pre-collected feedback information is played, and the identity ID is associated based on the feedback information, and the contact information of the identity ID is displayed. In response to a click instruction on the contact information, a call with the person corresponding to the identity ID is established. The feedback information includes repair, consultation, complaint and suggestion; When the visitor type is a guest, the guest is prompted to present the access code information, the access code information is obtained, the access object is determined according to the matching of the access code information with the access information collected in advance through the mini program, the target area on the target floor where the access object is located is determined according to the information of the access object in the database, a navigation route to the target area on the target floor is generated according to the indoor map and a navigation voice is played, and access control authority is issued to the guest based on the facial information, so that the guest can enter the elevator through the access control; The voice data includes audio information at several moments; performing voice recognition processing on the voice data and executing the target reception strategy according to the voice recognition processing result includes: Determine a first moment and a second moment adjacent to the first moment, and determine a first amplitude of the audio information at the first moment and a second amplitude of the audio information at the second moment; Calculate the product of the amplitude enhancement coefficient and the first amplitude, determine the difference between the second amplitude and the product, obtain the enhanced amplitude, update the second amplitude to the enhanced amplitude, take the second moment as the new first moment and determine the new second moment, return to the step of determining the first amplitude of the audio information at the first moment and the second amplitude of the audio information at the second moment, until the audio information at several moments is updated to obtain enhanced voice data; The enhanced voice data is framed to obtain a plurality of frames of enhanced audio signals, and the short-time average amplitude of each frame of the enhanced audio signal is calculated. When the short-time average amplitude is greater than or equal to an energy threshold, the enhanced voice data is determined as target voice data; otherwise, the enhanced voice data is sound enhanced by a sound enhancement model to obtain target voice data; Calculating an emotion score according to the target speech data, determining an emotion type according to the emotion score, and matching a target intonation from an intonation database according to the emotion type; Converting the target speech data into text content, and determining a target answer text according to the text content; When the visitor type is a courier, synthesizing a first audio based on a preset sound, the target tone, and the target answer text, and playing the first audio as an answer to the voice data; When the visitor type is a property staff, matching a first voice of the corresponding person based on the identity ID, synthesizing a second audio according to the first voice, the target tone and the target answer text, and playing the second audio as a response to the voice data; When the visitor type is a guest, a corresponding second sound is matched based on the visit object, a third audio is synthesized according to the second sound, the target tone and the target answer text, and the third audio is played as a response to the voice data.
7. An electronic device, characterized in that: include: A processor and a memory, wherein the memory stores instructions, and the instructions are loaded and executed by the processor to implement the method according to any one of claims 1 to 5.
8. A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed, the method according to any one of claims 1 to 5 is implemented.
