Speech processing method, system and device

The speech recognition results and speech synthesis results are directly forwarded through the speech recognition server, which solves the problems of slow response speed and large time consumption caused by multiple interactions of terminal devices, and achieves faster voice interaction efficiency.

CN113823282BActive Publication Date: 2024-08-30BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202111108547.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-06-26
Publication Date
2024-08-30
Estimated Expiration
2039-06-26

AI Technical Summary

Technical Problem

When the user conducts voice interaction with the terminal device, the terminal device needs to interact with the server multiple times, causing the analysis and processing of processing requests to slow down the response speed and consume a lot of time.

Method used

The speech recognition server receives the user's voice sent by the terminal device, performs speech recognition, and sends the results to the semantic server and speech synthesis server. The terminal device omits the analysis and processing of the results returned by the server, and directly forwards the reply speech of the speech synthesis server to the terminal device. .

Benefits of technology

It effectively shortens the reaction time when the terminal device interacts with the user, saves processing time, and improves interaction efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113823282B
    Figure CN113823282B
Patent Text Reader

Abstract

The embodiments of the present application disclose a speech processing method, system and device. A specific implementation of the method includes: receiving a user speech sent by a terminal device, performing speech recognition on the user speech, and obtaining a speech recognition result; sending the speech recognition result to a semantic server, receiving a reply text returned by the semantic server for the speech recognition result; sending the reply text to a speech synthesis server, and forwarding the received reply speech sent by the speech synthesis server to the terminal device. The embodiments of the present application omit the terminal device from analyzing and processing the results returned by the server and generating requests, which effectively saves processing time, thereby shortening the reaction time of the terminal device when the terminal device interacts with the user.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application is a divisional application of the Chinese patent application with the application date of June 26, 2019, application number 201910563423.7, and invention name “Speech Processing Method, System and Device”. Technical Field

[0003] The embodiments of the present application relate to the field of computer technology, specifically to the field of Internet technology, and in particular to a method, system and device for voice processing. Background Art

[0004] In the related art, during the voice interaction between the user and the terminal device, the terminal device often needs to interact with the server multiple times. Generally speaking, the terminal device needs to send processing requests to the speech recognition server, the semantic recognition server and the speech synthesis server in sequence to interact with these servers.

[0005] Before the terminal device sends a processing request to the server, it needs to perform analysis and processing, which slows down the response speed when interacting with the user by voice. In addition, the terminal device needs to communicate with the server multiple times, which also consumes a lot of time. Summary of the invention

[0006] The embodiments of the present application provide a speech processing method, system and device.

[0007] In the first aspect, an embodiment of the present application provides a speech processing method for a speech recognition server, the method comprising: receiving a user speech sent by a terminal device, performing speech recognition on the user speech, and obtaining a speech recognition result; sending the speech recognition result to a semantic server, and receiving a reply text returned by the semantic server for the speech recognition result; sending a reply text to a speech synthesis server, and forwarding the reply speech sent by the received speech synthesis server to the terminal device.

[0008] In some embodiments, the speech recognition server, semantic server, and speech synthesis server are arranged in the same local area network.

[0009] In some embodiments, the method further includes: in response to obtaining a voice recognition result, sending the voice recognition result to the terminal device; and the method further includes: in response to receiving a reply text, sending a reply text to the terminal device.

[0010] In some embodiments, before sending the speech recognition result to the semantic server, the method also includes: determining whether the speech recognition result is valid and related to the recognition result of the previous speech, generating a first judgment result, wherein the previous speech and the user voice are in the same wake-up interaction process; and sending the speech recognition result to the semantic server, including: sending the speech recognition result to the semantic server so that the semantic server determines whether the speech recognition result conforms to the preset session semantic type and generates a second judgment result; and before sending the speech recognition result to the terminal device, the method also includes: receiving the second judgment result fed back by the semantic server, and determining whether the user voice is meaningful speech based on the first judgment result and the second judgment result.

[0011] In some embodiments, sending the speech recognition result to the terminal device includes: in response to determining that the user speech is meaningful speech, sending the speech recognition result to the terminal device.

[0012] In some embodiments, determining whether the user voice is a meaningful voice based on the first judgment result and the second judgment result includes: in response to determining that at least one of the first judgment result and the second judgment result is yes, determining that the user voice is a meaningful voice.

[0013] In some embodiments, the first judgment result and the second judgment result are expressed in the form of numerical values, the numerical value of the first judgment result is used to characterize the probability that the speech recognition result is valid and related to the recognition result of the previous speech, and the numerical value of the second judgment result is used to characterize the probability that the speech recognition result conforms to the preset conversation semantic type; and based on the first judgment result and the second judgment result, determining whether the user speech is a meaningful speech includes: determining the sum of the numerical value of the first judgment result and the numerical value of the second judgment result; in response to determining that the sum is greater than or equal to a preset threshold, determining that the user speech is a meaningful speech.

[0014] In some embodiments, the value of the second judgment result is the largest value among multiple candidate values ​​determined by the semantic server using multiple preset session semantic type models.

[0015] In the second aspect, an embodiment of the present application provides a speech processing device for a speech recognition server, the device comprising: a speech recognition unit, configured to receive a user speech sent by a terminal device, perform speech recognition on the user speech, and obtain a speech recognition result; a text generation unit, configured to send the speech recognition result to a semantic server, and receive at least one reply text returned by the semantic server for the speech recognition result; a feedback unit, configured to send a reply text in at least one reply text to a speech synthesis server, and forward the received reply speech sent by the speech synthesis server to the terminal device, wherein the reply speech is generated based on the reply text sent by the speech synthesis server.

[0016] In some embodiments, the speech recognition server, semantic server, and speech synthesis server are arranged in the same local area network.

[0017] In some embodiments, the apparatus further includes: a first sending unit configured to send a speech recognition result to a terminal device in response to obtaining a speech recognition result; and the method further includes: a second sending unit configured to send a reply text to the terminal device in response to receiving a reply text.

[0018] In some embodiments, the device also includes: a judgment unit, configured to judge whether the speech recognition result is valid and related to the recognition result of the previous speech before sending the speech recognition result to the semantic server, and generate a first judgment result, wherein the previous speech and the user voice are in the same wake-up interaction process; and a text generation unit, including: a first sending module, configured to send the speech recognition result to the semantic server, so that the semantic server determines whether the speech recognition result conforms to the preset session semantic type and generates a second judgment result; and the device also includes: a receiving unit, configured to receive the second judgment result fed back by the semantic server before sending the speech recognition result to the terminal device, and determine whether the user voice is meaningful speech based on the first judgment result and the second judgment result.

[0019] In some embodiments, the first sending unit includes: a second sending module sends a speech recognition result to a terminal device in response to determining that the user's speech is meaningful speech.

[0020] In some embodiments, the receiving unit includes: a determination module configured to determine that the user voice is a meaningful voice in response to determining that at least one of the first judgment result and the second judgment result is yes.

[0021] In some embodiments, the first judgment result and the second judgment result are expressed in the form of numerical values, the numerical value of the first judgment result is used to characterize the probability that the speech recognition result is valid and related to the recognition result of the previous speech, and the numerical value of the second judgment result is used to characterize the probability that the speech recognition result conforms to the preset conversation semantic type; and based on the first judgment result and the second judgment result, determining whether the user speech is a meaningful speech includes: determining the sum of the numerical value of the first judgment result and the numerical value of the second judgment result; in response to determining that the sum is greater than or equal to a preset threshold, determining that the user speech is a meaningful speech.

[0022] In some embodiments, the value of the second judgment result is the largest value among multiple candidate values ​​determined by the semantic server using multiple preset session semantic type models.

[0023] In a third aspect, an embodiment of the present application provides a speech processing system, including a speech recognition server, a semantic server and a speech synthesis server; the speech recognition server is used to receive user speech sent by a terminal device, perform speech recognition on the user speech, obtain a speech recognition result, send the speech recognition result to the semantic server, and send the reply text returned by the semantic server to the speech synthesis server, receive the reply speech of the reply text sent by the speech synthesis server, and send the reply speech to the terminal device.

[0024] In some embodiments, the speech recognition server, semantic server, and speech synthesis server are arranged in the same local area network.

[0025] In some embodiments, the speech recognition server is further used to send the speech recognition result to the terminal device in response to obtaining the speech recognition result; and the speech recognition server is further used to send the reply text to the terminal device in response to receiving the reply text.

[0026] In some embodiments, the semantic server is also used to receive a text generation request, wherein the text generation request is sent by the terminal device to the semantic server in response to not receiving a reply text and a reply voice within a first preset time period, and the text generation request includes a voice recognition result. The first preset time period takes the receipt of the voice recognition result by the terminal device as the timing starting point.

[0027] In some embodiments, the speech synthesis server is also used to receive a speech synthesis request, wherein the speech synthesis request is sent by the terminal device to the speech synthesis server in response to receiving a reply text but not receiving a reply voice within a second preset time period, the speech synthesis request includes the reply text, and the second preset time period starts with the terminal device receiving the speech recognition result or receiving the reply text.

[0028] In some embodiments, the speech recognition server, before sending the speech recognition result to the semantic server, is also used to determine whether the speech recognition result is valid and related to the recognition result of the previous speech, and generates a first judgment result, wherein the previous speech and the user voice are in the same wake-up interaction process; the speech recognition server is also used to send the speech recognition result to the semantic server; the semantic server is also used to determine whether the speech recognition result conforms to the preset session semantic type and generates a second judgment result; and the speech recognition server, before sending the speech recognition result to the terminal device, is also used to receive the second judgment result fed back by the semantic server, and determine whether the user voice is meaningful speech based on the first judgment result and the second judgment result.

[0029] In some embodiments, the speech recognition server is further configured to send a speech recognition result to a terminal device in response to determining that the user speech is meaningful speech.

[0030] In some embodiments, the speech recognition server is further configured to determine that the user speech is meaningful speech in response to determining that at least one of the first judgment result and the second judgment result is yes.

[0031] In some embodiments, the first judgment result and the second judgment result are expressed in the form of numerical values, the numerical value of the first judgment result is used to characterize the probability that the speech recognition result is valid and related to the recognition result of the previous speech, and the numerical value of the second judgment result is used to characterize the probability that the speech recognition result conforms to a preset conversation semantic type; and the speech recognition server is also used to determine the sum of the numerical value of the first judgment result and the numerical value of the second judgment result; in response to determining that the sum is greater than or equal to a preset threshold, the user speech is determined to be meaningful speech.

[0032] In some embodiments, the semantic server is further used to determine multiple candidate values ​​using multiple preset session semantic type models; and determine the largest value among the multiple candidate values ​​as the value of the second judgment result.

[0033] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by one or more processors, the one or more processors implement a method such as any embodiment of the speech processing method.

[0034] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a method as in any embodiment of the speech processing method.

[0035] The speech processing solution provided in the embodiment of the present application first receives the user speech sent by the terminal device, performs speech recognition on the user speech, and obtains the speech recognition result. After that, the speech recognition result is sent to the semantic server, and the reply text returned by the semantic server for the speech recognition result is received. Finally, the reply text is sent to the speech synthesis server, and the reply speech sent by the received speech synthesis server is forwarded to the terminal device. The embodiment of the present application omits the terminal device from analyzing and processing the results returned by the server and generating requests, which effectively saves processing time, and can further shorten the reaction time of the terminal device when the terminal device interacts with the user. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

[0037] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;

[0038] Figure 2 is a flow chart of an embodiment of a speech processing method according to the present application;

[0039] Figure 3 is a structural schematic diagram of an embodiment of a speech processing system according to the present application;

[0040] Figure 4 is a structural schematic diagram of an embodiment of a speech processing device according to the present application;

[0041] Figure 5 It is a structural diagram of a computer system suitable for implementing an electronic device of an embodiment of the present application. DETAILED DESCRIPTION

[0042] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It should also be noted that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.

[0043] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0044] Figure 1 An exemplary system architecture 100 is shown to which an embodiment of a speech processing method or a speech processing apparatus of the present application can be applied.

[0045] like Figure 1 As shown, the system architecture 100 may include a terminal device 101, a network 102, and servers 103, 104, 105. The network 102 is used to provide a medium for a communication link between the terminal device 101 and the servers 103, 104, 105. The network 102 may include various connection types, such as wired, wireless communication links, or optical fiber cables.

[0046] The user can use the terminal device 101 to interact with the servers 103, 104, 105 through the network 102 to receive or send messages, etc. Various communication client applications can be installed on the terminal device 101, such as voice processing applications, video applications, live broadcast applications, instant messaging tools, email clients, social platform software, etc.

[0047] The terminal device 101 here can be hardware or software. When the terminal device 101 is hardware, it can be various electronic devices with display screens, including but not limited to smart phones, tablet computers, e-book readers, laptop portable computers and desktop computers, etc. When the terminal device 101 is software, it can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (for example, multiple software or software modules for providing distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.

[0048] Servers 103, 104, and 105 may be servers that provide various services, including speech recognition servers, semantic servers, and speech synthesis servers. In practice, servers 103, 104, and 105 may be arranged in the same local area network. For example, a backend server that provides support for terminal device 101. The backend server may analyze and process received user speech and other data, and feed back the processing results (e.g., reply speech) to the terminal device.

[0049] It should be noted that the speech processing method provided in the embodiment of the present application can be executed by the server 103, 104, 105 or the terminal device 101, and accordingly, the speech processing device can be set in the server 103, 104, 105 or the terminal device 101.

[0050] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.

[0051] Continue to refer Figure 2 , shows a process 200 of an embodiment of a speech processing method according to the present application. The speech processing method comprises the following steps:

[0052] Step 201, receiving the user voice sent by the terminal device, performing voice recognition on the user voice, and obtaining a voice recognition result.

[0053] In this embodiment, the execution subject of the speech processing method (for example Figure 1 The server shown in the figure can receive the user voice sent by the terminal device. In addition, the above-mentioned execution subject can perform voice recognition on the user voice to obtain a voice recognition result. Specifically, voice recognition is the process of converting voice into corresponding text. The voice recognition result here refers to the converted text.

[0054] Step 202: Send the speech recognition result to the semantic server, and receive a reply text returned by the semantic server for the speech recognition result.

[0055] In this embodiment, the execution subject may send the obtained speech recognition result to the semantic server and receive the reply text returned by the semantic server. The reply text here is the reply text for the above speech recognition result. Specifically, the semantic server may analyze and process the speech recognition result to obtain the reply text for replying to the user in the process of interacting with the user. Here, the obtained reply text is generally only a reply text.

[0056] In some optional implementations of this embodiment, the method further includes:

[0057] In response to obtaining a speech recognition result, the speech recognition result is sent to the terminal device; in response to receiving a reply text, the reply text is sent to the terminal device.

[0058] In these optional implementations, the execution subject can send the speech recognition result to the terminal device in time in response to obtaining the speech recognition result. In this way, the terminal device can display the speech recognition result to the user in time to avoid text output delay.

[0059] Furthermore, the execution subject can respond to the determination of the reply text and send the reply text to the terminal device in time. In this way, the terminal device can display the reply text while broadcasting the reply voice to the user in time.

[0060] In some optional application scenarios of these implementations, before sending the speech recognition result to the semantic server, the method also includes: determining whether the speech recognition result is valid and related to the recognition result of the previous speech, generating a first judgment result, wherein the previous speech and the user voice are in the same wake-up interaction process; and sending the speech recognition result to the semantic server, including: sending the speech recognition result to the semantic server so that the semantic server determines whether the speech recognition result conforms to the preset session semantic type and generates a second judgment result; before sending the speech recognition result to the terminal device, the method includes: receiving the second judgment result fed back by the semantic server, and determining whether the user voice is meaningful speech based on the first judgment result and the second judgment result.

[0061] In these optional application scenarios, the above-mentioned execution subject can judge the speech recognition result and generate a first judgment result. And send the speech recognition result and the first judgment result to the semantic server, so that the semantic server determines whether the speech recognition result meets the preset conversation semantic type. The above-mentioned execution subject then determines whether the user voice is a meaningful voice. Specifically, the above-mentioned execution subject needs to judge whether the speech recognition result is valid, and also needs to judge whether the speech recognition result is related to the recognition result of the previous voice. Only when it is judged whether the speech recognition result is valid and related to the recognition result of the previous voice, can the first judgment result be determined to be yes. The user voice is the voice that is emitted immediately after the previous voice, and is in the same wake-up interaction process as the previous voice.

[0062] The validity of the speech recognition result can mean that the speech recognition result has a clear meaning and communication can be carried out through the speech recognition result. For example, the speech recognition result "How is the weather today" is valid, while "Ah ah" is invalid. Correlation with the recognition result of the previous speech means that the semantics of the previous and subsequent speech are related, and the logic of the semantics is continuous. For example, if the recognition result of the previous speech is "How is the weather today", and the recognition result of the user's speech is "What about tomorrow's weather", then the recognition results of the two speech are related. For another example, if the recognition result of the previous speech is "How is the weather today", and the recognition result of the user's speech is "Uh", then the recognition results of the two speech are not related.

[0063] The preset session semantic type is a type of the semantics of a pre-set session, which may also be referred to as a vertical category. For example, the preset session semantic type may include a date type, a food type, a navigation type, and the like.

[0064] The semantic server may use a variety of methods to determine whether the speech recognition result conforms to the preset conversation semantic type. For example, the keyword of the speech recognition result is determined to be the target keyword, and the preset keywords corresponding to each preset conversation semantic type are searched to see whether the target keyword is included. If included, the second judgment result is that the preset conversation semantic type is conformed.

[0065] In practice, the above-mentioned execution subject can receive the second judgment result fed back by the semantic server, and finally determine whether the user's voice is meaningful based on the first judgment result and the second judgment result. Meaningful speech means that the speech recognition result of the speech is valid and related to the recognition result of the previous speech. Whether the speech recognition result here is valid and relevant needs to be comprehensively judged using the first judgment result and the second judgment result.

[0066] Specifically, the execution subject may determine whether the user's voice is meaningful based on the first judgment result and the second judgment result in various ways. For example, if the execution subject determines that both the first judgment result and the second judgment result are yes, then the user's voice is determined to be meaningful.

[0067] Optionally, sending the speech recognition result to the semantic server may include sending the speech recognition result and the first judgment result to the semantic server. Accordingly, the semantic server may determine whether the speech recognition result meets the preset conversation semantic type based on the first judgment result and generate a second judgment result.

[0068] For example, a correspondence table representing the correspondence between the first judgment result, the speech recognition result, and the second judgment result can be preset, and the semantic server can query the correspondence table and find the second judgment result corresponding to the first judgment result and the speech recognition result.

[0069] Here, the semantic server can not only feedback the second judgment result to the above-mentioned execution entity, but also feedback the first judgment result to the above-mentioned execution entity, so that the above-mentioned execution entity can timely determine whether the user voice is meaningful voice based on the feedback first judgment result and second judgment result.

[0070] The execution entities of these implementations can generate a first judgment result and a second judgment result to determine whether the user voice is meaningful, thereby achieving a better analysis of the user voice.

[0071] In some optional cases of these application scenarios, sending the speech recognition result to the terminal device may include: in response to determining that the user speech is meaningful speech, sending the speech recognition result to the terminal device.

[0072] In these cases, if it is determined that the user's voice is meaningful, the execution subject can send the voice recognition result to the terminal device. In addition, if the user's voice is not meaningful, the execution subject can discard the voice recognition result. In these cases, the execution subject can only feedback the voice recognition result to the terminal device when the user's voice is meaningful, and the sentences corresponding to some meaningless voices spoken by the user do not need to be displayed to the user, thereby reducing the process of invalid processing and improving the intelligence of the device.

[0073] Optionally, the determining whether the user voice is a meaningful voice based on the first judgment result and the second judgment result may include: in response to determining that at least one of the first judgment result and the second judgment result is yes, determining that the user voice is a meaningful voice.

[0074] These implementations can utilize the judgment results of the speech recognition server and the judgment results of the semantic server to flexibly determine whether the user's speech is meaningful speech, thereby avoiding the mis-filtering or missed filtering process that may be caused when the speech recognition server or the semantic server determines the meaningful speech alone. For example, the speech recognition result is "What about tomorrow?", and the previous sentence of the speech is "What's the weather like today?" The speech recognition server may make a misjudgment in the process of determining whether the speech recognition result is related to the recognition result of the previous speech, thereby obtaining an irrelevant first judgment result. The semantic server can determine that the speech recognition result meets the weather type in the preset conversation semantic type.

[0075] Optionally, the first judgment result and the second judgment result are expressed in numerical form, the numerical value of the first judgment result is used to characterize the probability that the speech recognition result is valid and related to the recognition result of the previous speech, and the numerical value of the second judgment result is used to characterize the probability that the speech recognition result conforms to a preset conversation semantic type; and based on the first judgment result and the second judgment result, determining whether the user speech is a meaningful speech includes: determining the sum of the numerical value of the first judgment result and the numerical value of the second judgment result; in response to determining that the sum is greater than or equal to a preset threshold, determining that the user speech is a meaningful speech.

[0076] Specifically, both the first judgment result and the second judgment result can be presented in the form of numerical values. The larger the numerical value, the greater the probability, and the larger the sum of the numerical values ​​of the two judgment results. For example, the preset threshold is 15, and for the speech recognition result of a user voice of Zhang San, the numerical value of the first judgment result is 5 (for example, the full score of the numerical value is 10), and the numerical value of the second judgment result is 10 (for example, the full score of the numerical value is 10), then the sum of the two numerical values ​​is 15, which is equal to the preset threshold, so it can be determined that the user voice of Zhang San is a meaningful voice.

[0077] Optionally, a weighted sum of the numerical value of the first judgment result and the numerical value of the second judgment result is determined; in response to determining that the weighted sum is greater than or equal to a preset weighted threshold, the user voice is determined to be meaningful voice.

[0078] The above-mentioned execution subject can not only determine the sum of the judgment results to determine whether the user's voice is meaningful, but also use the preset weight of the first judgment result and the preset weight of the second judgment result to weight the first judgment result and the second judgment result. And use the comparison result of the weighted sum obtained by weighting and the preset weighted threshold to determine whether the user's voice is meaningful.

[0079] In practice, when the semantic server generates the second judgment result, multiple preset conversation semantic type models can be used to determine multiple candidate values, and the largest value is selected as the value of the second judgment result. Each preset conversation semantic type model can determine a candidate value for the speech recognition result.

[0080] Specifically, the preset conversation semantic type model here can be a vertical category model or a corresponding relationship table, etc. For example, the vertical category model can be a date vertical category model, a navigation vertical category model, etc. The vertical category model here can be a neural network model. For example, if the vertical category model is a neural network, the semantic server can input the first judgment result and the speech recognition result into the vertical category model, and obtain the second judgment result output from the vertical category model.

[0081] Step 203: Send a reply text to the speech synthesis server, and forward the reply voice received from the speech synthesis server to the terminal device.

[0082] In this embodiment, the execution subject may send the received reply text to the speech synthesis server so that the speech synthesis server performs speech synthesis to obtain a reply voice. Afterwards, the execution subject may receive the reply voice sent by the speech synthesis server and forward the reply voice to the terminal device. The speech synthesis server may perform speech synthesis by performing text to speech (TTS) processing on the received reply text to obtain a voice that can be broadcast to the user.

[0083] In some optional implementations of this embodiment, the speech recognition server, the semantic server, and the speech synthesis server are arranged in the same local area network.

[0084] In these optional implementations, the speech recognition server, the semantic server and the speech synthesis server can be arranged in the same local area network. In this way, the communication speed between the speech recognition server and the semantic server can be accelerated, and the communication speed between the speech recognition server and the speech synthesis server can be accelerated.

[0085] The terminal device in the prior art needs to generate a request after obtaining information, and send the request to the speech recognition server, semantic server, and speech synthesis server in sequence. In addition, the terminal device must wait for each server to feedback information to it before obtaining the information, and the whole process consumes a lot of time. In contrast, this embodiment omits the above process and transmits information between servers, which effectively saves processing time, thereby shortening the response time of the terminal device when the terminal device interacts with the user.

[0086] like Figure 3As shown, the present application also provides a speech processing system, including a speech recognition server 310 , a semantic server 320 and a speech synthesis server 330 .

[0087] The speech recognition server 310 is used to receive the user speech sent by the terminal device, perform speech recognition on the user speech, obtain the speech recognition result, send the speech recognition result to the semantic server 320, and send the reply text returned by the semantic server 320 to the speech synthesis server 330, receive the reply speech of the reply text sent by the speech synthesis server 330, and send the reply speech to the terminal device.

[0088] In some optional implementations of this embodiment, the speech recognition server 310, the semantic server 320, and the speech synthesis server 330 are arranged in the same local area network.

[0089] In some optional implementations of this embodiment, the speech recognition server 310 is further configured to send the speech recognition result to the terminal device in response to obtaining the speech recognition result.

[0090] In addition, the speech recognition server 310 is also used to send a reply text to the terminal device in response to receiving the reply text.

[0091] In some optional implementations of this embodiment, the above-mentioned terminal device is also used to display and broadcast a preset reply statement in response to receiving a reply voice and not receiving at least one of a voice recognition result and a reply text.

[0092] Specifically, if the terminal device receives a reply voice but does not receive a voice recognition result and / or a reply text, the terminal device may display the text corresponding to the preset reply sentence and broadcast the voice of the preset reply sentence. For example, the preset reply sentence may be "The network is not good, please try again later." In this way, these embodiments can avoid the problem of incomplete information display and prevent users from being unable to accurately obtain the reply sentence.

[0093] In some optional implementations of this embodiment, the semantic server is also used to receive a text generation request, wherein the text generation request is sent by the terminal device to the semantic server in response to not receiving a reply text and a reply voice within a first preset time period, the text generation request includes a voice recognition result, and the first preset time period takes the receipt of the voice recognition result by the terminal device as the timing starting point.

[0094] Specifically, if the terminal device does not receive the reply text and reply voice after receiving the voice recognition result, it can send a text generation request including the voice recognition result to the semantic server 320. In this way, the semantic server 320 can receive the text generation request, process the voice recognition result, and generate the reply text. The request here is information requesting the semantic server 320 to generate the reply text. Afterwards, the semantic server 320 can feed back the reply text to the terminal device, and then the terminal device can send a speech synthesis request including the reply text to the speech synthesis server 330, and receive the reply voice fed back by the speech synthesis server 330.

[0095] In these implementations, the semantic server can receive the request sent by the terminal device without receiving the reply text and reply voice, so as to ensure the smooth progress of the voice interaction.

[0096] In some optional implementations of this embodiment, the speech synthesis server is also used to receive a speech synthesis request, wherein the speech synthesis request is sent by the terminal device to the speech synthesis server in response to receiving a reply text but not receiving a reply voice within a second preset time period, the speech synthesis request includes the reply text, and the second preset time period starts with the terminal device receiving the speech recognition result or receiving the reply text.

[0097] Specifically, if the terminal device receives the speech recognition result and the reply text, but does not receive the reply voice, a speech synthesis request can be sent to the speech synthesis server 330. In this way, the speech synthesis server 330 can process the reply text, generate the reply voice, and feed the reply voice back to the terminal device.

[0098] These implementations can send a request to the speech synthesis server 330 when no reply voice is received to ensure smooth voice interaction.

[0099] In some optional implementations of this embodiment, the speech recognition server is further used to determine whether the speech recognition result is valid and related to the recognition result of the previous speech before sending the speech recognition result to the semantic server, and to generate a first judgment result, wherein the previous speech and the user speech are in the same wake-up interaction process; the speech recognition server is further used to send the speech recognition result to the semantic server; the semantic server is further used to determine whether the speech recognition result conforms to a preset session semantic type and to generate a second judgment result; and the speech recognition server is further used to receive the second judgment result fed back by the semantic server before sending the speech recognition result to the terminal device, and to determine whether the user speech is meaningful speech based on the first judgment result and the second judgment result.

[0100] In some optional implementations of this embodiment, the speech recognition server is further configured to send a speech recognition result to the terminal device in response to determining that the user speech is meaningful speech.

[0101] In some optional implementations of this embodiment, the speech recognition server is further configured to determine that the user speech is meaningful speech in response to determining that at least one of the first judgment result and the second judgment result is yes.

[0102] In some optional implementations of this embodiment, the first judgment result and the second judgment result are expressed in the form of numerical values, the numerical value of the first judgment result is used to characterize the probability that the speech recognition result is valid and related to the recognition result of the previous speech, and the numerical value of the second judgment result is used to characterize the probability that the speech recognition result conforms to a preset conversation semantic type; and the speech recognition server is also used to determine the sum of the numerical value of the first judgment result and the numerical value of the second judgment result; in response to determining that the sum is greater than or equal to a preset threshold, the user speech is determined to be meaningful speech.

[0103] In some optional implementations of this embodiment, the semantic server is further used to determine multiple candidate values ​​using multiple preset session semantic type models; and determine the largest value among the multiple candidate values ​​as the value of the second judgment result.

[0104] The terminal device in the prior art needs to generate a request after obtaining information, and send the request to the speech recognition server, semantic server, and speech synthesis server in sequence. In addition, the terminal device must wait for each server to feedback information to it before obtaining the information, and the whole process consumes a lot of time. In contrast, this embodiment omits the above process and transmits information between servers, which effectively saves processing time, thereby shortening the response time of the terminal device when the terminal device interacts with the user.

[0105] Further references Figure 4 As an implementation of the methods shown in the above figures, the present application provides an embodiment of a speech processing device, which is similar to Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0106] like Figure 4As shown, the speech processing device 400 of this embodiment includes: a speech recognition unit 401, a text generation unit 402 and a feedback unit 403. The speech recognition unit 401 is configured to receive the user speech sent by the terminal device, perform speech recognition on the user speech, and obtain a speech recognition result; the text generation unit 402 is configured to send the speech recognition result to the semantic server, and receive at least one reply text returned by the semantic server for the speech recognition result; the feedback unit 403 is configured to send the reply text in at least one reply text to the speech synthesis server, and forward the reply speech sent by the speech synthesis server to the terminal device, wherein the reply speech is generated based on the reply text sent by the speech synthesis server.

[0107] In some embodiments, the speech recognition unit 401 of the speech processing device 400 can receive the user speech sent by the terminal device. In addition, the above-mentioned execution subject can perform speech recognition on the user speech to obtain a speech recognition result. Specifically, speech recognition is the process of converting speech into corresponding text. The speech recognition result here refers to the converted text.

[0108] In some embodiments, the text generation unit 402 can send the obtained speech recognition result to the semantic server, and receive the reply text returned by the semantic server. The reply text here is the reply text for the above-mentioned speech recognition result. Specifically, the semantic server can analyze and process the speech recognition result to obtain the reply text for replying to the user in the process of interacting with the user.

[0109] In some embodiments, the feedback unit 403 may send the received reply text to the speech synthesis server so that the speech synthesis server performs speech synthesis to obtain a reply voice. Afterwards, the above-mentioned execution subject may receive the reply voice sent by the speech synthesis server and forward the reply voice to the terminal device.

[0110] In some optional implementations of this embodiment, the speech recognition server, the semantic server, and the speech synthesis server are arranged in the same local area network.

[0111] In some optional implementations of this embodiment, the apparatus further includes: a first sending unit, configured to send a voice recognition result to a terminal device in response to obtaining a voice recognition result; and the method further includes: a second sending unit, configured to send a reply text to the terminal device in response to receiving a reply text.

[0112] In some optional implementations of this embodiment, the device also includes: a judgment unit, configured to judge whether the speech recognition result is valid and related to the recognition result of the previous speech before sending the speech recognition result to the semantic server, and generate a first judgment result, wherein the previous speech and the user voice are in the same wake-up interaction process; and a text generation unit, including: a first sending module, configured to send the speech recognition result to the semantic server, so that the semantic server determines whether the speech recognition result conforms to the preset session semantic type and generates a second judgment result; and the device also includes: a receiving unit, configured to receive the second judgment result fed back by the semantic server before sending the speech recognition result to the terminal device, and determine whether the user voice is meaningful speech based on the first judgment result and the second judgment result.

[0113] In some optional implementations of this embodiment, the first sending unit includes: a second sending module sends a speech recognition result to a terminal device in response to determining that the user speech is a meaningful speech.

[0114] In some optional implementations of this embodiment, the receiving unit includes: a determination module configured to determine that the user voice is a meaningful voice in response to determining that at least one of the first judgment result and the second judgment result is yes.

[0115] In some optional implementations of this embodiment, the first judgment result and the second judgment result are expressed in the form of numerical values, the numerical value of the first judgment result is used to characterize the probability that the speech recognition result is valid and related to the recognition result of the previous speech, and the numerical value of the second judgment result is used to characterize the probability that the speech recognition result conforms to the preset conversation semantic type; and based on the first judgment result and the second judgment result, determining whether the user speech is a meaningful speech includes: determining the sum of the numerical value of the first judgment result and the numerical value of the second judgment result; in response to determining that the sum is greater than or equal to a preset threshold, determining that the user speech is a meaningful speech.

[0116] In some optional implementations of this embodiment, the value of the second judgment result is the largest value among multiple candidate values ​​determined by the semantic server using multiple preset session semantic type models.

[0117] like Figure 5As shown, the electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0118] Typically, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 5 The electronic device 500 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 5 Each block shown in the figure may represent one device, or may represent multiple devices as required.

[0119] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through a communication device 509, or installed from a storage device 508, or installed from a ROM 502. When the computer program is executed by the processing device 501, the above functions defined in the method of the embodiment of the present disclosure are executed. It should be noted that the computer-readable medium of the embodiment of the present disclosure can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection with one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In an embodiment of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, an apparatus, or a device. In an embodiment of the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, an apparatus, or a device. The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.

[0120] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0121] The units involved in the embodiments described in the present application may be implemented by software or by hardware. The units described may also be provided in a processor, for example, may be described as: a processor including a speech recognition unit, a text generation unit, and a feedback unit. Among them, the names of these units do not constitute a limitation on the units themselves in certain circumstances, for example, the speech recognition unit may also be described as a "unit that receives a user speech sent by a terminal device, performs speech recognition on the user speech, and obtains a speech recognition result".

[0122] As another aspect, the present application also provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by the device, the device: receives the user voice sent by the terminal device, performs voice recognition on the user voice, and obtains the voice recognition result; sends the voice recognition result to the semantic server, receives the reply text returned by the semantic server for the voice recognition result; sends the reply text to the speech synthesis server, and forwards the reply voice sent by the speech synthesis server to the terminal device.

[0123] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above invention concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other to form a technical solution.

Claims

1. A speech processing method, used in a speech recognition server, the method comprising: Receiving a user voice sent by a terminal device, performing voice recognition on the user voice, and obtaining a voice recognition result; Determine whether the voice recognition result is valid and related to the recognition result of the previous voice, and generate a first judgment result, wherein the previous voice and the user voice are in the same wake-up interaction process, and the voice recognition result is valid, which means that the voice recognition result has a clear meaning, and communication can be carried out through the voice recognition result; Sending the speech recognition result and the first judgment result to a semantic server, so that the semantic server determines a second judgment result corresponding to the first judgment result and the speech recognition result by searching a preset correspondence table representing the correspondence between the first judgment result, the speech recognition result, and the second judgment result, wherein the second judgment result represents whether the speech recognition result conforms to a preset conversation semantic type; Receiving a reply text returned by the semantic server for the speech recognition result; Sending the reply text to the speech synthesis server, and forwarding the received reply voice sent by the speech synthesis server to the terminal device; Before sending the speech recognition result to the terminal device, the method further includes: Receive the second judgment result fed back by the semantic server, and determine whether the user voice is meaningful voice based on the first judgment result and the second judgment result.

2. The method according to claim 1, wherein: The speech recognition server, the semantic server and the speech synthesis server are arranged in the same local area network.

3. The method according to claim 1, wherein: The method further comprises: In response to obtaining the speech recognition result, sending the speech recognition result to the terminal device; and The method further comprises: In response to receiving the reply text, the reply text is sent to the terminal device.

4. The method according to claim 1, wherein: The sending the speech recognition result to the terminal device includes: In response to determining that the user voice is meaningful voice, the voice recognition result is sent to the terminal device.

5. The method according to claim 1, wherein: The determining whether the user voice is a meaningful voice based on the first judgment result and the second judgment result includes: In response to determining that at least one of the first judgment result and the second judgment result is yes, the user voice is determined to be a meaningful voice.

6. The method according to claim 1, wherein: The first judgment result and the second judgment result are expressed in the form of numerical values, the numerical value of the first judgment result is used to represent the probability that the speech recognition result is valid and related to the recognition result of the previous speech, and the numerical value of the second judgment result is used to represent the probability that the speech recognition result conforms to the preset conversation semantic type; as well as The determining whether the user voice is a meaningful voice based on the first judgment result and the second judgment result includes: Determine the sum of the numerical value of the first judgment result and the numerical value of the second judgment result; In response to determining that the sum is greater than or equal to a preset threshold, the user voice is determined to be meaningful voice.

7. The method according to claim 6, wherein: The value of the second judgment result is the largest value among multiple candidate values ​​determined by the semantic server using multiple preset session semantic type models.

8. A speech processing system, comprising a speech recognition server, a semantic server and a speech synthesis server; The speech recognition server is used to receive the user speech sent by the terminal device, perform speech recognition on the user speech, obtain a speech recognition result, determine whether the speech recognition result is valid and related to the recognition result of the previous speech, and generate a first judgment result, wherein: The previous voice and the user voice are in the same wake-up interaction process, and the voice recognition result is valid, which means that the voice recognition result has a clear meaning, and communication can be carried out through the voice recognition result. The voice recognition result and the first judgment result are sent to the semantic server, so that the semantic server determines the second judgment result corresponding to the first judgment result and the voice recognition result by searching a preset correspondence table representing the correspondence between the first judgment result, the voice recognition result, and the second judgment result, and the second judgment result represents whether the voice recognition result conforms to the preset conversation semantic type; The speech recognition server is further configured to receive a reply text returned by the semantic server for the speech recognition result, send the reply text to the speech synthesis server, receive a reply voice of the reply text sent by the speech synthesis server, and send the reply voice to the terminal device; Wherein, before sending the speech recognition result to the terminal device, the speech recognition server is also used to receive the second judgment result fed back by the semantic server, and determine whether the user speech is meaningful speech based on the first judgment result and the second judgment result.

9. The system according to claim 8, wherein: The speech recognition server, the semantic server and the speech synthesis server are arranged in the same local area network.

10. The system according to claim 8, wherein: The speech recognition server is further configured to, in response to obtaining the speech recognition result, send the speech recognition result to the terminal device; and The speech recognition server is further configured to send the reply text to the terminal device in response to receiving the reply text.

11. The system according to any one of claims 8 to 10, wherein: The semantic server is also used to receive a text generation request, wherein the text generation request is sent by the terminal device to the semantic server in response to not receiving the reply text and the reply voice within a first preset time period, the text generation request includes the voice recognition result, and the first preset time period takes the receipt of the voice recognition result by the terminal device as the timing starting point.

12. The system according to any one of claims 8 to 10, wherein: The speech synthesis server is also used to receive a speech synthesis request, wherein the speech synthesis request is sent by the terminal device to the speech synthesis server in response to receiving the reply text but not receiving the reply voice within a second preset time period, the speech synthesis request includes the reply text, and the second preset time period takes the terminal device receiving the speech recognition result or receiving the reply text as the starting point.

13. The system according to claim 8, wherein: The speech recognition server is further configured to send the speech recognition result to the terminal device in response to determining that the user speech is meaningful speech.

14. The system according to claim 8, wherein: The speech recognition server is further configured to determine that the user speech is a meaningful speech in response to determining that at least one of the first judgment result and the second judgment result is yes.

15. The system according to claim 8, wherein: The first judgment result and the second judgment result are expressed in the form of numerical values, the numerical value of the first judgment result is used to represent the probability that the speech recognition result is valid and related to the recognition result of the previous speech, and the numerical value of the second judgment result is used to represent the probability that the speech recognition result conforms to the preset conversation semantic type; as well as The speech recognition server is further used to determine the sum of the numerical value of the first judgment result and the numerical value of the second judgment result; in response to determining that the sum is greater than or equal to a preset threshold, determine that the user speech is meaningful speech.

16. The system of claim 15, wherein: The semantic server is further used to determine multiple candidate values ​​using multiple preset session semantic type models; and determine the largest value among the multiple candidate values ​​as the value of the second judgment result.

17. A speech processing device, used in a speech recognition server, the device comprising: A speech recognition unit is configured to receive a user speech sent by a terminal device, perform speech recognition on the user speech, and obtain a speech recognition result; A text generation unit, configured to send the speech recognition result to a semantic server, and receive at least one reply text returned by the semantic server for the speech recognition result; a feedback unit configured to send a reply text of the at least one reply text to a speech synthesis server, and forward the received reply voice sent by the speech synthesis server to the terminal device, wherein the reply voice is generated based on the reply text sent by the speech synthesis server; and A judgment unit is configured to judge whether the speech recognition result is valid and related to the recognition result of the previous speech before sending the speech recognition result to the semantic server, and generate a first judgment result, wherein the previous speech and the user speech are in the same wake-up interaction process, and the speech recognition result is valid means that the speech recognition result has a clear meaning, and communication can be carried out through the speech recognition result; The text generation unit includes: a first sending module configured to send the speech recognition result and the first judgment result to the semantic server, so that the semantic server determines the second judgment result corresponding to the first judgment result and the speech recognition result by searching a preset correspondence table representing the correspondence between the first judgment result, the speech recognition result, and the second judgment result, wherein the second judgment result represents whether the speech recognition result conforms to a preset conversation semantic type; The device also includes: a receiving unit, which is configured to receive the second judgment result fed back by the semantic server before sending the speech recognition result to the terminal device, and determine whether the user speech is meaningful speech based on the first judgment result and the second judgment result.

18. An electronic device, comprising: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.

19. A computer-readable storage medium having a computer program stored thereon, wherein: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Voice analytical method and apparatus

    CN105529028A

  • Voice processing method and device

    CN107146618A

  • Voice interaction method and voice interaction device

    CN107316643A

  • Man-machine conversation realization method and apparatus, device and storage medium

    CN107943834A