Voice call service method, device, equipment, medium and computer program product

By obtaining real-time voice stream segments in the intelligent voice call system, performing voiceprint extraction and matching, combined with intent recognition, the problem of voice recognition inaccuracy caused by background human voice interference is solved, and the accuracy and quality of voice call services are improved.

CN112929501BActive Publication Date: 2024-08-27WEBANK (CHINA)
View PDF 18 Cites 0 Cited by

Patent Information

Application Number
CN202110096193.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-25
Publication Date
2024-08-27
Estimated Expiration
2041-01-25

AI Technical Summary

Technical Problem

In intelligent voice call systems, background human voice interference leads to low speech recognition accuracy. Existing technologies such as channel noise reduction and background noise reduction are not ideal, and there is a certain proportion of misrecognition cases.

Method used

By obtaining real-time voice stream fragments during the voice call, voiceprint extraction and matching are performed, combined with intent recognition, and only when the matching degree between the target voiceprint and the registered voiceprint reaches the threshold and the intent recognition result indicates that there is a voice service intention, the corresponding Voice service to avoid background human voice interference.

Benefits of technology

The accuracy of the voice call service is improved, background human voice interference is reduced, and the service quality of the voice call service is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112929501B
    Figure CN112929501B
Patent Text Reader

Abstract

The present application provides a voice call service method, device, electronic device, storage medium and computer program product; the method comprises: obtaining a real-time voice stream segment during a voice call; performing voiceprint extraction on the voice stream segment to obtain a target voiceprint; matching the target voiceprint with a registered voiceprint corresponding to the voice call to obtain a corresponding matching degree; wherein the registered voiceprint is obtained by performing voiceprint extraction on the voice data corresponding to the maximum voice energy sampling window in the target voice stream segment; performing intent recognition on the text content corresponding to the voice stream segment to obtain an intent recognition result; when the matching degree reaches a matching degree threshold and the intent recognition result indicates that the voice stream segment corresponds to a voice service intent, executing a corresponding voice service based on the intent recognition result; through the present application, the interference of background human voice on the voice call service can be avoided, and the service accuracy of the voice call service can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and in particular to a voice call service method, device, electronic device, storage medium and computer program product. Background Art

[0002] With the development of technologies such as speech recognition and natural language processing, intelligent voice call services have begun to serve all walks of life. In the intelligent voice call service system, real-time speech recognition is the key to the system, and the accuracy of speech recognition directly affects the decision-making of the system. Due to the diversity of scenarios for user voice calls, especially in environments with background voices (such as noisy offices, downtown areas, etc.), the voice call service system can easily recognize the background voices and provide wrong information for system decision-making. In related technologies, channel noise reduction, background noise reduction, speech enhancement, and on-end hardware microphone noise reduction are usually used to improve. However, in practice, there is still a certain proportion of misrecognition, and the effect of removing background voices is not ideal. Summary of the invention

[0003] The embodiments of the present application provide a voice call service method, device, electronic device, storage medium and computer program product, which can avoid the interference of background human voice on the voice call service and improve the service accuracy of the voice call service.

[0004] The technical solution of the embodiment of the present application is implemented as follows:

[0005] The present application provides a voice call service method, including:

[0006] During a voice call, obtain real-time voice stream segments;

[0007] Extracting voiceprint from the voice stream segment to obtain a target voiceprint;

[0008] Matching the target voiceprint with the registered voiceprint corresponding to the voice call to obtain a corresponding matching degree;

[0009] The registered voiceprint is obtained by extracting the voiceprint of the voice data corresponding to the maximum voice energy sampling window in the target voice stream segment;

[0010] Performing intent recognition on the text content corresponding to the voice stream segment to obtain an intent recognition result;

[0011] When the matching degree reaches a matching degree threshold and the intention recognition result indicates that the voice stream segment corresponds to a voice service intention, a corresponding voice service is executed based on the intention recognition result.

[0012] The embodiment of the present application also provides a voice call service device, including:

[0013] An acquisition module is used to acquire real-time voice stream segments during a voice call;

[0014] A voiceprint extraction module, used to extract the voiceprint of the voice stream segment to obtain a target voiceprint;

[0015] A matching module, used to match the target voiceprint with the registered voiceprint corresponding to the voice call to obtain a corresponding matching degree;

[0016] The registered voiceprint is obtained by extracting the voiceprint of the voice data corresponding to the maximum voice energy sampling window in the target voice stream segment;

[0017] An intention recognition module, used to perform intention recognition on the text content corresponding to the voice stream segment to obtain an intention recognition result;

[0018] An execution module is used to execute a corresponding voice service based on the intention recognition result when the matching degree reaches a matching degree threshold and the intention recognition result indicates that the voice stream segment corresponds to a voice service intention.

[0019] In the above solution, the acquisition module is also used to acquire real-time voice stream data during the voice call;

[0020] Performing silence detection on the voice stream data to obtain a silence duration corresponding to the voice stream data;

[0021] When the silence duration reaches a preset silence detection duration, the voice stream data is segmented to obtain the voice stream segments.

[0022] In the above solution, the voiceprint extraction module is further used to convert the voice stream segment into text to obtain the text content corresponding to the voice stream segment;

[0023] Performing target text recognition on the text content to obtain a recognition result;

[0024] When the recognition result indicates that the text content contains the target text, voiceprint extraction is performed on the speech stream segment to obtain a target voiceprint.

[0025] In the above solution, the voiceprint extraction module is also used to determine the speech energy sampling window;

[0026] Based on the speech energy sampling window, sampling the speech stream segment a target number of times to obtain a target number of speech stream sub-segments corresponding to the target number of times;

[0027] Determine the speech energy corresponding to each of the speech stream sub-segments, and determine the target speech stream sub-segment corresponding to the maximum speech energy among the target number of speech stream sub-segments;

[0028] The target voiceprint is extracted from the target speech stream sub-segment to obtain a target voiceprint.

[0029] In the above solution, the voiceprint extraction module is further used to perform silence detection on the voice stream segment to obtain the silent part in the voice stream segment;

[0030] Removing the silent part in the voice stream segment to obtain the target voice stream segment contained in the voice stream segment;

[0031] Based on the speech energy sampling window, the target speech stream segment is sampled a target number of times to obtain a target number of speech stream sub-segments corresponding to the target number of times.

[0032] In the above solution, the intention recognition module is also used to obtain service text content of at least one voice service;

[0033] Performing semantic analysis on the service text content of each of the voice services to obtain first semantic content corresponding to each of the voice services, and performing semantic analysis on the text content corresponding to the voice stream segment to obtain second semantic content corresponding to the voice stream segment;

[0034] Matching the second semantic content with each of the first semantic contents respectively to obtain a semantic matching degree between each of the voice services and the voice stream segments;

[0035] Based on the semantic matching degree, a corresponding intention recognition result is determined, and the intention recognition result is used to characterize whether the voice stream segment corresponds to a voice service intention.

[0036] In the above solution, the device further comprises:

[0037] A registered voiceprint update module, configured to delete the registered voiceprint when the matching degree reaches a matching degree threshold and the intention recognition result indicates that the voice stream segment does not correspond to a voice service intention;

[0038] When the matching degree does not reach the matching degree threshold and the intention recognition result indicates that the voice stream segment corresponds to a voice service intention, the target voiceprint is used to replace the registered voiceprint.

[0039] In the above solution, the registered voiceprint update module is also used to obtain a real-time first voice stream segment during the voice call;

[0040] Extracting a voiceprint from the first voice stream segment to obtain a first voiceprint;

[0041] Matching the first voiceprint with the target voiceprint to obtain a corresponding first matching degree;

[0042] Performing intent recognition on text content corresponding to the first voice stream segment to obtain a first intent recognition result;

[0043] When the first matching degree reaches a matching degree threshold and the intention recognition result indicates that the first voice stream segment corresponds to a voice service intention, a corresponding voice service is executed based on the first intention recognition result.

[0044] In the above solution, the registered voiceprint update module is also used to obtain a real-time second voice stream segment during the voice call;

[0045] Performing voiceprint extraction on the voice data corresponding to the maximum voice energy sampling window in the second voice stream segment to obtain a second voiceprint;

[0046] Voiceprint registration is performed based on the second voiceprint to obtain a new registered voiceprint corresponding to the voice call.

[0047] In the above scheme, the device also includes:

[0048] A voiceprint registration module, used to obtain a voice stream segment of the voice call collected for the first time;

[0049] Using the first collected voice stream segment as the target voice stream segment;

[0050] Voiceprint extraction is performed on the speech data corresponding to the maximum speech energy sampling window in the target speech stream segment to obtain the registered voiceprint.

[0051] The present application also provides an electronic device, including:

[0052] A memory for storing executable instructions;

[0053] The processor is used to implement the voice call service method provided in the embodiment of the present application when executing the executable instructions stored in the memory.

[0054] The embodiment of the present application also provides a computer-readable storage medium storing executable instructions, which, when executed by a processor, implements the voice call service method provided in the embodiment of the present application.

[0055] The embodiment of the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the voice call service method provided in the embodiment of the present application.

[0056] The embodiments of the present application have the following beneficial effects:

[0057] Compared with the related art that uses channel noise reduction, background noise reduction, voice enhancement and other methods to remove the interference of background human voice, in the embodiment of the present application, during the voice call, by calculating the target voiceprint of the real-time voice stream segment and the matching degree of the registered voiceprint corresponding to the voice call, and performing intent recognition on the text content of the voice stream segment, when the matching degree reaches the matching degree threshold and the intent recognition result indicates that the voice stream segment corresponds to the voice service intent, the corresponding voice service is executed based on the intent recognition result;

[0058] Here, the registered voiceprint is obtained by extracting the voice data of the target voice stream segment corresponding to the maximum voice energy sampling window, that is, the registered voiceprint is the voiceprint of the target call user (that is, the foreground user) corresponding to the voice call. Only when the match degree between the target voiceprint of the voice stream segment and the registered voiceprint reaches the matching degree threshold and the intent recognition result indicates that the voice stream segment corresponds to the voice service intent, the corresponding voice service is executed. This can avoid the interference of background human voice on the voice call service and improve the service accuracy of the voice call service. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] Figure 1 It is a schematic diagram of the architecture of the voice call service system 10 provided in an embodiment of the present application;

[0060] Figure 2 It is a structural diagram of an electronic device 500 for a voice call service method provided in an embodiment of the present application;

[0061] Figure 3 It is a flowchart of the voice call service method provided by the embodiment of the present application;

[0062] Figure 4 This is a schematic diagram of the workflow of the voice call service provided by the embodiment of the present application;

[0063] Figure 5 It is a flowchart of the voice call service method provided by the embodiment of the present application;

[0064] Figure 6 It is a structural diagram of the voice call service device 555 provided in an embodiment of the present application. DETAILED DESCRIPTION

[0065] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.

[0066] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0067] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.

[0068] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0069] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.

[0070] 1) In response, it is used to indicate the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more operations executed may be in real time or have a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations executed are executed.

[0071] 2) Voiceprint recognition, a type of biometric technology, is also called speaker recognition, which includes speaker identification and speaker confirmation. Voiceprint recognition is to convert sound signals into electrical signals and then use computers to identify them. Different tasks and applications will use different voiceprint recognition technologies. For example, voiceprint recognition technology may be needed to narrow the scope of criminal investigation, while voiceprint confirmation technology may be needed for bank transactions.

[0072] Based on the above explanations of the nouns and terms involved in the embodiments of the present application, the voice call service system provided by the embodiments of the present application is described below. Figure 1 , Figure 11 is a schematic diagram of the architecture of the voice call service system 10 provided in an embodiment of the present application. To support an exemplary application, the terminal 400 establishes a communication connection with the voice service server 200 through the call system server 100 to realize a voice call. During the voice call, the call system server 100 collects real-time voice stream segments and sends them to the voice service server 200. The call system server 100 is connected to the server 200 through the network 300. The network 300 can be a wide area network or a local area network, or a combination of the two, and uses wireless or wired links to realize data transmission.

[0073] The terminal 400 is used to establish a communication connection with the voice service server 200 through the traffic system server 100 to realize a voice call;

[0074] The traffic system server 100 is used to collect real-time voice stream segments and send them to the voice service server 200;

[0075] The server 200 of the voice service is used to receive real-time voice stream segments, extract voiceprints from the voice stream segments, and obtain target voiceprints; match the target voiceprints with the registered voiceprints corresponding to the voice call to obtain the corresponding matching degree; perform intent recognition on the text content corresponding to the voice stream segments to obtain intent recognition results; when the matching degree reaches the matching degree threshold and the intent recognition result indicates that the voice stream segment corresponds to the voice service intent, based on the intent recognition result, execute the corresponding voice service, and return the voice response information contained in the voice service through the call system server 100.

[0076] In practical applications, the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. Terminal 400 can be a smart phone, tablet computer, laptop computer, desktop computer, smart speaker, smart TV, smart watch, etc., but is not limited to this. Terminal 400 and the server can be directly or indirectly connected via wired or wireless communication, and this application does not limit this.

[0077] See also Figure 2 , Figure 2 Schematic diagram of the structure of the electronic device 500 of the voice call service method provided in the embodiment of the present application. Figure 1 The server or terminal shown is an electronic device 500. Figure 1Taking the server shown as an example, an electronic device that implements the voice call service method of the embodiment of the present application is described. The electronic device 500 provided in the embodiment of the present application includes: at least one processor 510, a memory 550, at least one network interface 520 and a user interface 530. The various components in the electronic device 500 are coupled together through a bus system 540. It can be understood that the bus system 540 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 540 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, in Figure 2 Various buses are labeled as bus system 540 .

[0078] The processor 510 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.

[0079] The user interface 530 includes one or more output devices 531 that enable presentation of media content, including one or more speakers and / or one or more visual display screens. The user interface 530 also includes one or more input devices 532, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.

[0080] The memory 550 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard disk drives, optical disk drives, etc. The memory 550 may optionally include one or more storage devices that are physically remote from the processor 510.

[0081] The memory 550 includes a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memories. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 550 described in the embodiments of the present application is intended to include any suitable type of memory.

[0082] In some embodiments, the memory 550 can store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as exemplarily described below.

[0083] Operating system 551, including system programs for processing various basic system services and performing hardware-related tasks, such as framework layer, core library layer, driver layer, etc., for implementing various basic services and processing hardware-based tasks;

[0084] A network communication module 552, for reaching other computing devices via one or more (wired or wireless) network interfaces 520, exemplary network interfaces 520 include: Bluetooth, Wireless Compatibility Certification (WiFi), and Universal Serial Bus (USB);

[0085] a presentation module 553 for enabling presentation of information via one or more output devices 531 (e.g., display screen, speaker, etc.) associated with the user interface 530 (e.g., a user interface for operating peripherals and displaying content and information);

[0086] The input processing module 554 is used to detect one or more user inputs or interactions from one of the one or more input devices 532 and translate the detected inputs or interactions.

[0087] In some embodiments, the voice call service device provided in the embodiments of the present application can be implemented in software. Figure 2 A voice call service device 555 stored in a memory 550 is shown, which may be software in the form of a program or plug-in, including the following software modules: an acquisition module 5551, a voiceprint extraction module 5552, a matching module 5553, an intent recognition module 5554, and an execution module 5555. These modules are logical, and therefore may be arbitrarily combined or further split according to the functions implemented. The functions of each module will be described below.

[0088] In other embodiments, the voice call service device provided in the embodiments of the present application can be implemented in a combination of software and hardware. As an example, the voice call service device provided in the embodiments of the present application can be a processor in the form of a hardware decoding processor, which is programmed to execute the voice call service method provided in the embodiments of the present application. For example, the processor in the form of a hardware decoding processor can adopt one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field programmable gate arrays (FPGAs) or other electronic components.

[0089] Based on the above description of the voice call service system and electronic device provided by the embodiment of the present application, the voice call service method provided by the embodiment of the present application is described below. In some embodiments, the voice call service method provided by the embodiment of the present application can be implemented by a server or a terminal alone, or by a server and a terminal in collaboration. The voice call service method provided by the embodiment of the present application is described below using server implementation as an example.

[0090] See also Figure 3 , Figure 3 : is a flow chart of a voice call service method provided in an embodiment of the present application. The voice call service method provided in an embodiment of the present application includes:

[0091] Step 101: During a voice call, the server obtains a real-time voice stream segment.

[0092] In actual applications, the voice call can be an intelligent call call, where the user and the intelligent customer service (such as an intelligent robot customer service) establish a communication connection through the call system to realize the voice call between the two. In order to realize the voice call service, the server needs to obtain the voice stream segments in the call process in real time during the voice call to provide corresponding voice services based on the voice stream segments. The voice stream segments can be divided according to preset time intervals, or according to the pause time of the user's speech, etc.

[0093] In some embodiments, the server may obtain real-time voice stream segments in the following manner: during a voice call, obtain real-time voice stream data; perform silence detection on the voice stream data to obtain the silence duration corresponding to the voice stream data; when the silence duration reaches a preset silence detection duration, segment the voice stream data to obtain voice stream segments.

[0094] Here, during a voice call, when a user pauses in his speech, it is often because the user has finished speaking and is waiting for a reply from the other party. Therefore, in an embodiment of the present application, silence detection can be performed on the real-time voice stream data during the voice call, which can be implemented specifically through a real-time voice activity detection (VAD, Voice Activity Detection) algorithm to obtain the silence duration of the real-time voice stream data during the current voice call, that is, the pause duration of the user in the speech during the voice call. When the silence duration reaches the preset silence detection duration, it indicates that the user has finished speaking at this moment during the voice call and is waiting for a reply. At this time, the voice stream data is segmented to obtain voice stream segments for voice call services.

[0095] Step 102: extract the voiceprint of the speech stream segment to obtain the target voiceprint.

[0096] After acquiring the real-time voice stream segment during the voice call, the server extracts the voiceprint of the voice stream segment to obtain the target voiceprint. Specifically, the server can identify and extract the voiceprint biometric features of the voice stream segment through voiceprint recognition technology to obtain the target voiceprint. In actual implementation, when performing voiceprint recognition on the voice stream segment through voiceprint recognition technology, a voiceprint recognition neural network model can be pre-trained, such as a convolutional neural network model or a deep learning neural network model, so as to perform voiceprint recognition and extraction on the voice stream segment through the voiceprint recognition neural network model to obtain the target voiceprint.

[0097] In some embodiments, the server may extract voiceprints from voice stream segments in the following manner: convert the voice stream segments into text to obtain text content corresponding to the voice stream segments; perform target text recognition on the text content to obtain recognition results; when the recognition result indicates that the text content contains the target text, perform voiceprint extraction on the voice stream segments to obtain the target voiceprint.

[0098] Here, when the server extracts the voiceprint of a voice stream segment, it first converts the voice stream segment into text to obtain the text content corresponding to the voice stream segment. Specifically, it performs speech recognition on the voice stream segment to obtain a speech recognition result, and generates the text content corresponding to the voice stream segment based on the speech recognition result.

[0099] Then, the target text recognition is performed on the text content corresponding to the voice stream segment to obtain the recognition result, so as to judge whether the text content contains the target text based on the recognition result. In practical applications, the target text can be a meaningful text, that is, the text corresponding to the voice data of the user's speech in the voice stream segment. In this way, the voice stream segment that is a silent segment can be discarded to reduce the waste of resources in subsequent processing. Furthermore, a text library of meaningless text can be pre-set, such as containing modal particles such as "ah" and "uh". After obtaining the text content corresponding to the voice stream segment, the text content is matched with the text in the preset text library to judge whether the voice stream segment is all meaningless text. If so, it is determined that the text content corresponding to the voice stream segment does not contain the target text.

[0100] Next, when the recognition result indicates that the target text is included in the text content, the voiceprint is extracted from the speech stream segment to obtain the target voiceprint. In this way, the speech stream segment corresponding to the meaningless text is excluded, reducing the waste of subsequent processing resources.

[0101] In some embodiments, the server may extract voiceprints from voice stream segments in the following manner: determine a speech energy sampling window; based on the speech energy sampling window, sample the voice stream segments a target number of times to obtain a target number of speech stream sub-segments corresponding to the target number of times; determine the speech energy corresponding to each speech stream sub-segment, and determine the target speech stream sub-segment corresponding to the maximum speech energy among the target number of speech stream sub-segments; extract voiceprints from the target speech stream sub-segment to obtain a target voiceprint.

[0102] Here, when the server extracts the voiceprint of a voice stream segment, it can first sample the voice stream segment, and then extract the voiceprint of the voice stream sub-segment in the sampled voice stream segment to obtain the target voiceprint. Specifically, first determine the voice energy sampling window, which can be pre-set, and specifically set the size of the sampling window and the target number of sampling times. Based on this, after determining the voice energy sampling window, sample the voice stream segment a target number of times based on the voice energy sampling window to obtain the target number of voice stream sub-segments corresponding to the target number of times;

[0103] Then determine the speech energy corresponding to each speech stream sub-segment. Specifically, the speech energy corresponding to each speech stream sub-segment can be obtained by adding and averaging the absolute value of the energy of each audio frame in the speech stream sub-segment. Therefore, based on the speech energy corresponding to each speech stream sub-segment, determine the target speech stream sub-segment corresponding to the maximum speech energy in the target number of speech stream segments. Since the target speech stream sub-segment corresponding to the maximum speech energy is the speech data with the most concentrated and dense speech sound and the highest sound intensity in the collected speech stream segments, the target speech stream sub-segment can be identified as the speech data of the target user's concentrated speech. Therefore, the target speech stream sub-segment can be subjected to voiceprint extraction to obtain the target voiceprint.

[0104] In practical applications, the speech energy sampling window can also be set in the following manner: for example, the time length t (t>=0.5s, and t<=7s) can be used as the sampling window, and t / 2 can be used as the sampling span to set a sliding speech energy sampling window; based on this, the target number of samplings can be determined based on the size of the sampling window, the sampling span, and the duration of the speech stream segment. After determining the speech energy sampling window, the speech stream segment is sampled for the target number of times based on the set sliding speech energy sampling window to obtain the target number of speech stream sub-segments corresponding to the target number of times; then the speech energy corresponding to each speech stream sub-segment is determined, and based on the speech energy corresponding to each speech stream sub-segment, the target speech stream sub-segment corresponding to the maximum speech energy in the speech stream segment of the target number is determined. Since the target speech stream sub-segment corresponding to the maximum speech energy is the speech data with the highest speaking sound frequency (most concentrated and dense) and the highest sound intensity in the collected speech stream segment, the target speech stream sub-segment can be identified as the speech data of the target user's concentrated speaking, so the target speech stream sub-segment can be extracted to obtain the target voiceprint.

[0105] In some embodiments, the server may sample the voice stream segment a target number of times in the following manner: perform silence detection on the voice stream segment to obtain the silent part in the voice stream segment; remove the silent part in the voice stream segment to obtain the target voice stream segment contained in the voice stream segment; based on the voice energy sampling window, sample the target voice stream segment a target number of times to obtain the target number of voice stream sub-segments corresponding to the target number of times.

[0106] In practical applications, when the server samples the voice stream segment, it can first perform silence detection on the voice stream segment to obtain the silent part in the voice stream segment, and then remove the silent part in the voice stream segment to obtain the target voice stream segment contained in the voice stream segment, that is, the non-silent part in the voice stream segment; thus, based on the voice energy sampling window, the target voice stream segment is sampled a target number of times to obtain the target number of voice stream sub-segments corresponding to the target number of times. In this way, the resource consumption of subsequent sampling processing and voice energy calculation processing is reduced, and the processing efficiency is improved.

[0107] Step 103: Match the target voiceprint with the registered voiceprint corresponding to the voice call to obtain a corresponding matching degree.

[0108] The registered voiceprint is obtained by extracting the voiceprint of the speech data corresponding to the maximum speech energy sampling window in the target speech stream segment.

[0109] After the server extracts the voiceprint of the voice stream segment and obtains the target voiceprint, it matches the target voiceprint with the voice through the corresponding registered voiceprint to obtain the corresponding matching degree. The registered voiceprint is obtained by extracting the voiceprint of the voice data corresponding to the maximum voice energy sampling window in the target voice stream segment.

[0110] In some embodiments, the server may obtain the registered voiceprint in the following manner: obtain a voice stream segment of a voice call collected for the first time; use the voice stream segment collected for the first time as the target voice stream segment; perform voiceprint extraction on the voice data corresponding to the maximum voice energy sampling window in the target voice stream segment to obtain the registered voiceprint.

[0111] In actual applications, when a voice call establishes a communication connection, the first collected voice stream segment containing the user's voice during the voice call can be used as the voice stream segment of the target user corresponding to the voice call. The target user is the user to be served corresponding to the voice call service. In order to ensure that subsequent voice services are provided to the target user, it is necessary to obtain the voiceprint of the target user, which can be obtained by extracting the voiceprint from the first collected voice stream segment.

[0112] Specifically, the first collected voice stream segment is used as the target voice stream segment, and then the voice data corresponding to the maximum voice energy sampling window in the target voice stream segment is determined. Specifically, a corresponding sampling window and sampling times can be set for the target voice stream segment, and then the target voice stream segment is sampled for the sampling times based on the sampling window to obtain the target number of target voice stream sub-segments corresponding to the sampling times, and the voice energy of each target voice stream sub-segment is further determined, so as to determine the target voice stream sub-segment corresponding to the maximum voice energy. Since the target voice stream sub-segment corresponding to the maximum voice energy is the voice data with the most concentrated and intensive speech of the target user and the highest sound intensity, it can be determined that the target user is the foreground user of the voice call. At this time, the target voice stream sub-segment corresponding to the maximum voice energy is determined as the voice data corresponding to the maximum voice energy sampling window in the target voice stream segment. Thus, the obtained voice data is subjected to voiceprint extraction to obtain the voiceprint of the target user (i.e., the foreground user). In order to ensure that the subsequent voice services are provided to the target user and avoid responding to the collected voice of the background user, which affects the voice service quality, the voiceprint of the target user is registered to obtain the registered voiceprint.

[0113] In this way, in the subsequent voice call process, when the real-time voice stream segment is obtained, the voiceprint of the voice stream segment can be extracted to obtain the target voiceprint, and then the target voiceprint can be matched with the registered voiceprint to determine whether the subsequently collected voice stream segment is the voice data of the target user rather than the background user sound, so as to determine whether to execute the corresponding voice service based on this.

[0114] Step 104: Perform intent recognition on the text content corresponding to the voice stream segment to obtain an intent recognition result.

[0115] After matching the target voiceprint with the registered voiceprint and obtaining the degree of match between the two, the server performs intent recognition on the text content corresponding to the voice stream segment to determine whether the voice stream segment corresponds to a voice service intent and obtains an intent recognition result, so as to subsequently execute the corresponding voice service based on the obtained intent recognition result.

[0116] In some embodiments, the server may perform intent recognition on the text content corresponding to the voice stream segment in the following manner: obtain the service text content of at least one voice service; perform semantic analysis on the service text content of each voice service to obtain the first semantic content corresponding to each voice service, and perform semantic analysis on the text content corresponding to the voice stream segment to obtain the second semantic content corresponding to the voice stream segment; match the second semantic content with each first semantic content respectively to obtain the semantic matching degree between each voice service and the voice stream segment; based on the semantic matching degree, determine the corresponding intent recognition result, and the intent recognition result is used to characterize whether the voice stream segment corresponds to the voice service intent.

[0117] In practical applications, at least one voice service that can be provided can be pre-set for voice calls, such as balance inquiry, handling business A, canceling business B, etc. When the server performs intent recognition on the text content corresponding to the voice stream segment, it can first obtain the service text content of the at least one voice service, and perform semantic analysis on the service text of each voice service to obtain the first semantic content corresponding to each voice service; at the same time, the text content corresponding to the voice stream segment is also semantically recognized to obtain the second semantic content corresponding to the voice stream segment. Thus, the second semantic content is matched with each first semantic content respectively to obtain the semantic matching degree of each voice service and the voice stream segment, so as to determine the corresponding intent recognition result based on the semantic matching degree, and the intent recognition result is used to characterize whether the voice stream segment corresponds to the voice service intent. Specifically, a semantic matching degree threshold can be set. When the calculated semantic matching degree reaches the semantic matching degree threshold, the intent recognition result characterizes that the voice stream segment corresponds to the voice service intent; when the calculated semantic matching degree does not reach the semantic matching degree threshold, the intent recognition result characterizes that the voice stream segment does not correspond to the voice service intent.

[0118] Step 105: When the matching degree reaches the matching degree threshold and the intention recognition result indicates that the voice stream segment corresponds to the voice service intention, the corresponding voice service is executed based on the intention recognition result.

[0119] After obtaining the matching degree between the target voiceprint and the registered voiceprint, and the intention recognition result corresponding to the voice stream segment, the server determines whether to execute the voice service based on the matching degree and the intention recognition result. Specifically, when the matching degree reaches the matching degree threshold, and the intention recognition result indicates that the voice stream segment corresponds to the voice service intention, the corresponding voice service is executed based on the intention recognition result, such as checking the balance, handling business A, etc.

[0120] In some embodiments, the server may update the registered voiceprint in the following manner: when the matching degree reaches the matching degree threshold and the intent recognition result indicates that the voice stream segment does not correspond to the voice service intent, the registered voiceprint is deleted; when the matching degree does not reach the matching degree threshold and the intent recognition result indicates that the voice stream segment corresponds to the voice service intent, the registered voiceprint is replaced with the target voiceprint.

[0121] In actual applications, when the matching degree reaches the matching degree threshold, but the intent recognition result indicates that the voice stream segment does not correspond to the voice service intent, it indicates that the registered voiceprint is wrong and may be the voiceprint of the background user during the call voice process. At this time, the registered voiceprint needs to be deleted.

[0122] In some embodiments, after deleting the registered voiceprint, the server can register a new registered voiceprint in the following manner: during a voice call, obtain a real-time second voice stream segment; perform voiceprint extraction on the voice data corresponding to the maximum voice energy sampling window in the second voice stream segment to obtain a second voiceprint; perform voiceprint registration based on the second voiceprint to obtain a new registered voiceprint corresponding to the voice call.

[0123] In actual applications, when the registered voiceprint is deleted, a new registered voiceprint needs to be registered. Specifically, during a voice call, a real-time second voice stream segment is continuously obtained, and voiceprint extraction is performed on the voice data corresponding to the maximum voice energy sampling window in the second voice stream segment to obtain a second voiceprint, thereby registering the second voiceprint to obtain a new registered voiceprint corresponding to the voice call.

[0124] Here, a corresponding sampling window and sampling times can be set for the second voice stream segment, and then the second voice stream segment is sampled for the sampling times based on the sampling window to obtain the target number of second voice stream sub-segments corresponding to the sampling times, and the speech energy of each second voice stream sub-segment is further determined, so as to determine the second voice stream sub-segment corresponding to the maximum speech energy, and the second voice stream sub-segment corresponding to the maximum speech energy is determined as the speech data of the sampling window corresponding to the maximum speech energy in the second voice stream segment. Thus, voiceprint extraction is performed on the obtained voice data to obtain the second voiceprint. Then the second voiceprint is processed for voiceprint registration to obtain a new registered voiceprint corresponding to the voice call.

[0125] In actual applications, there may be cases where the registered voiceprint is incorrect. For example, the registered voiceprint is extracted based on the user voice data collected for the first time during a voice call. However, in reality, when the call is connected, the target user does not speak, but other background users speak. Based on this, the user voice data collected for the first time does not belong to the target user, and the extracted registered voiceprint does not belong to the target user. In this case, the match between the target voiceprint corresponding to the subsequently collected voice stream segment and the registered voiceprint may not reach the matching threshold, but the intent recognition result indicates that the voice stream segment corresponds to the voice service intent. At this time, the target voiceprint will be used to replace the registered voiceprint to replace the incorrectly registered registered voiceprint.

[0126] In actual applications, the target user may be changed during a voice call. Since the current registered voiceprint belongs to the first user before the target user is changed, and the target voiceprint corresponding to the voice stream segment collected after the target user is changed belongs to the second user after the change, there is also a situation where the match between the target voiceprint and the registered voiceprint does not reach the matching threshold, but the intent recognition result indicates that the voice stream segment corresponds to the voice service intent. In this case, the target voiceprint can also be used to replace the registered voiceprint to replace the registered voiceprint before the target user is changed.

[0127] In some embodiments, after replacing the registered voiceprint with the target voiceprint, the server can execute the voice service in the following manner: during the voice call, obtain a real-time first voice stream segment; extract the voiceprint of the first voice stream segment to obtain a first voiceprint; match the first voiceprint with the target voiceprint to obtain a corresponding first matching degree; perform intent recognition on the text content corresponding to the first voice stream segment to obtain a first intent recognition result; when the first matching degree reaches the matching degree threshold and the intent recognition result indicates that the first voice stream segment corresponds to a voice service intent, execute the corresponding voice service based on the first intent recognition result.

[0128] In actual applications, after the target voiceprint is used to replace the registered voiceprint, when the server subsequently performs voice services, matching is performed based on the target voiceprint. Specifically, during a voice call, a real-time first voice stream segment is obtained; voiceprint extraction is performed on the first voice stream segment to obtain a first voiceprint; the first voiceprint is matched with the target voiceprint to obtain a corresponding first matching degree; intent recognition is performed on the text content corresponding to the first voice stream segment to obtain a first intent recognition result; when the first matching degree reaches the matching degree threshold, and the intent recognition result indicates that the first voice stream segment corresponds to a voice service intent, the corresponding voice service is performed based on the first intent recognition result.

[0129] By applying the above-mentioned embodiments of the present application, compared with the related art that uses channel noise reduction, background noise reduction, voice enhancement and other methods to remove the interference of background human voice, in the embodiments of the present application, during a voice call, by calculating the target voiceprint of a real-time voice stream segment and the matching degree of the registered voiceprint corresponding to the voice call, and performing intent recognition on the text content of the voice stream segment, when the matching degree reaches the matching degree threshold and the intent recognition result indicates that the voice stream segment corresponds to the voice service intent, the corresponding voice service is executed based on the intent recognition result;

[0130] Here, the registered voiceprint is obtained by extracting the voice data of the target voice stream segment corresponding to the maximum voice energy sampling window, that is, the registered voiceprint is the voiceprint of the target call user (that is, the foreground user) corresponding to the voice call. Only when the match degree between the target voiceprint of the voice stream segment and the registered voiceprint reaches the matching degree threshold and the intent recognition result indicates that the voice stream segment corresponds to the voice service intent, the corresponding voice service is executed. This can avoid the interference of background human voice on the voice call service and improve the service accuracy of the voice call service.

[0131] The following is a description of the voice call service method provided by the embodiment of the present application. Figure 4 , Figure 4 Here, for an intelligent voice call, from the moment of connection, the call system will send the collected user's audio data segments (generally about 0.2 seconds of voice data) to the real-time voice recognition system in real time.

[0132] The speech recognition system will segment the speech data according to the silence of the voice stream to obtain speech stream segments, and convert the speech stream segments into text to obtain the corresponding text content, and then send the text content corresponding to the speech stream segments to the intelligent voice service system for intent recognition to obtain the intent recognition result; at the same time, the speech recognition system also extracts the target voiceprint of the voice stream segment, matches the target voiceprint with the registered voiceprint of the voice call, obtains the voiceprint matching degree and sends it to the intelligent voice service system.

[0133] The intelligent voice service system then determines the voice service decision based on the intent recognition results and the matching degree. When the matching degree reaches the matching threshold and the intent recognition result indicates that the voice stream segment corresponds to the voice service intent, a response script is generated and sent to the user through the call system or the corresponding voice service is executed.

[0134] Continue to see Figure 5 , Figure 5 : is a flow chart of a voice call service method provided in an embodiment of the present application. The voice call service method provided in an embodiment of the present application includes:

[0135] Step 201: Establish a voice call service.

[0136] Step 202: The real-time speech recognition system receives the speech stream data segments sent by the traffic system in real time.

[0137] Step 203: Check whether the silence duration of the voice stream data reaches the silence detection duration. If yes, execute step 204; if no, return to execute step 202.

[0138] Here, for the real-time voice stream data currently being worked on, the voice stream segments received in real time are sent to the voice recognition decoder. When detecting whether the silence duration of the voice stream data reaches the silence detection duration, step 204 is executed. If not, the process returns to step 202 to receive the voice stream data in real time.

[0139] Step 204: segment the voice stream data to obtain voice stream segments, and obtain text content corresponding to the voice stream segments.

[0140] Step 205: Determine whether the text content is meaningful text. If not, execute step 206; if so, execute step 207.

[0141] Step 206: clear the text content corresponding to the voice stream segment, and set the voiceprint similarity between the target voiceprint of the voice stream segment and the registered voiceprint to the minimum value.

[0142] Step 207: Acquire speech data corresponding to the maximum speech energy sampling window in the speech stream segment.

[0143] Here, for the voice stream segment audio_segment_all, the silent part is removed according to the VAD algorithm to obtain the voice segment audio_segment_energy of the non-silent part; with the time length t (t>=0.5 seconds, and t<=7 seconds) as the sampling window and t / 2 as the span, the voice stream segment audio_segment_all is subjected to sliding sampling to obtain a plurality of voice stream sub-segments corresponding to the sliding sampling window; then the voice energy corresponding to each voice stream sub-segment is calculated, specifically, the voice energy corresponding to each voice stream sub-segment can be obtained by summing up the absolute value of the energy of each audio frame (i.e., the audio sampling point in the sampling window) in the voice stream sub-segment, and calculating the average value of the summed result based on the number of audio frames, and finally the result obtained by the average value calculation is used as the voice energy corresponding to the corresponding voice stream sub-segment; then based on the voice energy corresponding to each voice stream sub-segment, the voice stream sub-segment corresponding to the maximum voice energy is determined, wherein the voice stream sub-segment with the maximum voice energy is the voice data with the highest sound frequency and the largest sound intensity in the voice stream segment. Based on this, the voice stream sub-segment corresponding to the maximum voice energy is determined as the voice data audio_max_energy corresponding to the maximum energy value sampling window, which is used for voiceprint registration or comparison.

[0144] Step 208: Determine whether there is a registered voiceprint. If not, execute step 209; if yes, execute step 210.

[0145] Step 209: extract the voiceprint of the voice stream segment and register the voiceprint to obtain the registered voiceprint, and set the voiceprint similarity between the target voiceprint of the voice stream segment and the registered voiceprint to the maximum value.

[0146] Step 210: extract the target voiceprint of the speech stream segment, and determine the voiceprint similarity between the target voiceprint and the registered voiceprint.

[0147] Step 211: Return the text content and voiceprint similarity of the voice stream segment to the intelligent voice service system.

[0148] Step 212: The intelligent voice service system performs intent recognition on the text content of the voice stream segment to obtain an intent recognition result.

[0149] Step 213: Whether the text content is an intended text and the voiceprint similarity is lower than the similarity threshold, if so, execute step 214, if not, execute step 215.

[0150] Step 214: Replace the registered voiceprint with the target voiceprint of the voice stream segment.

[0151] Here, after the registered voiceprint is replaced with the target voiceprint of the voice stream segment, when the voice stream segment continues to be received, the voiceprint of the subsequently received voice stream segment is compared with the target voiceprint.

[0152] Step 215: Whether the text content is non-intentional text and the voiceprint similarity is higher than the similarity threshold, if so, execute step 216, if not, execute step 217.

[0153] Step 216: Delete the current registered voiceprint.

[0154] Step 217: Determine whether the voice stream data is finished, if so, execute step 218, if not, return to execute step 202.

[0155] Here, if the text content is non-intentional text and the voiceprint similarity is lower than the similarity threshold, a fallback response message is generated and returned to the user; if the text content is intentional text and the voiceprint similarity is higher than the similarity threshold, the corresponding voice service is executed and the corresponding response message is returned.

[0156] Step 218: End the voice call service.

[0157] By applying the above embodiments of the present application, firstly, the voiceprint is linked with the intent recognition system to dynamically update the registered voiceprint in real time to avoid registering an erroneous voiceprint at the beginning and being unable to correct it; secondly, voice data for voiceprint registration and comparison is obtained based on voice energy to reduce the amount of calculation and improve real-time performance.

[0158] The following is a description of the voice call service device 555 provided in the embodiment of the present application. In some embodiments, the voice call service device can be implemented in the form of a software module. Figure 6 , Figure 6 : is a schematic diagram of the structure of a voice call service device 555 provided in an embodiment of the present application. The voice call service device 555 provided in an embodiment of the present application includes:

[0159] The acquisition module 5551 is used to acquire real-time voice stream segments during a voice call;

[0160] A voiceprint extraction module 5552 is used to extract the voiceprint of the voice stream segment to obtain a target voiceprint;

[0161] A matching module 5553, used to match the target voiceprint with the registered voiceprint corresponding to the voice call to obtain a corresponding matching degree;

[0162] The registered voiceprint is obtained by extracting the voiceprint of the voice data corresponding to the maximum voice energy sampling window in the target voice stream segment;

[0163] The intention recognition module 5554 is used to perform intention recognition on the text content corresponding to the voice stream segment to obtain an intention recognition result;

[0164] The execution module 5555 is used to execute the corresponding voice service based on the intention recognition result when the matching degree reaches the matching degree threshold and the intention recognition result indicates that the voice stream segment corresponds to the voice service intention.

[0165] In some embodiments, the acquisition module 5551 is further used to acquire real-time voice stream data during the voice call;

[0166] Performing silence detection on the voice stream data to obtain a silence duration corresponding to the voice stream data;

[0167] When the silence duration reaches a preset silence detection duration, the voice stream data is segmented to obtain the voice stream segments.

[0168] In some embodiments, the voiceprint extraction module 5552 is further used to convert the voice stream segment into text to obtain text content corresponding to the voice stream segment;

[0169] Performing target text recognition on the text content to obtain a recognition result;

[0170] When the recognition result indicates that the text content contains the target text, voiceprint extraction is performed on the speech stream segment to obtain a target voiceprint.

[0171] In some embodiments, the voiceprint extraction module 5552 is further used to determine a speech energy sampling window;

[0172] Based on the speech energy sampling window, sampling the speech stream segment a target number of times to obtain a target number of speech stream sub-segments corresponding to the target number of times;

[0173] Determine the speech energy corresponding to each of the speech stream sub-segments, and determine the target speech stream sub-segment corresponding to the maximum speech energy among the target number of speech stream sub-segments;

[0174] The target voiceprint is extracted from the target speech stream sub-segment to obtain a target voiceprint.

[0175] In some embodiments, the voiceprint extraction module 5552 is further used to perform silence detection on the voice stream segment to obtain the silence part in the voice stream segment;

[0176] Removing the silent part in the voice stream segment to obtain the target voice stream segment contained in the voice stream segment;

[0177] Based on the speech energy sampling window, the target speech stream segment is sampled a target number of times to obtain a target number of speech stream sub-segments corresponding to the target number of times.

[0178] In some embodiments, the intention recognition module 5554 is further used to obtain service text content of at least one voice service;

[0179] Performing semantic analysis on the service text content of each of the voice services to obtain first semantic content corresponding to each of the voice services, and performing semantic analysis on the text content corresponding to the voice stream segment to obtain second semantic content corresponding to the voice stream segment;

[0180] Matching the second semantic content with each of the first semantic contents respectively to obtain a semantic matching degree between each of the voice services and the voice stream segments;

[0181] Based on the semantic matching degree, a corresponding intention recognition result is determined, and the intention recognition result is used to characterize whether the voice stream segment corresponds to a voice service intention.

[0182] In some embodiments, the apparatus further comprises:

[0183] A registered voiceprint update module, configured to delete the registered voiceprint when the matching degree reaches a matching degree threshold and the intention recognition result indicates that the voice stream segment does not correspond to a voice service intention;

[0184] When the matching degree does not reach the matching degree threshold and the intention recognition result indicates that the voice stream segment corresponds to a voice service intention, the target voiceprint is used to replace the registered voiceprint.

[0185] In some embodiments, the registered voiceprint update module is further used to obtain a real-time first voice stream segment during the voice call;

[0186] Extracting a voiceprint from the first voice stream segment to obtain a first voiceprint;

[0187] Matching the first voiceprint with the target voiceprint to obtain a corresponding first matching degree;

[0188] Performing intent recognition on text content corresponding to the first voice stream segment to obtain a first intent recognition result;

[0189] When the first matching degree reaches a matching degree threshold and the intention recognition result indicates that the first voice stream segment corresponds to a voice service intention, a corresponding voice service is executed based on the first intention recognition result.

[0190] In some embodiments, the registered voiceprint update module is further used to obtain a real-time second voice stream segment during the voice call;

[0191] Performing voiceprint extraction on the voice data corresponding to the maximum voice energy sampling window in the second voice stream segment to obtain a second voiceprint;

[0192] Voiceprint registration is performed based on the second voiceprint to obtain a new registered voiceprint corresponding to the voice call.

[0193] In some embodiments, the apparatus further comprises:

[0194] A voiceprint registration module, used to obtain a voice stream segment of the voice call collected for the first time;

[0195] Using the first collected voice stream segment as the target voice stream segment;

[0196] Voiceprint extraction is performed on the speech data corresponding to the maximum speech energy sampling window in the target speech stream segment to obtain the registered voiceprint.

[0197] By applying the above-mentioned embodiments of the present application, compared with the related art that uses channel noise reduction, background noise reduction, voice enhancement and other methods to remove the interference of background human voice, in the embodiments of the present application, during a voice call, by calculating the target voiceprint of a real-time voice stream segment and the matching degree of the registered voiceprint corresponding to the voice call, and performing intent recognition on the text content of the voice stream segment, when the matching degree reaches the matching degree threshold and the intent recognition result indicates that the voice stream segment corresponds to the voice service intent, the corresponding voice service is executed based on the intent recognition result;

[0198] Here, the registered voiceprint is obtained by extracting the voice data of the target voice stream segment corresponding to the maximum voice energy sampling window, that is, the registered voiceprint is the voiceprint of the target call user (that is, the foreground user) corresponding to the voice call. Only when the match degree between the target voiceprint of the voice stream segment and the registered voiceprint reaches the matching degree threshold and the intent recognition result indicates that the voice stream segment corresponds to the voice service intent, the corresponding voice service is executed. This can avoid the interference of background human voice on the voice call service and improve the service accuracy of the voice call service.

[0199] The present application also provides an electronic device, the electronic device comprising:

[0200] A memory for storing executable instructions;

[0201] The processor is used to implement the voice call service method provided in the embodiment of the present application when executing the executable instructions stored in the memory.

[0202] The embodiment of the present application also provides a computer-readable storage medium storing executable instructions, which, when executed by a processor, implements the voice call service method provided in the embodiment of the present application.

[0203] The embodiment of the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the voice call service method provided in the embodiment of the present application.

[0204] In some embodiments, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface storage, optical disk, or CD-ROM; or it may be various devices including one or any combination of the above memories.

[0205] In some embodiments, executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.

[0206] As an example, executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).

[0207] By way of example, executable instructions may be deployed to be executed on one computing device, or on multiple computing devices located at one site, or on multiple computing devices distributed across multiple sites and interconnected by a communication network.

[0208] The above is only an embodiment of the present application and is not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the present application are included in the protection scope of the present application.

Claims

1. A voice call service method, characterized in that: The method comprises: During a voice call, obtain real-time voice stream segments; Extracting voiceprint from the voice stream segment to obtain a target voiceprint; Matching the target voiceprint with the registered voiceprint corresponding to the voice call to obtain a corresponding matching degree; The registered voiceprint is obtained by extracting the voiceprint of the voice data corresponding to the maximum voice energy sampling window in the target voice stream segment; Performing intent recognition on the text content corresponding to the voice stream segment to obtain an intent recognition result; When the matching degree reaches a matching degree threshold and the intention recognition result indicates that the voice stream segment corresponds to a voice service intention, executing a corresponding voice service based on the intention recognition result; The intention recognition is performed on the text content corresponding to the voice stream segment to obtain the intention recognition result, including: Obtain service text content of at least one voice service; Performing semantic analysis on the service text content of each of the voice services to obtain first semantic content corresponding to each of the voice services, and performing semantic analysis on the text content corresponding to the voice stream segment to obtain second semantic content corresponding to the voice stream segment; Matching the second semantic content with each of the first semantic contents respectively to obtain a semantic matching degree between each of the voice services and the voice stream segments; Based on the semantic matching degree, a corresponding intention recognition result is determined, and the intention recognition result is used to characterize whether the voice stream segment corresponds to a voice service intention.

2. The method according to claim 1, characterized in that The extracting the voiceprint from the voice stream segment to obtain the target voiceprint includes: Converting the speech stream segment into text to obtain text content corresponding to the speech stream segment; Performing target text recognition on the text content to obtain a recognition result; When the recognition result indicates that the text content contains the target text, voiceprint extraction is performed on the speech stream segment to obtain a target voiceprint.

3. The method according to claim 1, characterized in that The extracting the voiceprint from the voice stream segment to obtain the target voiceprint includes: Determine a speech energy sampling window; Based on the speech energy sampling window, sampling the speech stream segment a target number of times to obtain a target number of speech stream sub-segments corresponding to the target number of times; Determine the speech energy corresponding to each of the speech stream sub-segments, and determine the target speech stream sub-segment corresponding to the maximum speech energy among the target number of speech stream sub-segments; The target voiceprint is extracted from the target speech stream sub-segment to obtain a target voiceprint.

4. The method according to claim 3, characterized in that The step of sampling the voice stream segment a target number of times based on the voice energy sampling window to obtain a target number of voice stream sub-segments corresponding to the target number of times includes: Performing silence detection on the voice stream segment to obtain a silence part in the voice stream segment; Removing the silent part in the voice stream segment to obtain the target voice stream segment contained in the voice stream segment; Based on the speech energy sampling window, the target speech stream segment is sampled a target number of times to obtain a target number of speech stream sub-segments corresponding to the target number of times.

5. The method according to claim 1, characterized in that The method further comprises: When the matching degree reaches a matching degree threshold and the intention recognition result indicates that the voice stream segment does not correspond to a voice service intention, deleting the registered voiceprint; When the matching degree does not reach the matching degree threshold and the intention recognition result indicates that the voice stream segment corresponds to a voice service intention, the target voiceprint is used to replace the registered voiceprint.

6. The method according to claim 5, characterized in that After the target voiceprint is used to replace the registered voiceprint, the method further includes: During the voice call, obtaining a real-time first voice stream segment; Extracting a voiceprint from the first voice stream segment to obtain a first voiceprint; Matching the first voiceprint with the target voiceprint to obtain a corresponding first matching degree; Performing intent recognition on text content corresponding to the first voice stream segment to obtain a first intent recognition result; When the first matching degree reaches a matching degree threshold and the intention recognition result indicates that the first voice stream segment corresponds to a voice service intention, a corresponding voice service is executed based on the first intention recognition result.

7. The method according to claim 5, characterized in that After deleting the registered voiceprint, the method further includes: During the voice call, obtaining a real-time second voice stream segment; Performing voiceprint extraction on the voice data corresponding to the maximum voice energy sampling window in the second voice stream segment to obtain a second voiceprint; Voiceprint registration is performed based on the second voiceprint to obtain a new registered voiceprint corresponding to the voice call.

8. The method according to claim 1, characterized in that The method further comprises: Acquire a voice stream segment of the voice call collected for the first time; Using the first collected voice stream segment as the target voice stream segment; Voiceprint extraction is performed on the speech data corresponding to the maximum speech energy sampling window in the target speech stream segment to obtain the registered voiceprint.

9. The method according to claim 1, characterized in that During the voice call, obtaining a real-time voice stream segment includes: During the voice call, obtaining real-time voice stream data; Performing silence detection on the voice stream data to obtain a silence duration corresponding to the voice stream data; When the silence duration reaches a preset silence detection duration, the voice stream data is segmented to obtain the voice stream segments.

10. A voice call service device, characterized in that: The device comprises: An acquisition module is used to acquire real-time voice stream segments during a voice call; A voiceprint extraction module, used to extract the voiceprint of the voice stream segment to obtain a target voiceprint; A matching module, used to match the target voiceprint with the registered voiceprint corresponding to the voice call to obtain a corresponding matching degree; The registered voiceprint is obtained by extracting the voiceprint of the voice data corresponding to the maximum voice energy sampling window in the target voice stream segment; An intention recognition module is used to perform intention recognition on the text content corresponding to the voice stream segment to obtain an intention recognition result; wherein, performing intention recognition on the text content corresponding to the voice stream segment to obtain an intention recognition result includes: obtaining service text content of at least one voice service; performing semantic analysis on the service text content of each voice service to obtain a first semantic content corresponding to each voice service, and performing semantic analysis on the text content corresponding to the voice stream segment to obtain a second semantic content corresponding to the voice stream segment; matching the second semantic content with each first semantic content respectively to obtain a semantic matching degree between each voice service and the voice stream segment; determining a corresponding intention recognition result based on the semantic matching degree, and the intention recognition result is used to characterize whether the voice stream segment corresponds to a voice service intention; An execution module is used to execute a corresponding voice service based on the intention recognition result when the matching degree reaches a matching degree threshold and the intention recognition result indicates that the voice stream segment corresponds to a voice service intention.

11. An electronic device, characterized in that: The electronic device comprises: A memory for storing executable instructions; The processor is used to implement the voice call service method described in any one of claims 1 to 9 when executing the executable instructions stored in the memory.

12. A computer-readable storage medium, characterized in that: Executable instructions are stored, and when the executable instructions are executed, they are used to implement the voice call service method according to any one of claims 1 to 9.

13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the voice call service method according to any one of claims 1 to 9 is implemented.

Citation Information

Patent Citations

  • Identity recognition method and system based on voiceprint recognition

    CN103258535A

  • Voice data processing method and terminal

    CN105096937A

  • Voice instruction identification method, system and robot

    CN107293293A

  • Method and device for pushing information

    CN107623614A

  • Authentication method and device based on voiceprint recognition, unit and storage medium

    CN109473108A