Voice-based interface for networked systems
By designing a data processing system that includes a natural language processor and a translation engine in a networked system, the problems of accuracy and resource waste in audio signal processing are solved, and efficient multi-user seamless dialogue and translation are achieved.
Patent Information
- Application Number
- CN202410970673.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2018-12-14
- Filing Date
- 2019-02-06
- Publication Date
- 2024-09-27
AI Technical Summary
The existing technology has problems of inaccurate data processing and waste of resources in processing networking systems based on audio signals. Especially in the translation process, it is difficult to improve accuracy and save bandwidth and computing resources.
A speech-based interface system is designed, which includes a data processing system that utilizes natural language processors, translation engines, and signal generator components to generate and select translation strings by receiving audio signals from client devices, and perform translation on multiple Language models run in parallel to improve the accuracy and efficiency of translation.
The system improves translation accuracy, reduces redundant translation requests, saves bandwidth and computing resources, enables seamless conversations between multiple users, and automatically determines the translation of utterances without forcing users to take turns speaking.
Smart Images

Figure CN118711577A
Abstract
Description
Description of the case
[0001] This application is a divisional application of Chinese invention patent application No. 201980002146.0, with a filing date of February 6, 2019. CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority under 35 USC §119 to U.S. Provisional Patent Application No. 62 / 779,927, filed on December 14, 2018, which is incorporated herein by reference for all purposes. Technical Field
[0003] The present disclosure relates to voice-based interfaces for networked systems. Background Art
[0004] Networked devices are capable of processing audio-based signals. The ability of a device to process audio-based signals can be based on the quality of the audio-based signals or the ability of the device to understand the audio-based signals. Audio-based signals may have relatively large file sizes. Excessive network transmission of low-quality audio-based network traffic data between computing devices, based on packets or other means, may prevent computing devices from properly processing audio-based signals. Summary of the invention
[0005] According to at least one aspect of the present disclosure, a system for generating a speech-based interface can include a data processing system. The data processing system can include a memory and one or more processors that execute a natural language processor component, a translation engine, and a signal generator component. The data processing system can receive a first input audio signal detected by a sensor of a client device at an interface of the data processing system. The data processing system can generate a first input string based on the first input audio signal through a natural language processor component. The data processing system can determine a first confidence score indicating the accuracy of the first input string through a natural language processor component. The data processing system can generate a first translation string and a second translation string from the first input string based on the first confidence score being above a predetermined threshold through a translation engine. The data processing system can determine a first translation score of the first translation string indicating the accuracy of the first translation string and a second translation score of the second translation string indicating the accuracy of the second translation string through a translation engine. The data processing system can select a first translation string based on the first translation score and the second translation score through a translation engine. The data processing system can generate an output audio signal from the first translation string through a signal generator component. The data processing system can transmit the output audio signal to a client device through an interface to render the output audio signal.
[0006] According to at least one aspect of the present disclosure, a method for generating a speech-based interface can include receiving, at an interface of a data processing system, a first input audio signal detected by a sensor of a client device. The method can include generating, by a natural language processor component, a first input string based on the first input audio signal. The method can include determining, by a natural language processor component, a first confidence score indicating the accuracy of the first input string. The method can include, by a translation engine, generating a first translation string and a second translation string from the first input string based on the first confidence score being above a predetermined threshold. The method can include determining, by a translation engine, a first translation score of the first translation string indicating the accuracy of the first translation string and a second translation score of the second translation string indicating the accuracy of the second translation string. The method can include selecting, by a translation engine, a first translation string based on the first translation score and the second translation score. The method can include generating, by a signal generator component, an output audio signal from the first translation string. The method can include transmitting, by an interface, the output audio signal to a client device to reproduce the output audio signal.
[0007] It will be appreciated that these aspects can be implemented in any convenient form. For example, these aspects can be implemented by a suitable computer program that can be carried on a suitable carrier medium, which can be a tangible carrier medium (e.g., a disk) or an intangible carrier medium (e.g., a communication signal). These aspects can also be implemented by using suitable means that can take the form of a programmable computer running a computer program arranged to implement the invention. These aspects can be combined so that features described in the context of one aspect can be implemented in another aspect.
[0008] The above summary of the invention and the following description of the drawings and specific embodiments are all examples, and are intended to provide further explanation of the invention claimed. Other purposes, advantages and novel features will be apparent to those skilled in the art through the following brief description and detailed description of the drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] The drawings are not intended to be drawn to scale. The same reference numerals and labels in the various drawings indicate the same elements. For clarity, not every component may be labeled in every drawing. In the drawings:
[0010] Figure 1 A block diagram illustrating an example system for generating a speech-based interface.
[0011] Figure 2 Shown by using Figure 1 The illustrated system is a block diagram of an example method for generating a speech-based interface.
[0012] Figure 3 Shown by using Figure 1 The system shown generates a flow chart of a speech-based interface.
[0013] Figure 4 is a block diagram of an example computer system. DETAILED DESCRIPTION
[0014] The details of one or more implementations are set forth in the accompanying drawings and the description below.Other features, aspects, and advantages of the present disclosure will become apparent by reference to the specification, drawings, and claims.
[0015] The system and method described herein can translate speech between multiple users. The system can receive an input audio signal containing user speech and generate an output signal including the translation of the user speech. The system can operate as a remote agent (e.g., a client device) that captures user speech when called by a user and transmits these speech in the input audio signal to a data processing system. The data processing system allows two or more language models to be run in parallel (e.g., one language model for each user speaking in a conversation). Running the language models in parallel can allow any one user to speak at any given time. This allows the system to not force users to take turns in conversation. Instead, a user can speak multiple speech in succession, and the system can automatically determine the translation of these speech without the additional input indicating which user is speaking a specific speech. Therefore, the system solves the problem associated with how to process data in a translation system.
[0016] The systems and methods described herein can improve the accuracy of translation, which can reduce the input audio signals sent to the data processing system. For example, the system can reduce the number of redundant translation requests sent to the data processing system, so the system can save bandwidth and other computing resources by processing fewer input audio signals.
[0017] The systems and methods described herein can improve the accuracy of translation by incorporating confidence scores at multiple points in the translation path. The system can incorporate a first confidence score into the translation path after receiving an input audio signal. For example, when a data processing system receives an input audio signal containing a user's speech, the data processing system can run a speech recognition algorithm on the input audio signal to identify the speech and convert the speech into a text string. The system can calculate a confidence score for the text string, which indicates the predicted accuracy of the system converting the speech into a text string. A low confidence score can indicate that the data processing system believes that the data processing system does not understand or does not correctly convert the speech into a text string. When the confidence score is low, the data processing system can send an output signal to a client device requesting clarification of the speech. For example, the data processing system can request a repeat of the speech, or the data processing system can include the text string in an output signal reproduced to the user. The user can confirm or deny whether the speech has been correctly converted into a text string.
[0018] The system and method can also include a confidence score to indicate how well an input utterance can be translated into a target language. For example, if an utterance includes rhetoric or phrases that may not translate well into the target language, the system can assign a low translation confidence score to the utterance. Based on the low translation confidence score, the system can ask the user who provided the utterance to rephrase the utterance.
[0019] Figure 1 A block diagram of an example system 100 for generating a speech-based interface is shown. System 100 can include one or more data processing systems 102 that can communicate with one or more client devices 126 via a network 124.
[0020] The system 100 can include one or more networks 124. The network 124 can include any type and form of network, including a local area network (LAN), a wide area network (WAN) such as the Internet, a satellite network, a cable network, a broadband network, a fiber optic network, a microwave network, a cellular network, a wireless network, or any combination of these or other such networks. The network 124 can include one or more different types of networks. The network 124 can include a plurality of additional devices, including gateways, modems, firewalls, routers, switches, etc. The network 124 can also include any number of computing devices (e.g., computers, servers, routers, network switches, etc.) that are configured to receive and / or transmit data within the network 124. The network 124 can include any number of hardwired and / or wireless connections. For example, the client device 126 can communicate wirelessly (e.g., via Wi-Fi, cellular, radio, etc.) with a transceiver that is hardwired to other computing devices in the network 124 (e.g., via fiber optic cables, CAT5 cables, etc.). Network 124 can be a virtual network, such as a virtual network between multiple virtual machines executed by a single physical machine, or an abstract network, such as offline data transmission via physically removable media (e.g., transmitting data via tape media, CD-ROM, flash media, external hard drive, floppy disk, etc.).
[0021] Network 124 can be used to access information resources such as web pages, websites, domain names, or uniform resource locators that can be presented, output, reproduced, or displayed on at least one client device 126, such as a laptop, desktop computer, tablet computer, digital assistant, personal digital assistant, smart watch, wearable device, smart phone, portable computer, or speaker. For example, via network 124, a user of client device 126 can access information, data, or services provided by data processing system 102.
[0022] The network 124 can include a point-to-point network, a broadcast network, a wide area network, a local area network, a telecommunications network, a data communication network, a computer network, an ATM (asynchronous transfer mode) network, a SONET (synchronous optical network) network, an SDH (synchronous digital hierarchy) network, a wireless network, and a wired network. The network 124 may include a wireless link, such as an infrared channel or a satellite band. The topology of the network 124 may include a bus, star, or ring network topology. The network may include a mobile phone network that uses any one or more protocols for communicating among mobile devices, including the Advanced Mobile Phone Protocol ("AMPS"), Time Division Multiple Access ("TDMA"), Code Division Multiple Access ("CDMA"), Global System for Mobile Communications ("GSM"), General Packet Radio Service ("GPRS"), or Universal Mobile Telecommunications System ("UMTS"). Different types of data may be transmitted via different protocols, or the same type of data may be transmitted via different protocols.
[0023] System 100 can include at least one data processing system 102. Data processing system 102 can include at least one logical device, such as a computing device having a processor to perform the methods described herein. Data processing system 102 can communicate, for example, with client device 126 via network 124. Data processing system 102 can include at least one computing resource, server, processor, or memory. For example, data processing system 102 can include multiple computing resources or servers located in at least one data center. Data processing system 102 can include multiple logically grouped servers and facilitate distributed computing technology. Logical groups of servers can be referred to as data centers, server farms, or machine farms. Servers can also be geographically dispersed. A data center or machine farm can be managed as a single entity, or the machine farm can include multiple machine farms. Servers within each computer farm can be heterogeneous - one or more of the servers or machines can operate according to one or more types of operating system platforms.
[0024] The servers in the machine farm can be housed in a high-density rack system along with associated storage systems and located in an enterprise data center. In this manner, for example, by locating servers and high-performance storage systems on a localized high-performance network, consolidating servers can improve system manageability, data security, system physical security, and system performance. Centralizing all or some of the data processing system 102 components, including servers and storage systems, and coupling them with advanced system management tools allows for more efficient use of server resources, thus saving power and processing requirements and reducing bandwidth usage.
[0025] The data processing system 102 can include a digital assistant application 104. The digital assistant application 104 can be an application, applet, script, service, daemon, routine, or other executable logic executed by one or more processors of the data processing system 102 to generate a speech-based interface. The digital assistant application 104 can detect one or more terms in spoken, typed, or other forms of text and convert the terms from an input language to a target language.
[0026] The digital assistant application 104 can include one or more natural language processor (NLP) components 108, one or more signal generator components 110, and one or more interfaces 112. The digital assistant application 104 can use the NLP component 108 to understand the speech in the input audio signal and convert the speech into a text string. The digital assistant application 104 can generate an output signal and provide the output signal to the client device 126 using the signal generator component 110. The digital assistant application 104 can send and receive data with the client device 126 via the interface 110.
[0027] The NLP component 108 can receive or obtain data packets that can include input audio signals detected at the client device 126. The data packets can provide a digital file. The NLP component 108 can parse the input audio signal. For example, the NLP component 108 can provide interaction between a person and a computer. The NLP component 108 can be configured with technology for understanding natural language and enabling the data processing system 102 to derive meaning from human or natural language input. The NLP component 108 can convert the input audio signal into a text string that includes the terms uttered in the input audio signal. The NLP component 108 can convert the text string between languages by using the translation engine 106.
[0028] The NLP component 108 can include or be configured with a technology based on machine learning, such as statistical machine learning. The NLP component 108 can utilize a decision tree, a statistical model, or a probability model to parse the input audio signal. The NLP component 108 can, for example, perform the following functions: named entity recognition (e.g., given a text stream, determine which items in the text are mapped to proper names, such as people or places, and what type each such name is, such as people, locations, or organizations), natural language generation (e.g., converting information or semantic intent from a computer database into understandable human language), natural language understanding (e.g., converting text into more formal expressions, such as first-order logic structures that a computer module can manipulate), machine translation (e.g., automatically translating text from one human language to another human language), morpheme segmentation (e.g., dividing words into individual morphemes and identifying the categories of morphemes, which is challenging due to the complexity of the lexical or word structure of the language under consideration), question answering (e.g., determining answers to human language questions, which may be specific or open-ended), semantic processing (e.g., processing that may occur after identifying words and encoding their meanings so as to relate the identified words to other words with similar meanings).
[0029] NLP component 108 can convert input audio signal into recognized text by comparing input signal with stored representative audio waveform set and selecting the closest match. NLP component 108 can process input audio signal by using grammar set 118 associated with the language of input audio signal. This audio waveform set can be stored in other databases accessible to data repository 124 or data processing system 102. Representative waveform is generated across a large number of users, and can then be expanded with speech samples from users. After the audio signal is converted into recognized text, NLP component 108 matches the text with words associated with actions that can be served by data processing system 102, for example, via training across users or by manually specifying. NLP component 108 can convert image or video input into text or digital file. NLP component 108 can process, analyze or interpret image or video input to perform actions, generate requests or select or identify data structures. As described herein, NLP component 108 and translation engine 106 can identify the language of speech or recognized text in input audio signal, to convert speech or text from a first input language into a second output language.
[0030] The digital assistant application 104 can include one or more signal generator components 110. The signal generator component 110 can be an application, applet, script, service, daemon, routine, or other executable logic that generates a signal based on output audio. The signal generator component 110 can generate an output signal that can include a computer-generated voice output. The signal generator component 110 can provide the computer-generated voice output to the client device 126 in the form of multiple data packets or files. The client device 126 can reproduce or otherwise output the computer-generated voice output to the user via one or more speakers 128. The signal generator component 110 can convert text data (e.g., a text string including a speech translation) into a computer-generated voice for output at the client device 126.
[0031] The signal generator component 110 can generate an output signal that is configured to be reproduced in a variety of media or other media other than an audio-based medium. For example, the output signal may not include a computer-generated voice output, and the translation string can be reproduced as text on the screen of the client device 126. The signal generator component 110 can generate an intermediate output signal. The intermediate output signal can include a request, an instruction, or other information. For example, when a translation request is made to the data processing system 102, the signal generator component 110 can generate an intermediate output signal, including instructions to interact with the digital assistant application 104 to the user before providing the requested translation in the output signal.
[0032] The signal generator component 110 can configure the intermediate output signal based on the signal count and the conversation count. The signal count can indicate the number of utterances or input audio signals included in the current conversation. The conversation count can indicate the number of conversations that the user has requested to be translated by the data processing system 102. As the conversation count or signal count increases, when the user is accustomed to interacting with the digital assistant application 104, the signal generator component 110 can generate a shorter or more concise intermediate output signal.
[0033] The data processing system 102 can include one or more interfaces 112. The interface 112 can be configured, constructed, or operable to receive and transmit information, for example, by using data packets. The interface 112 can receive and transmit information by using one or more protocols such as network protocols. The interface 112 can include a hardware interface, a software interface, a wired interface, or a wireless interface. The interface 112 can facilitate converting or formatting data from one format to another format. For example, the interface 112 can include an application programming interface that includes definitions for communicating between various components such as software components.
[0034] Interface 112 can be a hardware-based interface. For example, interface 112 can be a network interface or an input / output (I / O) interface. The network interface can include any type and form of interface, including: Ethernet, including 10BASE-T, 100BASE-T, or 1000BASE-T ("Gigabit"); any 802.11 wireless, such as 802.11a, 802.11b, 802.11g, 802.11n, or 802.11ac; cellular, including CDMA, LTE, 3G, or 4G cellular; Bluetooth or other short-range wireless connection; or any combination of these or other interfaces for communicating with network 124. Data processing system 102 can include multiple network interfaces of different types, allowing connection to various networks, such as the Internet, via different subnets.
[0035] The I / O interface can be any electronic device capable of communicating data to a user by generating sensory information (e.g., visualization on a display, one or more sounds, tactile feedback, etc.). The I / O interface can convert sensory information received from a user into electronic signals (e.g., keyboard, mouse, pointing device, touch screen display, microphone, etc.). Interface 112 can be a graphical interface that enables a user to interact with data processing system 102 or otherwise provide or receive data from data processing system 102.
[0036] Data processing system 102 can include or otherwise have access to one or more translation engines 106. For example, translation engine 106 can be provided by a second data processing system with which data processing system 102 communicates via network 124. Translation engine 106 can be an application, applet, script, service, daemon, routine, or other executable logic that translates content (e.g., text) from a first input language to a second target language.
[0037] The translation engine 106 can utilize one or more language models 116 to determine the text or other semantic representation of the spoken utterance in the input audio signal (or its text string). The translation engine 106 can include different language models 116 for different languages. Each language model in the language models 116 can correspond to a different language. For example, the first language model 116 can correspond to English and the second language model 116 can correspond to French. The translation engine 106 can use the language models 116 to translate the utterance (or its text) from the input language to the target (or output) language. Each language model in the language models 116 can include an input language and an output language.
[0038] Each of the language models 116 can include a machine learning model (e.g., a neural network model) or a statistical model for determining text (or other semantic representations) corresponding to spoken utterances within the input audio signal. The translation engine 106 can use the language model 116 to recognize phonemes in the spoken utterances of the input audio signal and output text in a language corresponding to the language model 116.
[0039] The translation engine 106 can pass the input audio signal or text string to multiple language models 116 in parallel. For example, when the data processing system 102 receives the input audio signal, the translation engine 106 can pass the input audio signal to both the first and second language models 116. The translation engine 106 can generate candidate interpretations (e.g., candidate text strings) of the utterance contained in the input audio signal based on each of the language models 116 that process the input audio signal. The translation engine 106 can determine which of the candidate interpretations to use based on the scores generated by the scoring engine 114. For example, based on the translation confidence score, the translation engine 106 can determine whether the text string should be translated from English to French or from French to English.
[0040] The translation engine 106 can include one or more scoring engines 114. The scoring engine 114 can be an application, applet, script, service, daemon, routine, or other executable logic that calculates a score that indicates a confidence level in the accuracy of processing the input audio signal. The scoring engine 114 can determine different types of scores. The scoring engine 114 can determine at least a confidence score for converting the utterance to a text string and a confidence score for how well the utterance can be converted to a target language. The scoring engine 114 can determine a confidence score and a translation score for each of the input audio signals.
[0041] The scoring engine 114 can calculate a confidence score for each input audio signal. The confidence score can indicate a confidence level in the accuracy of a text string generated based on the utterance contained within the input audio signal. The scoring engine 114 can calculate a translation confidence score for each input audio signal. The translation score can indicate the accuracy of the translation of the text string from a first language to a second target language. For example, utterances that include rhetoric that does not translate well from a first language to a second language can be given a low translation confidence score.
[0042] The data processing system 102 can include one or more data repositories 132. The data repositories 132 can include one or more local databases or distributed databases. The data repositories 132 can include a memory in which machine instructions can be stored. When the machine instructions are executed by the processor of the data processing system 102, these instructions can cause the data processing system 102 to perform the operations described herein. The processor 200 can include a microprocessor, an ASIC, an FPGA, or other control logic. The processor can be a multi-core processor or a processor array. The memory can include, but is not limited to, electronic, optical, magnetic, or any other storage device that can provide program instructions to the processor. The memory can include a floppy disk, a CD-ROM, a DVD, a disk, a memory chip, a ROM, a RAM, an EEPROM, an EPROM, a flash memory, an optical medium, or any other suitable memory from which the processor 200 can read instructions. The instructions can include code from any suitable computer programming language, such as, but not limited to, C, C++, C#, Java, JavaScript, Perl, HTML, XML, Python, and Visual Basic.
[0043] The data processing system 102 can store one or more grammar sets 118, signal counts 120, and conversation counts 122 in a data repository 132. A grammar set 118 can be a data structure containing rules that describe language structures. The data repository 132 can include a different grammar set 118 for each language model in the language model 116. The data repository 132 can include context-specific grammar sets 118. The data repository 132 can include grammar sets 118 that the language model 116 or the NLP component 108 can use when processing or generating an utterance within a predetermined domain. For example, when an utterance includes multiple medical terms, the NLP component 108 can select a medical-specific grammar set 118.
[0044] The data repository 132 can include one or more data structures storing signal counts 120. When the data processing system 102 receives an input audio signal, the digital assistant application 104 can store a text string in a data structure within the data repository 132. The input audio signal can be a turn in a conversation. For each conversation, the data processing system 102 can generate a conversation identifier 122. The data processing system 102 can store the text string in the data repository 132 in association with the conversation identifier 122. For each text string, the data processing system 102 can also store a signal count or turn identifier. The signal count 120 can indicate the sequential position of the text string in the conversation. During the conversation, the data processing system 102 can track or determine the number of input audio signals received as part of the conversation and store the count as the signal count 120. The data processing system 102 can identify the unique number of the conversation identifier 122 in the data repository 132 and can determine the number of conversations that the data processing system 102 has processed for a given client device 126. The signal generator component 110 can generate an output signal based on the signal count 120. The signal generator component 110 can generate an output signal based on the number of conversations that the data processing system 102 has processed for a given client device 126. For example, with respect to a first conversation, the signal generator component 110 can generate an output signal that includes relatively long and descriptive instructions. As the number of conversations increases and the user becomes accustomed to interacting with the client device 126, the signal generator component 110 can weaken the instructions.
[0045] Data processing system 102 can reset signal count 120 and conversation identifier 122 at predetermined intervals. For example, data processing system 102 can reset signal count 120 and conversation identifier 122 based on a time-based rule (e.g., weekly, monthly, or annually) or an event-based rule (e.g., after a conversation ends or after a new user is associated with client device 126). The time-based rule can be based on a length of inactivity. For example, data processing system 102 can reset conversation identifier 122 after a predetermined length of inactivity so that instructions can be provided to the user after the inactivity period.
[0046] The system 100 may include one or more client devices 126. The client device 126 can, for example, provide translation services to one or more users of the client device 126. The client device 126 may or may not include a display. For example, the client device 126 may include a limited type of user interface, such as a microphone and a speaker (e.g., the client device 126 can include a voice-driven or audio-based interface). The primary user interface of the client device 126 can include a sensor 130 (e.g., a microphone) and a speaker 128.
[0047] The client device 126 can include or otherwise interact with one or more sensors 130. The sensor 130 can include, for example, a camera, an ambient light sensor, a proximity sensor, a temperature sensor, an accelerometer, a gyroscope, a motion detector, a GPS sensor, a location sensor, a microphone, a video sensor, an image detection sensor, a touch sensor, or any combination thereof. The sensor 130 can be a microphone that detects speech produced by a user of the client device 126. The digital assistant application 104 can convert the speech into an input audio signal that is transmitted from the client device 126 to the data processing system 102. The client device 126 can include one or more speakers 128. The client device 126 can reproduce output signals from the data processing system 102 to the user via the speakers 128.
[0048] The client device 126 can include an instance of the digital assistant application 104. The digital assistant application 104 can be executed by one or more processors of the client device 126. The digital assistant application 104 executed at the client device 126 can be an instance of the digital assistant application 104 executed at the data processing system 102. The digital assistant application 104 of the client device can perform any of the functions described in relation to the digital assistant application 104 of the data processing system. The digital assistant application 104 can be activated from within another application. For example, a user can activate the digital assistant application 104 within a video conferencing application to provide translation services to the video conferencing application.
[0049] The digital assistant application 104 can convert the analog audio signal detected by the speaker 128 into a digital input audio signal and transmit one or more data packets carrying the input audio signal to the data processing system 102. The digital assistant application 104 can perform pre-filtering or pre-processing on the input audio signal. The digital assistant application 104 can pre-filter or pre-process the input audio signal to remove certain frequencies of audio, noise or other components of the input audio signal. Pre-filtering can include filters, such as low-pass filters, high-pass filters, or band-pass filters. The filter can be applied in the frequency domain. The filter can be applied by using digital signal processing techniques. The filter can be configured to maintain frequencies corresponding to human sounds or human speech while eliminating frequencies that exceed the typical frequencies of human speech. For example, the bandpass filter can be configured to remove frequencies below a first threshold (e.g., 70 Hz, 75 Hz, 80 Hz, 85 Hz, 90 Hz, 95 Hz, 100 Hz, or 105 Hz) and above a second threshold (e.g., 200 Hz, 205 Hz, 210 Hz, 225 Hz, 235 Hz, 245 Hz, or 255 Hz). Applying the bandpass filter can reduce computing resource utilization in downstream processing. The digital assistant application 104 can apply the bandpass filter before transmitting the input audio signal to the data processing system 102, thereby reducing network bandwidth utilization.
[0050] The digital assistant application 104 can apply additional pre-processing or pre-filtering techniques, such as noise reduction techniques, to reduce the level of ambient noise that may interfere with the natural language processor. Noise reduction techniques can improve the accuracy and speed of the natural language processor, thereby improving the performance of the data processing system 102.
[0051] The client device 126 can include one or more interfaces 112. The interface 112 can be a data interface, a hardware interface, a software interface, a graphical interface, or a network interface that enables components of the client device 126 to communicate with other components of the system 100. The interface 104 can provide or transmit one or more data packets including input audio signals and output signals between the client device 126 and the data processing system 102.
[0052] Figure 2 Shown by using Figure 1The system shown is a block diagram of an example method for generating a speech-based interface. The method 200 can include receiving an input signal (act 202). The method 200 can include generating an input string (act 204). The method 200 can include determining one or more confidence scores (act 206). The method 200 can include generating one or more translation strings (act 208). The method 200 can include determining one or more translation scores (act 210). The method 200 can include selecting a translation string (act 212). The method 200 can include generating an output signal (act 214). The method 200 can include transmitting the output signal (act 216).
[0053] Method 200 can include receiving an input signal (act 202). Figure 1 , method 200 can include, among other things, receiving a first input audio signal. Data processing system 102 can receive the first input audio signal at interface 112. Client device 126 can use sensor 130 to detect utterances produced by a user. Client device 126 can digitize the utterances into an input audio signal and transmit the input audio signal to data processing system 102. Client device 126 can transmit the input audio signal as a plurality of digitized packets to data processing system 102 via network 124. The first input audio signal can be a first utterance in a speech-based conversational interaction with client device 126. The first input audio signal can include a request to provide a translation service.
[0054] For example, also refer to Figure 3 , which shows a flow chart for generating a speech-based interface, a first user 300(1) is able to speak an utterance to a client device 126. Unless the utterance begins with an activation or wake-up word for the client device 126, such as "okay", the client device 126 is able to ignore the utterance. The client device 126 is able to digitize the utterance from the user 300(1) and generate an input audio signal 302. The user of the client device 126 is also able to place the client device 126 into an ambient translation mode, such that the client device 126 is able to convert the utterance into an input audio signal without the user having to specifically invoke or activate the client device 126. The client device is able to convert the utterance into the input audio signal until the user ends the ambient translation mode.
[0055] Method 200 can include generating an input string (act 204). NLP component 108 of data processing system 102 can receive a first input audio signal. NLP component 108 can convert speech within the first input audio signal into an input string of text. Figure 3 As shown, the data processing system 102 is capable of converting an input audio signal 302 into an input string 304 .
[0056] The method 200 can include determining a confidence score (act 206). The NLP component 108 and the scoring engine 114 can determine a confidence score indicating the accuracy of the first input string. For example, the confidence score can indicate the confidence level that the speech recognition system of the NLP component accurately understands the speech within the input audio signal. The confidence score can be a score between 0% and 100% confidence. The confidence score can be a relative ranking, such as an indication of high confidence, medium confidence, or low confidence.
[0057] For example, if the input audio signal includes the utterance "do you have time for lunch today," and the speech recognition system of the data processing system converts the input audio signal into the input string "dew yah have time fr launch tooth bae," the scoring engine 114 can assign a low confidence score to the input string.
[0058] The signal generator component 110 of the data processing system 102 can generate intermediate output signals. The intermediate output signals can be output signals generated between the user's conversation turns. The data processing system 102 can transmit the intermediate signals to the client device 126, which can reproduce the output signals to the user via the speaker 128. The intermediate output signals can include requests for additional information, verbal instructions, or confirmations.
[0059] The signal generator component 110 can generate an intermediate output signal based on the confidence score generated in action 206. For example, if the confidence score is low (or below a predetermined threshold), the signal generator component 110 can generate an intermediate output signal that indicates to the user that the speech in the first input audio signal was not heard correctly and requests an updated input audio signal (e.g., requesting to repeat the speech contained in the first input audio signal). If the confidence score is below the predetermined threshold, the data processing system 102 can discard the input string. The data processing system 102 can discard the input string and wait for additional input audio signals that the data processing system can receive in response to the intermediate output signal. For example, the data processing system 102 can determine that the first input string has a confidence score below a predetermined threshold. The data processing system 102 can generate an intermediate output signal including a request for the user to repeat or paraphrase the speech in the first input string. Then, the data processing system 102 can discard the first input string in response to the intermediate output signal and process the input audio signal transmitted to the data processing system 102.
[0060] If the confidence score is a medium confidence score, the signal generator component 110 can generate an intermediate output signal including the input string. For example, the intermediate output signal including the input string can be transmitted to the client device 126 and reproduced to the user to confirm that the speech in the first input audio signal is correctly converted to text. If the confidence score is high or above a predetermined threshold, the data processing system 102 can continue to generate one or more translation strings without generating an intermediate output signal.
[0061] Method 200 can include generating one or more translation strings (act 208). Figure 3 , the translation engine 106 can pass the input string 304 through the first language model 116 ( 1 ) to generate a first translated string 306 ( 1 ) and through the second language model 116 ( 2 ) to generate a second translated string 306 ( 2 ).
[0062] The translation engine 106 can process the input string 304 with multiple language models 116 (e.g., language model 116(1) and language model 116(2)). The translation engine 106 can process the input string 304 with the first language model 116(1) and the second language model 116(2) at the same time. The translation engine 106 can process the input string 304 with both language models 116 to enable the user 300 to speak without taking turns. For example, a turn-based conversation is not enforced.
[0063] Language models 116 can be language models for translating between languages. Translation engine 106 can use one of language models 116 to translate a first language into a second language and use a second language model 116 to translate a second language into a first language. For example, language model 116(2) can translate from the language of user 300(1) into the language of user 300(2), and language model 116(1) can translate from the language of user 300(2) into the language of user 300(1).
[0064] The translation engine 106 can automatically select the language model 116 to use, or the user can specify the language model 116 to use. For example, in the input audio signal, the user 300(1) can say "okay, translate betweenEnglish and French". The NLP component 108 can recognize the words "English" and "French" in the input audio signal and can instruct the translation engine 106 to select the language model 116 for translation between English and French and the language model 116 for translation between French and English.
[0065] Translation engine 106 can automatically select language model 116 by automatically identifying the languages of user 300(1) and user 300(2). For example, data processing system 102 can associate a language with each of users 300 by identifying user 300 by identifying the fundamental frequencies of the user's speech, and then selecting language model 116 based on the user's preferred language.
[0066] The translation engine 106 can parse the input string 304 and send the parsed portion of the input string 304 to each of the language models 116. For example, the translation engine 106 can parse the input string 304 to break the input string 304 into multiple input strings at each break (e.g., a comma, period, or semicolon) in the original input string 304. The translation engine 106 can provide each of the multiple input strings to the language models 116 to detect situations where a single user can switch between speaking in two different languages.
[0067] Reference Figure 2 , the method 200 can include determining a translation score (act 210). The translation engine 106 can determine a translation score for each of the translation strings 306. The translation score can indicate a likelihood that the first input audio signal includes an utterance in a language associated with an input language of each of the corresponding language models 116. For example, if the input string is English, the translation score of a translation string generated by passing the input string through an English to French language model is relatively high compared to the translation score of a translation string generated by passing the input string through a French to English language model.
[0068] The scoring engine 114 can determine the translation score by comparing or processing the translation string with the output grammar set. For example, the scoring engine 114 can determine the target output language by determining which grammar set best fits the structure of the translation string.
[0069] The translation engine 106 can also determine a translation score indicating the accuracy of the translation of the input string to the translation string. The translation score of the translation accuracy can also be referred to as a translation confidence score. The translation confidence score can indicate how well one or more phrases in the input string are translated into the language of the target language. For example, an input string including an idiom or rhetoric can be translated word for word, and the translation may not convey the meaning that the original speaker intended to express. The translation engine 106 can assign a low translation confidence score to the translation string generated from the input string.
[0070] When the translation engine 106 assigns a low translation confidence score to the translation string, the signal generator component 110 can generate an intermediate output signal based on the low translation confidence score. For example, when the translation confidence score is below a predetermined threshold, the signal generator component 110 can generate an intermediate output signal. The intermediate output signal can include a request to paraphrase the utterance in the first input audio signal. For example, the intermediate output signal can include a request for the user to restate the utterance without rhetoric.
[0071] Method 200 can include selecting a translation string (act 212). Translation engine 106 can select a translation string based on the translation score of the translation string. As described above, the input string can be processed by a first language model having an input language A and an output language B and a second language model having an input language B and an output language A. A language model whose input language matches the language of the input string will generate a translation string with a higher translation score. Figure 3 Among other things, the translation engine 106 can compare the translation scores of the translation string 306 and the translation string 306(2). The translation engine 106 can determine that the translation string 306(2) has a higher translation score and can select the translation string 306(2) to include in the output signal 308.
[0072] The method 200 can include generating an output signal (act 214). The signal generator component 110 can generate the output signal based on the translation string selected in act 212. The signal generator component 110 can generate the output signal by processing the translation string using a text-to-speech system to, for example, generate an audio file including computer-generated speech speaking the translation string.
[0073] Method 200 can include transmitting the output signal (act 216). Method 200 can include transmitting the output signal from data processing system 102 to client device 126. Figure 3 As shown, output signal 308 can be transmitted to client device 126. Client device 126 can reproduce the output signal as output audio signal 310 that user 300(2) can hear. The utterances included in the output audio signal can be translations of the utterances in the input audio signal. The output audio signal can include the utterances in the input audio signal translated from the language of user 300(1) to the language of user 300(2).
[0074] The utterance contained in the input audio signal can be a single turn in a conversation between user 300(1) and user 300(2). Client device 126 repeats the steps of method 200 for additional input audio signals that are part of a conversation between users 300. Users 300 can take turns providing utterances to client device 126. A given user can provide multiple input audio signals to client device 126. For example, user 300(1) can provide an utterance to client device 126, followed by user 300(2) providing an utterance to client device 126.
[0075] As the conversation between the users 300 continues, the data processing system 102 can count the number of input audio signals received during the conversation or session. The signal generator component 110 can generate an intermediate output signal based on the count of the number of input audio signals. For example, when the input audio signal count is low (indicating that the conversation or conversation has just begun), the signal generator component 110 can generate an intermediate output signal that can include instructions, prompts, or other information. For example, the intermediate output signal when the conversation first begins can include the output phrase "Should I explain to the other person how the translation service works?".
[0076] The length or detail of the intermediate output signal can be based on the count of the input audio signal. For example, as the count of the input audio signal increases in the conversation, the length of the intermediate output signal can be shortened. In one example, when the count of the input audio signal is low, the signal generator component 110 can generate an intermediate output signal that includes a phrase indicating that the client device 126 is ready to receive the next utterance. For example, the intermediate output signal can include "Okay, I'm ready to translate". As the count of the input audio signal increases, the intermediate output signal can be shortened to just a prompt tone indicating that the client device 126 is ready to receive an utterance from the user.
[0077] The length or detail of the intermediate output signal can be based on the conversation count. For example, when the conversation count is low, indicating that the currently translated conversation is one of the first conversations translated by the data processing system 102 for a given user, the signal generator component 110 can generate a longer intermediate output signal. For example, for one of the initial conversations translated (the conversation count is low), the data processing system 102 can provide instructions in response to activation, such as "Hi, I'm going to help translate your conversation. If I don't understand something you say, I'll ask you to repeat what you said. Otherwise, just speak normally, and I'll domy best to translate you." As the conversation count increases, the data processing system 102 can generate shorter intermediate output signals for the activation instructions. For example, after a predetermined number of conversations, the instruction provided after activation can be "Hi, I'm going to translate your conversation".
[0078] Figure 4 4 is a block diagram of an example computer system 400. The computer system or computing device 400 can include or be used to implement the system 100 or its components such as the data processing system 102. The computing system 400 includes a bus 405 or other communication component for communicating information and a processor 410 or processing circuit coupled to the bus 405 to process information. The computing system 400 can also include one or more processors 410 or processing circuits coupled to the bus to process information. The computing system 400 also includes a main memory 415, such as a random access memory (RAM) or other dynamic storage device, coupled to the bus 405 to store information and instructions to be executed by the processor 410. The main memory 415 can be or include the data repository 132. The main memory 415 can also be used to store location information, temporary variables, or other intermediate information during the execution of instructions by the processor 410. The computing system 400 may further include a read-only memory (ROM) 420 or other static storage device coupled to the bus 405 to store static information and instructions for the processor 410. A storage device 425, such as a solid-state device, magnetic disk, or optical disk, can be coupled to bus 405 for permanent storage of information and instructions. Storage device 425 can include data repository 132 or be a portion thereof.
[0079] The computing system 400 may be coupled to a display 435, such as a liquid crystal display or an active matrix display, via the bus 405 to display information to a user. An input device 430, such as a keyboard including alphanumeric and other keys, may be coupled to the bus 405 to communicate information and command selections to the processor 410. The input device 430 can include a touch screen display 435. The input device 430 can also include a cursor control, such as a mouse, a trackball, or cursor direction keys, to communicate direction information and command selections to the processor 410 and control cursor movement on the display 435. The display 435 can be, for example, Figure 1 Part of data processing system 102, client device 126, or another component in.
[0080] The processes, systems, and methods described herein can be implemented by means of the computing system 400 in response to the processor 410 executing instructions contained in the main memory 415. Such instructions can be read into the main memory 415 from another computer-readable medium such as the storage device 425. The means for executing the instructions contained in the main memory 415 causes the computing system 400 to perform the illustrative processes described herein. One or more processors in a multi-processing device can also be used to execute the instructions contained in the main memory 415. Hard-wired circuits can be used in place of or in combination with software instructions with the systems and methods described herein. The systems and methods described herein are not limited to any specific combination of hardware circuitry and software.
[0081] Although Figure 4 An example computing system is described in the specification, but the subject matter including the operations described in this specification can be implemented in other types of digital electronic circuits or computer software, firmware or hardware, or a combination of one or more of them, including the structures disclosed in this specification and their equivalents.
[0082] For situations where the systems discussed herein collect personal information about users or can make use of personal information, users can be provided with the opportunity to control whether personal information (e.g., information about the user's social network, social actions or activities, user preferences, or user location) can be collected or whether or how content is received from content servers or other data processing systems that are more relevant to the user. In addition, certain data can be anonymized in one or more ways before being stored or used so that personally identifiable information is removed when parameters are generated. For example, the identity of a user can be anonymized so that no personally identifiable information can be determined for the user, or in the case of location information, the user's geographic location can be generalized (such as city, zip code, or state level) so that the user's specific location cannot be determined. Thus, the user can control how information about him or her is collected and how it is used by the content server.
[0083] The subject matter and operation described in this specification can be implemented with a digital electronic circuit or computer software, firmware or hardware including the structure disclosed in this specification and their equivalent structure or a combination of one or more of them. The subject matter described in this specification can be implemented as one or more computer programs, for example, a circuit of one or more computer program instructions encoded on one or more computer storage media for a digital processing device to execute or control its operation. Alternatively or additionally, the program instructions can be encoded on an artificially generated propagation signal, for example, a machine-generated electrical signal, optical signal or electromagnetic signal, which is generated to encode information for transmission to a suitable receiver device for execution by a data processing device. The computer storage medium can be a computer-readable storage device, a computer-readable storage matrix, a random or serial access memory array or device or a combination of one or more of them, or is included therein. Although the computer storage medium is not a propagation signal, the computer storage medium can be the source or destination of the computer program instructions encoded with an artificially generated propagation signal. The computer storage medium can also be one or more separate components or media (for example, multiple CDs, disks or other storage devices), or be included therein. The operations described in this specification can be implemented as operations performed by a data processing apparatus on data stored on one or more computer-readable storage devices or received from other sources.
[0084] The terms "data processing system", "computing device", "component" or "data processing apparatus" cover various apparatuses, devices and machines for processing data, including, for example, a programmable processor, a computer, one or more systems on a chip, or a combination of the above. The apparatus can include dedicated logic circuits, such as an FPGA (field programmable gate array) or an ASIC (application-specific integrated circuit). In addition to hardware, the apparatus can also include code that creates an execution environment for the above-mentioned computer program, for example, code that constitutes processor firmware, a protocol stack, a database management system, an operating system, a cross-platform runtime environment, a virtual machine, or a combination of one or more of them. The apparatus and execution environment can implement a variety of different computing model infrastructures, such as web services, distributed computing, and grid computing infrastructures. The components of system 100 can include or share one or more data processing apparatuses, systems, computing devices, or processors.
[0085] A computer program (also known as a program, software, software application, app, script, or code) can be written in any form of programming language, including compiled or interpreted languages and declarative or procedural languages, and can be deployed in any form, including as a standalone program or as a module, component, subroutine, object, or other unit suitable for a computing environment. A computer program can correspond to a file in a file system. A computer program can be stored in a portion of a file that stores other programs or data (e.g., one or more scripts stored in a markup language document), in a single file dedicated to the above program, or in multiple collaborative files (e.g., a file that stores one or more modules, subroutines, or code portions). A computer program can be deployed to execute on a computer or multiple computers located at one site or distributed across multiple sites and interconnected by a communication network.
[0086] The processes and logic flows described in this specification can be performed by one or more programmable processors (e.g., components of data processing system 102) executing one or more computer programs to perform actions by operating on input data and generating output. The processes and logic flows can also be performed by special logic circuits such as FPGAs (field programmable gate arrays) or ASICs (application-specific integrated circuits), and the apparatus can also be implemented as such special logic circuits. Devices suitable for storing computer program instructions and data include all forms of non-volatile memory, media, and memory devices, including, for example: semiconductor memory devices, such as EPROMs, EEPROMs, and flash memory devices; magnetic disks, such as built-in hard disks or removable disks; magneto-optical disks; and CD ROM disks and DVD-ROM disks. The processor and memory can be supplemented by or incorporated into special logic circuits.
[0087] The subject matter described herein can be implemented in a computing system that includes a back-end component, such as a data server, or a middleware component (e.g., an application server), or a front-end component (e.g., a client computer with a graphical user interface or a web browser with which a user can interact with an embodiment of the subject matter described in this specification), or a combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication, such as a communication network. Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a point-to-point network (e.g., an ad hoc point-to-point network).
[0088] A computing system such as system 100 or system 400 can include a client and a server. The client and server are generally remote from each other and usually interact through a communication network (e.g., network 124). The relationship between the client and the server is implemented by means of computer programs running on respective computers and having a client-server relationship with each other. In some embodiments, the server transmits data (e.g., data packets representing content items) to a client device (e.g., for the purpose of displaying data to a user interacting with the client device and receiving user input from the user). Data generated at the client device (e.g., the result of user interaction) can be received at the server from the client device (e.g., received by the data processing system 102 from the client device 126).
[0089] The system may include: an interface that receives a second input audio signal detected by a sensor of a client device; a natural language processor component that determines a second confidence score of a second input string generated based on the second input audio signal; and a signal generator component that generates an intermediate output signal based on the second confidence score. The intermediate output signal may include a request for an updated input audio signal. The intermediate output signal may include a confirmation of the second input audio signal. The translation engine may: generate a first translation string using a first language model; and generate a second translation string using a second language model. The first translation score and the second translation score may indicate the likelihood that the first input audio signal can include an utterance in a first language. The signal generator component may: generate an intermediate output signal based on at least one of the first translation score and the second translation score being below a second predetermined threshold. The intermediate output signal may include a request to paraphrase an utterance in the first input audio signal. The system may include: a natural language processor component that determines an output grammar set based on the input audio signal; a translation engine that determines a first translation score based on a comparison of the output grammar set with the first translation string; and a translation engine that determines a second translation score based on a comparison of the output grammar set with the second translation string. The data processing system may: generate a conversation count based on the number of interactions with the data processing system; and generate an intermediate output signal based on the conversation count. The system may include: a data processing system that generates an input audio signal count based on a plurality of input audio signals received during a conversation session with the data processing system; and a signal generator component that generates an intermediate output signal based on the input audio signal count.
[0090] The method may include: receiving, at an interface, a second input audio signal detected by a sensor of a client device; determining, by a natural language processor component, a second confidence score of a second input string generated based on the second input audio signal; and generating, by a signal generator component, an intermediate output signal based on the second confidence score. The intermediate output signal may include a request for an updated input audio signal. The method may include: generating, by a translation engine, a first translation string using a first language model; and generating, by a translation engine, a second translation string using a second language model. The first translation score and the second translation score may indicate a likelihood that the first input audio signal can include an utterance in a first language. The method may include: generating, by a signal generator component, an intermediate output signal based on at least one of the first translation score and the second translation score being below a second predetermined threshold, wherein the intermediate output signal may include a request to paraphrase an utterance in the first input audio. The method may include: determining, by a natural language processor component, an output grammar set based on the input audio signal; determining, by a translation engine, a first translation score based on a comparison of the output grammar set with the first translation string; and determining, by a translation engine, a second translation score based on a comparison of the output grammar set with the second translation string. The method may include: generating, by the data processing system, a conversation count based on a number of interactions with the data processing system; and generating, by the signal generator component, an intermediate output signal based on the conversation count. The method may include: generating, by the data processing system, an input audio signal count based on a plurality of input audio signals received during a conversation session with the data processing system; and generating, by the signal generator component, an intermediate output signal based on the input audio signal count.
[0091] Although operations are depicted in the drawings in a particular order, it is not required that such operations be performed in the particular order shown or in sequential order, and it is not required that all illustrated operations be performed. The actions described herein can be performed in a different order.
[0092] The separation of various system components is not required in all embodiments, and the program components described can be included in a single hardware or software product. For example, the NLP component 108 can be a single component, app or program, or a logical device with one or more processing circuits, or a part of one or more servers of the data processing system 102.
[0093] Having now described some illustrative embodiments, it is apparent that the foregoing is illustrative rather than restrictive and has been exemplified. In particular, although many of the examples presented herein relate to specific combinations of method actions or system elements, those actions and those elements may be combined in other ways to achieve the same goals. The combination of actions, elements, and features discussed with one embodiment is not intended to exclude similar functions in other embodiments or examples.
[0094] The phrases and terms used herein are for descriptive purposes and should not be considered limiting. The use of "comprising," "including," "having," "containing," "involving," "characterized by," "characterized by," and their variations herein is intended to encompass the items listed thereafter, their equivalents and additional items, and alternative embodiments consisting exclusively of the items listed thereafter. In one embodiment, the systems and methods described herein consist of one, more than one, each combination, or all of the elements, actions, or components described.
[0095] Any reference to an embodiment or element or action of the systems and methods herein in the singular may also encompass embodiments including a plurality of these elements, and any reference to any embodiment or element or action herein in the plural may also encompass embodiments including only a single element. References in the singular or plural are not intended to limit the systems or methods disclosed herein or their components, actions or elements to a single or multiple configurations. References to any action or element based on any information, action or element may include embodiments in which the action or element is based at least in part on any information, action or element.
[0096] Any embodiment disclosed herein may be combined with any other embodiment or example, and references to "an embodiment," "some embodiments," "an embodiment," etc. are not necessarily mutually exclusive and are intended to indicate that a particular feature, structure, characteristic described in conjunction with the embodiment may be included in at least one embodiment or example. Thus, the terms as used herein do not necessarily all refer to the same embodiment. Any embodiment may be combined with any other embodiment, inclusively or exclusively, in any manner consistent with the aspects and embodiments disclosed herein.
[0097] References to "or" may be interpreted as inclusive, so that any term described using "or" may refer to any of a single, more than one, and all of the terms. For example, a reference to "at least one of A and B" can include only "A" or only "B" as well as both "A" and "B". Such references used in conjunction with "including" or other open-ended terms can include additional items.
[0098] Where reference numerals are attached to technical features in the drawings, detailed description or any claims, such reference numerals are included to improve the intelligibility of the drawings, detailed description and claims. Accordingly, the presence or absence of reference numerals will not have any limiting effect on the scope of any claim element.
[0099] The systems and methods described herein may be embodied in other specific forms without departing from their characteristics. The above embodiments are illustrative and do not limit the systems and methods described. Therefore, the scope of the systems and methods described herein is specified by the appended claims rather than the above description, and changes within the equivalent meaning and scope of the claims are included therein.
Claims
1. A system for generating a speech-based interface, include: A data processing system comprising a memory and one or more processors, wherein the one or more processors execute a natural language processor component, a translation engine, and a signal generator component to: receiving, at an interface of the data processing system, a first input audio signal detected by a sensor of a client device; generating a first translation string in a second language and a second translation string in a first language based on the first input audio signal, wherein the first translation string in the second language is generated using a first language model having the first language as an input language, the second translation string in the first language is generated using a second language model having the second language as the input language, and the second language is different from the first language; determining a first translation score based on a likelihood that the first input audio signal includes an utterance in the first language, and determining a second translation score based on a likelihood that the first input audio signal includes an utterance in the second language; selecting the first translation string based on the first translation score and the second translation score; generating an output signal from the first translated string; and The output signal is transmitted by the interface to the client device for presentation of the output signal.
2. The system according to claim 1, include: the interface for receiving a second input audio signal detected by the sensor of the client device; the natural language processor component for determining a confidence score based on the second input audio signal; as well as The signal generator component is configured to generate an intermediate output signal based on the confidence score.
3. The system according to claim 2, in, The intermediate output signal comprises a request for an updated input audio signal.
4. The system according to claim 2, in, The intermediate output signal comprises an acknowledgement of the second input audio signal.
5. The system of claim 1, comprising the signal generator assembly for: An intermediate output signal is generated based on at least one of the first translation score and the second translation score being below a threshold.
6. The system according to claim 5, in, The intermediate output signal comprises a request for a paraphrase of an utterance in the first input audio signal.
7. The system according to claim 1, include: the natural language processor component for determining an output grammar set based on the first input audio signal; the translation engine, the translation engine configured to determine the first translation score based on a comparison of the output grammar set and the first translation string; as well as The translation engine is configured to determine the second translation score based on a comparison of the output grammar set and the second translation string.
8. The system according to claim 1, comprising the data processing system for: generating a conversation count based on the number of interactions with the data processing system; and An intermediate output signal is generated based on the dialog count.
9. The system according to claim 1, include: the data processing system for generating an input audio signal count based on a plurality of input audio signals received during a conversation session with the data processing system; as well as The signal generator component is configured to generate an intermediate output signal based on the input audio signal count.
10. A method for generating a speech-based interface, include: receiving a first input audio signal detected by a sensor of a client device; generating a first translation string in a second language and a second translation string in a first language based on the first input audio signal, wherein the first translation string in the second language is generated using a first language model having the first language as an input language, the second translation string in the first language is generated using a second language model having the second language as the input language, and the second language is different from the first language; determining a first translation score based on a likelihood that the first input audio signal includes an utterance in the first language, and determining a second translation score based on a likelihood that the first input audio signal includes an utterance in the second language; selecting the first translation string based on the first translation score and the second translation score; generating an output signal from the first translated string; and The output signal is transmitted to the client device for presentation of the output signal.
11. The method according to claim 10, include: receiving a second input audio signal detected by the sensor of the client device; determining a confidence score based on the second input audio signal; as well as An intermediate output signal is generated based on the confidence score.
12. The method according to claim 11, in, The intermediate output signal comprises a request for an updated input audio signal.
13. The method according to claim 10, include: An intermediate output signal is generated based on at least one of the first translation score and the second translation score being below a threshold, wherein the intermediate output signal includes a request to paraphrase an utterance in the first input audio signal.
14. The method according to claim 10, include: determining an output grammar set based on the first input audio signal; determining the first translation score based on a comparison of the output grammar set and the first translation string; as well as The second translation score is determined based on a comparison of the output grammar set and the second translation string.
15. The method according to claim 10, include: generating a conversation count based on a number of interactions with the data processing system; as well as An intermediate output signal is generated based on the dialog count.
16. The method according to claim 10, include: generating an input audio signal count based on a plurality of input audio signals received during a conversational session with the data processing system; as well as An intermediate output signal is generated based on the input audio signal count.
17. A computer program product comprising one or more computer-readable storage media having program instructions stored collectively on the one or more computer-readable storage media, the program instructions being executable to: receiving a first input audio signal detected by a sensor of a client device; generating a first translation string in a second language and a second translation string in a first language based on the first input audio signal, wherein the first translation string in the second language is generated using a first language model having the first language as an input language, the second translation string in the first language is generated using a second language model having the second language as the input language, and the second language is different from the first language; determining a first translation score based on a likelihood that the first input audio signal includes an utterance in the first language, and determining a second translation score based on a likelihood that the first input audio signal includes an utterance in the second language; selecting the first translation string based on the first translation score and the second translation score; generating an output signal from the first translated string; and The output signal is transmitted to the client device for presentation of the output signal.
18. The computer program product according to claim 17, in, The program instructions are further executable to: receiving a second input audio signal detected by the sensor of the client device; determining a confidence score based on the second input audio signal; as well as An intermediate output signal is generated based on the confidence score.
19. The computer program product according to claim 17, in, The intermediate output signal comprises a request for an updated input audio signal.
20. The computer program product according to claim 17, in, The program instructions are further executable to generate an intermediate output signal based on at least one of the first translation score and the second translation score being below a threshold, wherein the intermediate output signal includes a request to paraphrase an utterance in the first input audio signal.
21. A method implemented by one or more processors, the method include: receiving a first input audio signal detected by a sensor of a client device; generating a first translation string in a second language based on the first input audio signal, wherein the first translation string in the second language is generated using a first language model having the first language as an input language, determining a first translation confidence score based on the first translation string in the second language, wherein the first translation score indicates an accuracy of a translation of an utterance in the first input audio signal from the first language to the second language; determining that the first translation confidence score does not satisfy a translation confidence score threshold; and In response to determining that the first translation confidence score does not satisfy the translation confidence score threshold, a user is prompted to clarify the utterance.
22. The method according to claim 21, in, Prompting the user to clarify the utterance includes prompting the user to rephrase the utterance.
23. The method according to claim 22, in, The user is prompted to avoid using idioms or figures of speech when paraphrasing the utterance.
24. The method according to claim 21, in, Prompting the user to clarify the utterance includes prompting the user to repeat the utterance.
25. The method according to claim 21, in, Prompting the user to clarify the utterance includes: presenting an input string generated based on the first input audio signal; and The user is prompted to confirm that the input string is a correct representation of the utterance.
26. The method according to claim 21, further comprising include: generating a second translation string in the first language based on the first input audio signal, wherein the second translation string in the first language is generated using a second language model having the second language as an input language; determining a second translation confidence score based on the second translation string in the first language, wherein the second translation score indicates an accuracy of the translation of the utterance in the first input audio signal from the second language to the first language; and determining that the second translation confidence score does not satisfy the translation confidence score threshold, Wherein prompting the user to clarify the utterance is further responsive to determining that the second translation confidence score does not satisfy the translation confidence score threshold.
27. The method according to claim 21, further comprising include: receiving a confirmation of the first input audio signal in response to prompting the user to clarify the utterance; selecting the first translation string; generating an output signal from said first translated string; as well as The output signal is transmitted to the client device for presentation of the output signal.
28. A system, include: A processor, a computer readable memory, one or more computer readable storage media, and program instructions stored together on the one or more computer readable storage media, the program instructions being executable to: receiving a first input audio signal detected by a sensor of a client device; generating a first translation string in a second language based on the first input audio signal, wherein the first translation string in the second language is generated using a first language model having the first language as an input language, determining a first translation confidence score based on the first translation string in the second language, wherein the first translation score indicates an accuracy of a translation of an utterance in the first input audio signal from the first language to the second language; determining that the first translation confidence score does not satisfy a translation confidence score threshold; and In response to determining that the first translation confidence score does not satisfy the translation confidence score threshold, a user is prompted to clarify the utterance.
29. The system according to claim 28, in, Prompting the user to clarify the utterance includes prompting the user to rephrase the utterance.
30. The system according to claim 29, in, The user is prompted to avoid using idioms or figures of speech when paraphrasing the utterance.
31. The system according to claim 28, in, Prompting the user to clarify the utterance includes prompting the user to repeat the utterance.
32. The system according to claim 28, in, Prompting the user to clarify the utterance includes: presenting an input string generated based on the first input audio signal; and The user is prompted to confirm that the input string is a correct representation of the utterance.
33. The system according to claim 28, in: The program instructions are further executable to: generating a second translation string in the first language based on the first input audio signal, wherein the second translation string in the first language is generated using a second language model having the second language as the input language; determining a second translation confidence score based on the second translation string in the first language, wherein the second translation confidence score indicates an accuracy of the translation of the utterance in the first input audio signal from the second language to the first language; and determining that the second translation confidence score does not satisfy the translation confidence score threshold; and Prompting the user to clarify the utterance is further responsive to determining that the second translation confidence score does not satisfy the translation confidence score threshold.
