Electronic device and control method thereof

By detecting and correcting speech signal errors output by the TTS module, the problem of text errors caused by insufficient training data in speech synthesis is solved, the accuracy and naturalness of speech synthesis are improved, and the sound quality in the device is enhanced.

CN113498536BActive Publication Date: 2024-10-15SAMSUNG ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202080017465.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-02-28
Filing Date
2020-02-03
Publication Date
2024-10-15
Estimated Expiration
2040-02-03

AI Technical Summary

Technical Problem

In the speech synthesis process, insufficient training data may lead to text errors, leading to a decrease in sound quality and an increase in errors, and the lightweight model cannot directly correct the parameters of the TTS model when implemented in the device.

Method used

By detecting errors in the voice signal output by the TTS module, the processor is used to obtain input data, convert the voice signal into text data, compare the original text and the corrected text, identify and correct errors in the voice signal, including adjusting the spacing and punctuation of the text data. Symbols, corrected using Speech Synthesis Markup Language (SSML).

Benefits of technology

A more precise and natural conversational system is achieved, the accuracy and quality of speech synthesis is improved, errors are reduced, and the sound performance in the device is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113498536B_ABST
    Figure CN113498536B_ABST
Patent Text Reader

Abstract

An electronic device, which obtains input data to be input into the TTS module for outputting voice through a TTS module, obtains a voice signal corresponding to the input data through the TTS module, detects errors in the obtained voice signal based on the input data, corrects the input data based on the detection result, and obtains a corrected voice signal corresponding to the corrected input data through the TTS module.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to an electronic device and a control method thereof, and more particularly, to an electronic device and a control method thereof capable of implementing a more accurate and natural conversation system. Background Art

[0002] Recently, artificial intelligence systems are used in various fields. Unlike traditional rule-based intelligent systems, artificial intelligence systems are systems in which machines learn, determine, and iteratively improve analysis and decision-making. As artificial intelligence systems operate iteratively, they show higher recognition rates and, for example, become able to more correctly understand user preferences. For this reason, traditional rule-based intelligent systems are gradually being replaced by deep learning-based artificial intelligence systems.

[0003] Recently, various services using artificial intelligence agents (e.g., Bixby™, Assistant™, Alexa™, etc.) that respond to user voice input are being provided. Specifically, with the introduction of neural text-to-speech (TTS) technology, the relationship between input text and acoustic characteristics can be modeled as a whole, and an overall natural synthesized speech can be output.

[0004] However, in the case where the training data is insufficient for training, text errors may occur during the speech synthesis process. In the case of utterance errors, it may not be possible to directly correct the parameters of the TTS model. Therefore, in the process where the lightweight model is used for implementation in the device, etc., the sound quality is degraded and the occurrence of errors increases.

[0005] Therefore, there is a need for a technology for recognizing and correcting an error in a case where a speech different from a response expected by a natural language processing part is uttered due to an operational error of a speech synthesis part (text to speech). Summary of the invention

[0006] Technical issues

[0007] The present disclosure is designed according to the above needs, and an object of the present disclosure is to provide an electronic device and a control method thereof that can implement a more accurate and natural conversation system by detecting and correcting errors in a voice signal output at a TTS module.

[0008] Technical Solutions

[0009] According to an embodiment, an electronic device is provided, comprising a memory including at least one instruction, and a processor that executes at least one instruction stored in the memory and controls the electronic device. When executing at least one instruction, the processor may be configured to: obtain input data to be input into a text-to-speech (TTS) module for outputting speech through a TTS module; obtain a speech signal corresponding to the input data through the TTS module; detect an error in the speech signal based on the input data; correct the input data based on a result of detecting the error; and obtain a corrected speech signal corresponding to the input data corrected based on the result of detecting the error through the TTS module.

[0010] In this case, the input data may include first text data, and the processor may convert the voice signal into second text data, compare the first text data and the second text data included in the input data, and detect an error in the voice signal based on a result of comparing the first text data and the second text data.

[0011] At the same time, the input data may include emotion-related data, and the processor may identify the emotion of the speech signal based on the frequency characteristics of the speech signal, compare the emotion-related data included in the input data with the emotion, and detect errors in the speech signal based on the result of comparing the emotion-related data included in the input data with the emotion.

[0012] Furthermore, the processor may compare the length of the voice signal and the length of text data included in the input data, and detect an error in the voice signal based on a result of comparing the length of the voice signal and the length of text data included in the input data.

[0013] At the same time, the processor can correct at least one of the spacing or punctuation of the text data included in the information about the input data based on detecting the error in the voice signal, and input the corrected input data having at least one of the spacing or punctuation of the text data into the TTS module.

[0014] In addition, the processor may correct the input data by applying speech synthesis markup language (SSML) to text data included in the input data based on detecting an error in the speech signal, and input the corrected input data having the speech synthesis markup language (SSML) applied to the text data into the TTS module.

[0015] Meanwhile, the processor may convert the received user voice into text data by using the voice recognition module, analyze the intention of the text data, and acquire response information corresponding to the received user voice as input data.

[0016] Meanwhile, the electronic device according to an embodiment of the present disclosure may further include a speaker, and the processor may add an indicator indicating the correction to the voice signal, and output the voice signal with the indicator through the speaker.

[0017] In addition, the electronic device according to the embodiment of the present disclosure may also include a speaker and a microphone, and the processor may output a voice signal through the speaker, and based on the voice signal output through the speaker received through the microphone, detect errors in the voice signal received through the microphone based on input data.

[0018] In this case, the processor can identify the identity of the voice signal received through the microphone. In addition, the processor can detect errors in the voice signal based on the fact that the voice signal received through the microphone is a voice signal output through the speaker based on the identity, and based on the fact that the voice signal received through the microphone has been issued by a user based on the identity, convert the voice signal into text data by using a voice recognition module, analyze the intention of the text data, and obtain response information corresponding to the received user voice as input data.

[0019] Meanwhile, the electronic device according to an embodiment of the present disclosure may further include a communicator, and the processor may transmit the voice signal to the external device through the communicator.

[0020] According to an embodiment, a method for controlling an electronic device is provided, comprising the following steps: acquiring, through a TTS module, input data to be input into a TTS module for outputting voice; acquiring, through the TTS module, a voice signal corresponding to the input data; detecting an error in the voice signal based on the input data; correcting the input data based on a result of detecting the error; and acquiring, through the TTS module, a corrected voice signal corresponding to the input data corrected based on the result of detecting the error.

[0021] In this case, the input data may include text data, and the step of detecting an error may include the steps of converting a speech signal into second text data, comparing first text data and second text data included in the input data, and detecting an error in the speech signal based on a result of comparing the first text data and the second text data.

[0022] At the same time, the input data may include emotion-related data, and the step of detecting errors may include the following steps: identifying the emotion of the speech signal based on the frequency characteristics of the speech signal, comparing the emotion-related data included in the input data with the emotion, and detecting errors in the speech signal based on the result of comparing the emotion-related data included in the input data with the emotion.

[0023] Furthermore, the step of detecting the error may include comparing the length of the voice signal and the length of text data included in the input data, and detecting the error in the voice signal based on a result of comparing the length of the voice signal and the length of the text data included in the input data.

[0024] Meanwhile, the correction step may include correcting at least one of spacing or punctuation of text data included in the input data based on detecting an error in the speech signal, and inputting the corrected input data having at least one of spacing or punctuation of the text data into the TTS module.

[0025] In addition, the correcting step may include correcting the input data by applying Speech Synthesis Markup Language (SSML) to text data included in the input data based on detecting an error in the speech signal, and inputting the corrected input data with the Speech Synthesis Markup Language (SSML) applied to the text data into the TTS module.

[0026] Meanwhile, in the step of acquiring input data, the received user voice may be converted into text data by using a voice recognition module, and the intention of the text data may be analyzed, and response information corresponding to the user voice may be acquired as input data.

[0027] In addition, the method for controlling an electronic device according to an embodiment of the present disclosure may further include the steps of adding an indicator notifying the correction to the corrected voice signal, and outputting the signal through a speaker.

[0028] At the same time, the method for controlling an electronic device according to an embodiment of the present disclosure may further include the step of outputting the acquired voice signal through a speaker. In addition, the step of detecting an error may include the following steps: receiving the voice signal output through the speaker through a microphone, and detecting an error in the voice signal received through the microphone based on the input data. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 is a diagram showing a usage example of an electronic device according to an embodiment of the present disclosure;

[0030] Figure 2 is a block diagram showing a schematic configuration of an electronic device according to an embodiment of the present disclosure;

[0031] Figure 3 The present invention is shown in Figure 2 A block diagram of a detailed configuration of the electronic device shown;

[0032] Figure 4 is a diagram showing an electronic device for verifying a TTS module according to an embodiment of the present disclosure;

[0033] Figure 5 is a diagram showing an electronic device according to an embodiment of the present disclosure;

[0034] Figure 6 is a diagram showing an electronic device for verifying a TTS module according to an embodiment of the present disclosure;

[0035] Figure 7 is a diagram showing an electronic device for verifying a TTS module according to an embodiment of the present disclosure;

[0036] Figure 8 is a diagram showing a verification module according to an embodiment of the present disclosure;

[0037] Fig. 9 is a diagram showing a verification module according to an embodiment of the present disclosure;

[0038] Fig.10 is a diagram illustrating a method of correcting characteristics of a speaker according to an embodiment of the present disclosure;

[0039] Fig.11 is a diagram showing a verification module according to an embodiment of the present disclosure;

[0040] Fig.12 is a diagram showing an electronic device according to an embodiment of the present disclosure;

[0041] Fig.13 It is shown Fig.12 A block diagram of the detailed configuration of the ambient device in FIG.

[0042] Fig.14 is a diagram showing an edge device according to an embodiment of the present disclosure;

[0043] Fig.15 The present invention is shown in Fig.12 A diagram of the operation of an electronic device in;

[0044] Fig.16 The present invention is shown in Fig.12 A diagram of the operation of an electronic device in;

[0045] Fig.17 is a flow chart showing a method of controlling an electronic device according to an embodiment of the present disclosure;

[0046] Fig.18 It is shown Fig.15 A sequence diagram of the operation of the electronic device and the external device in the embodiment; and

[0047] Fig.19is a sequence diagram illustrating verification of a TTS module performed by a server and an edge device in a conversation system including the server, the edge device, and an ambience dot. DETAILED DESCRIPTION

[0048] Hereinafter, embodiments of the present disclosure will be described in detail.

[0049] As the terms used in the embodiments of the present disclosure, in view of the functions described in the present disclosure, currently widely used general terms are selected as much as possible. However, these terms may change according to the intention of those skilled in the art working in the relevant field or the emergence of new technologies. In addition, in a specific instance, there may be designated terms, and in this case, the meanings of these terms will be described in detail in the relevant description of the present disclosure. Therefore, the terms used in the present disclosure should be defined based on the meaning of the terms and the overall content of the present disclosure, rather than just based on the names of the terms.

[0050] In addition, various modifications may be made to the embodiments of the present disclosure, and there may be various types of embodiments. Therefore, specific embodiments will be shown in the drawings, and the embodiments will be described in detail in the detailed description. However, it should be noted that the various embodiments are not intended to limit the scope of the present disclosure to specific embodiments, but they should be interpreted as including all modifications, equivalents or substitutes of the embodiments included in the ideas and technical scope disclosed herein. At the same time, when describing the embodiments, the detailed explanation of the relevant conventional technology may unnecessarily obscure the main points of the present disclosure, and such detailed explanation will be omitted.

[0051] The terms "first", "second", etc. used in the present disclosure may be used to describe various elements, but these terms are not intended to limit these elements. These terms are only used to distinguish one element from another.

[0052] Singular expressions include plural expressions as long as there is no different indication in the context. In addition, in this specification, terms such as "including" and "consisting of" should be interpreted as indicating that such characteristics, numbers, steps, operations, elements, components or combinations thereof exist in the specification, but do not preclude the existence of one or more other characteristics, numbers, steps, operations, elements, components or combinations thereof or the possibility of adding them.

[0053] In addition, the term "module" or "component" used in the embodiments of the present disclosure refers to an element that performs at least one function or operation, and these elements can be implemented as hardware or software, or a combination of hardware and software. In addition, multiple "modules" or "components" can be integrated into at least one module and implemented as at least one processor, except for the "modules" or "components" that need to be implemented as specific hardware.

[0054] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that a person skilled in the art can easily implement the present disclosure. However, it should be noted that the present disclosure can be implemented in various different forms and is not limited to the embodiments described herein. In addition, in the accompanying drawings, in order to clearly explain the present disclosure, parts that are not related to the explanation are omitted, and similar components are represented by similar reference numerals throughout the specification.

[0055] Hereinafter, the present disclosure will be described in more detail with reference to the accompanying drawings.

[0056] Figure 1 is a diagram illustrating a usage example of an electronic device according to an embodiment of the present disclosure.

[0057] refer to Figure 1 , the electronic device 100 can receive a voice input of a user's inquiry from the user 10. Here, the electronic device 100 can receive an input of a user's inquiry through the user's voice, such as Figure 1 However, this is merely an example, and the electronic device 100 may receive an input of a user's inquiry through various input methods such as a touch input and a keyboard input.

[0058] Here, in Figure 1 , the electronic device 100 is shown as an artificial intelligence speaker. However, the present disclosure is not limited thereto, and the electronic device 100 may be implemented as a smartphone, a desktop PC, a laptop PC, a netbook computer, a server, a PDA, a PMP, a medical device, a camera, a TV, a refrigerator, an air conditioner, a vacuum cleaner, an oven, a washing machine, an air purifier, a set-top box, a home automation control panel, a security control panel, a media box (e.g., Samsung HomeSyncTM, Apple TVTM, or Google TVTM), a game console (e.g., XboxTM, PlayStationTM), an information kiosk, and a wearable device (a watch, a wristband, a bracelet, an ankle bracelet, a necklace, glasses, contact lenses, or a head-mounted device (HMD), clothing, a skin pad), etc.

[0059] The electronic device 100 may receive an input of a user voice including a trigger word for activating or waking up an artificial intelligence agent to receive an input of a user query via the user's voice. For example, the electronic device 100 may receive an input of a user voice including a trigger word such as "Hi, Bixby" before receiving the input of the user query. When a user voice including a trigger word is detected, the electronic device 100 may wake up, execute or activate the artificial intelligence agent and detect the input of the user query. The artificial intelligence agent may include a conversation system and an associated program that may process the user query in the user voice and provide an audible output in natural language as a response.

[0060] As an example, the electronic device 100 may receive a user voice “What is that?” from the user 10. Here, the electronic device 100 may analyze the intention of the user voice and acquire input data to generate a response including “It looks like rainbow rice cake” as a response text. Here, the electronic device 100 may acquire a response to the inquiry detected in the user voice by additionally using context information acquired through sensors and cameras.

[0061] Meanwhile, the electronic device 100 may obtain a voice signal by receiving input data and processing the voice signal using a text-to-speech (TTS) module. The electronic device 100 may output the obtained voice signal through a speaker. In the case where the response voice output through the speaker may be "It looks like rainbow rice cake", the response is different from the user's intention, so due to the mismatch or disconnection between the intention of the inquiry and the output provided by the electronic device 100, confusion may be caused to the user.

[0062] At the same time, Figure 1 In the embodiment, the electronic device 100 is shown to output a response voice of a user's voice, but the present disclosure can be applied when voice output is performed according to an input manipulated by a user. For example, when a user performs a "read book" function when using an e-book application, the electronic device 100 can perform voice synthesis of a stored text of the e-book by using a TTS module and output a synthesized voice.

[0063] According to the present disclosure, the electronic device 100 can detect errors in the voice signal output from the TTS module and output a correction voice signal. Thus, the electronic device 100 can implement a more accurate and natural conversation system. Figures 2 to 19 Specific error detection and correction operations for speech signals are described in detail.

[0064] Figure 2 is a block diagram showing a schematic configuration of an electronic device according to an embodiment of the present disclosure.

[0065] refer to Figure 2 , the electronic device 100 includes a memory 110 and a processor 120 .

[0066] The memory 110 may store various types of programs and data required for the operation of the electronic device 100. Specifically, the memory 110 may store a software program or application including a computer-readable instruction for providing at least one instruction to the processor 120. The processor 120 may control the electronic device 100 to perform operations by executing the software stored in the memory 110. The memory 110 may be implemented as a non-volatile memory, a volatile memory, a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD), etc. The memory 110 may be accessed by the processor 120, and the processor 120 may perform reading / recording / correction / deletion / update of data, etc. In the present disclosure, the term memory may include the memory 110, the ROM and RAM inside the processor 120, or a memory card (e.g., a micro SD card, a memory stick) installed on the electronic device 100. In addition, in the memory 110, programs and data for constituting and displaying various screens in the display area of ​​the display of the electronic device may be stored.

[0067] In addition, the memory 110 may store an artificial intelligence model for implementation in the conversation system. Specifically, the electronic device 100 may implement an artificial intelligence agent for generating natural language as a response to an inquiry in a user's speech. Here, the artificial intelligence agent may be a dedicated program for providing artificial intelligence-based services (e.g., speech recognition services, agent services, translation services, search services, etc.). Specifically, the artificial intelligence model may be executed by a conventional general-purpose processor (e.g., a CPU) or a separate AI-specific processor (e.g., a GPU, etc.).

[0068] In addition, the memory 110 may include multiple components (or software modules), such as Figure 4 and Figure 7 shown.

[0069] The processor 120 may be electrically connected to the memory 110 and control the overall operation of the electronic device 100. Specifically, the processor 120 may execute at least one instruction of a software program or application stored in the memory 110, thereby controlling the electronic device 100 to perform the functions described in the present disclosure.

[0070] According to an embodiment of the present disclosure, the processor 120 may be implemented as a digital signal processor (DSP), a microprocessor, and a time controller (TCON). However, the present disclosure is not limited thereto, and the processor 120 may include one or more of a central processing unit (CPU), a microcontroller unit (MCU), a microprocessing unit (MPU), a controller, an application processor (AP) or a communication processor (CP), and an ARM processor, or may be defined by terms. In addition, the processor 120 may be implemented as a system on chip (SoC) or a large-scale integrated circuit (LSI) in which a processing algorithm is stored, or in the form of a field programmable gate array (FPGA).

[0071] The processor 120 of the electronic device 100 of the present disclosure can convert the received user voice into text by using a voice recognition module. The voice recognition module may include a voice to text module. Here, the electronic device 100 can be communicated through the communicator ( Figure 3 130 in the example) receives a user voice from an external device, or can receive a user voice through a provided microphone ( Figure 3 150 in the example) directly receives the input of the user's voice. Here, the external device may be at least one of an edge device and an environmental device (environmental point). In the following, the modules used in the conversation system will be described by their functions and described as multiple modules, and several modules may be implemented as one module, and such a module may be in the form of software, may be implemented in the form of one or more dedicated hardware chips, or may be implemented in any combination of software and hardware.

[0072] Specifically, the processor 120 may convert the received user speech into text by using an automatic speech recognition (ASR) module, which may be one of the speech recognition modules.

[0073] The automatic speech recognition (ASR) module can convert the input user speech (particularly, user inquiry) into text data. For example, the automatic speech recognition module may include a speech recognition module. The speech recognition module may include an acoustic model and a language model. For example, the acoustic model may include information related to utterance, and the language model may include information about unit phoneme information and a combination of unit phoneme information. The speech recognition module may convert the user speech into text data by using information related to utterance and information about unit phoneme information. Information about the acoustic model and the language model may be stored in, for example, an automatic speech recognition database (automatic speech recognition database, ASR DB).

[0074] In addition, the processor 120 can analyze the intent of the converted text and obtain information about the response voice in response to the user voice. Here, the processor 120 can perform the analysis of the text intent and obtain the response information corresponding to it by using a natural language processing (natural language processing, NLP) module. Here, the natural language processing module may include a natural language understanding (natural language understanding, NLU) module, a dialogue manager (dialogue manager, DM) module, a natural language generator (natural language generator, NLG) module, etc.

[0075] Here, the natural language understanding module can identify the user's intent by performing syntactic analysis or semantic analysis. In syntactic analysis, the user input can be divided into grammatical units (e.g., words, phrases, morphemes, etc.), and different types of syntactic elements among the divided units can be determined or identified. Semantic analysis can be performed using semantic matching, rule matching, formula matching, etc. Therefore, the natural language understanding module can obtain the domain, intent, or parameter (or slot) required to express the intent of the user input.

[0076] The natural language understanding module can determine the user intent and parameters by using matching rules divided into domains, intents, and parameters (or slots) required to understand the intent. For example, a domain (e.g., notification) can include multiple intents (e.g., notification settings, notification releases, etc.), and an intent can include multiple parameters (e.g., time, number of repetitions, notification sound, etc.). Multiple rules can include, for example, one or more basic element parameters. The matching rules can be stored in a natural language understanding database (NLU DB).

[0077] In addition, the natural language understanding module can determine the user's intent by using language features such as phonemes and phrases (e.g., syntactic elements) to identify the meaning of words extracted from the user input, and matching the identified word meanings with domains and intents. For example, the natural language understanding module can calculate how many words extracted from the user input are included in each domain and intent, and determine the user's intent. According to an embodiment of the present disclosure, the natural language understanding module can determine the parameters of the user's input by using words that form the basis for understanding the intent. In addition, according to an embodiment of the present disclosure, the natural language understanding module can determine the user's intent by using a natural language recognition database that stores language features for understanding the intent of the user input.

[0078] The conversation manager module may determine whether the user intention recognized by the natural language understanding module is clear. For example, the conversation manager module may determine whether the user intention is clear based on whether the information about the parameter is sufficient. In addition, the conversation manager module may determine whether the parameter recognized from the natural language understanding module is sufficient for performing the task. According to an embodiment of the present disclosure, in the case where the user intention is unclear, the conversation manager module may perform feedback requesting necessary information from the user. For example, the conversation manager module may perform feedback requesting information about the parameter used to understand the user intention. In addition, the conversation manager module may generate a message for checking the user query including the text changed by the natural language understanding module, and output the message.

[0079] According to an embodiment of the present disclosure, the conversation manager module may include a content provider module. In the case where the content provider module performs an operation based on the intention and parameter recognized from the natural language understanding module, the content provider module may generate a result of performing a task corresponding to the user input.

[0080] According to an embodiment of the present disclosure, the conversation manager module can provide a response to a user inquiry by using a knowledge database. Here, the knowledge database can be included inside the electronic device 100, but the locally stored database is only an example, and the knowledge database can be included in an external server. Specifically, the conversation manager module can obtain information about a response voice in response to the user voice based on the intention of the analyzed user voice. Here, the information about the response voice may include text information about the response content and emotional information corresponding to the response content. Here, the emotional information may include voice tone information, style information, rhythm information, etc.

[0081] The natural language generation module (NLG module) can change the specified information in the form of text. The information changed into text form can be in the form of natural language speech. The specified information can be, for example, information about additional input, information guiding the completion of an operation corresponding to a user input, or information guiding the user's additional input (e.g., information about feedback on the user input). The information changed into text form can be converted into speech form by a text-to-speech conversion module (TTS module).

[0082] The text-to-speech conversion module (TTS module) can convert information in the form of text included in the input data to be input to the TTS module into a speech signal. The TTS module can receive information in the form of text from the natural language generation module, convert the information in the form of text into information in the form of speech, and output the information.

[0083] As described above, the input data input to the TTS module may be a response obtained by analyzing the input user voice. Meanwhile, according to another embodiment of the present disclosure, the input data may be pre-stored in the memory 110 like an e-book, or it may be text data received from an external server. Here, the processor 120 may input the pre-stored or received input data to the TTS module and obtain a voice signal corresponding to the input data.

[0084] For convenience of explanation, hereinafter, both information on the response voice acquired by analyzing the user voice and pre-stored or received text data will be referred to as “input data” to be input into the TTS module.

[0085] Here, the processor 120 may not output the voice signal converted at the TTS module through the speaker, but input the voice signal to the verification module and detect an error in the voice signal. Here, the error in the voice signal may occur due to an error in the operation of the TTS module.

[0086] Specifically, the processor 120 may input the voice signal output at the TTS module into the verification module. At the verification module, the voice signal output at the TTS module may be converted into text. In this case, the verification module may include an automatic speech recognition (ASR) module, and the automatic speech recognition module may be the same component as the aforementioned component that converts the user's voice into text data or a component independent of it.

[0087] The processor 120 can compare the text converted by the verification module with the input data, and detect errors in the voice signal output at the TTS module. Here, the input data compared with the text converted by the verification module can be text data stored in advance or received from an external device, or the input data can be text data included in the information about the response voice output at the aforementioned natural language generation module. As described above, the text data input to the TTS module and the text data into which the voice signal output at the TTS module is converted can be compared. Therefore, errors in the operation of the TTS module can be detected. Reference will be made to Figure 8 Embodiments of detecting errors in speech signals by comparing text are described in more detail.

[0088] Meanwhile, the input data may include text data and data related to the emotion of the text data. Here, the data related to the emotion may have been pre-stored with the text data, or the data may have been received from an external device, or may have been outputted with the text data at a natural language processing (NLP) module.

[0089] Meanwhile, the processor 120 may recognize the emotion of the voice signal output at the TTS module based on the frequency characteristics of the voice signal output at the TTS module through the verification module. In this case, the operation of the processor 120 converting the voice signal output at the TTS module into text may be omitted.

[0090] The processor 120 may identify the emotion of the output voice signal by using an emotion database. Here, in the emotion database, the frequency characteristics of the voice signal according to the user's emotion may have been stored. Here, the emotion database may be included inside the electronic device 100, but the locally stored database is only an example, and the emotion database may be included in an external server. The processor 120 may then compare the emotion of the identified voice signal with the emotion-related data input into the TTS module, and detect an error in the operation of the TTS module.

[0091] Specifically, the processor 120 can analyze the spectrum of the voice signal output at the TTS module and obtain frequency characteristics. For example, the processor 120 can obtain frequency characteristics, such as the pitch of the voice signal, by using the frequency, amplitude, cycle, decibel, etc. of the voice signal output at the TTS module, and obtain frequency characteristics, such as the change of voice pitch, by using the change of frequency, amplitude and cycle. Then, the processor 120 can identify the emotion, tone, style, rhythm, etc. corresponding to the voice signal in the emotion database by using the pitch of the acquired voice signal and the change of pitch. Here, the emotion corresponding to the voice signal can refer to the emotional state shown by the user of the voice signal, such as joy, sadness, anger, etc. In addition, the tone can be the total pitch of the voice of the voice signal. At the same time, style is related to the way of speaking, and the voice style can refer to the caring style, lively style, fast style, etc. In addition, rhythm can be the phoneme, intonation, stress, etc. of the voice signal.

[0092] At the same time, the processor 120 may acquire the frequency characteristics of the speech signal based on a style token. Here, the style token may be an optional element for determining characteristics including emotion, intonation, style, and prosody information of the speech signal. For example, the style token may be a global style token (GST).

[0093] Specifically, the style marker can be a plurality of optional elements stored in advance, and a weight can be added to each optional element according to the characteristics of the speech signal. The electronic device can obtain the desired characteristics of the speech signal by adding the optional elements to which the weights are added. For example, in the case where speech synthesis is performed based on the characteristics generated by merging the style markers to which the weights are added, the speaker (woman, man, celebrity, etc.), emotions and personality states (happy, angry, busy, gentle, stiff, etc.) and the like can be expressed. Here, after learning, the parameters of the weights of each style marker according to the speech characteristics may have been stored.

[0094] The processor 120 may then compare the recognized emotion, tone, style, prosody, etc. with the emotion-related data included in the input data input to the TTS module, and detect an error in the operation of the TTS module. Fig. 9 An embodiment of detecting errors in a speech signal by comparing frequency characteristics is described in more detail.

[0095] At the same time, the processor 120 can compare the length of the voice signal output at the TTS module and the length of the text included in the input data input to the TTS module, and detect an error in the output voice signal. Here, the processor 120 can compare the time length obtained based on the length of the voice signal, the number of characters, the number of words, etc. of the text included in the input data from a time perspective. And detect an error in the output voice signal.

[0096] Specifically, if the difference between the length of the voice signal output at the TTS module and the length of the text included in the input data input to the TTS module is equal to or greater than a predetermined value, the processor 120 may determine that there is an error in the voice signal output at the TTS module. Fig.10 An embodiment of detecting errors in a speech signal by comparing the lengths of sentences as described above is described in detail.

[0097] Each embodiment of detecting errors has been described separately, but in actual implementation, two or more error detection methods may be used together.

[0098] As another example, the processor 120 may communicate with the user through a speaker ( Figure 3 140 in the electronic device 100) outputs the voice signal output at the TTS module as sound to the outside of the electronic device 100, and when the sound is heard by a microphone ( Figure 3 When the voice signal is inputted into the TTS module and converted into a voice signal, the processor 120 may input the converted voice signal into the verification module and detect errors in the voice signal outputted at the TTS module. Figure 6 and Figure 7 Describe in detail.

[0099] Meanwhile, based on the result of detecting the error in the speech signal, the processor 120 may correct the input data. Specifically, if an error in the speech signal output at the TTS module is detected, the processor 120 may correct the input data input into the TTS module and acquire the corrected input data.

[0100] For example, if an error in a speech signal is detected, the processor 120 may correct at least one of the spacing or punctuation of the text included in the input data. As an example, if the lengths of the text or sentences are different, such as when the text included in the input data input to the TTS module is "It looks like rainbow rice cake", and the speech signal output at the TTS module is "It looks like arainbow", the processor 120 may adjust the spacing of "rainbow rice cake" where an error similar to "It looks like rain∨bow∨rice∨cake" has occurred. As another example, the processor 120 may adjust (add, delete) the punctuation of "rainbow rice cake" where an error similar to "It looks like rain.bow.rice.cake" has occurred.

[0101] As another example, if an error in the speech signal is detected, the processor 120 may correct the input data by applying a markup language such as extensible markup language (XML) to text data included in the input data. The markup language may be one of the languages ​​that specifies the structure of a document or data, and expresses correction marks, annotations, and the structure of the document independently of the text data.

[0102] For example, the markup language may include HyperVoice Markup Language (HVML), Speech Synthesis Markup Language (SSML), Call Control eXtensible Markup Language (CCXML), Voice eXtensible Markup Language (VXML), etc., which provide an indexing function for the connection between the voice signal and the text data. Here, SSML may be a speech synthesis generation language for supporting various effects (such as pitch or speed of speech) at the TTS module.

[0103] For example, if an error in the speech signal is detected, the processor 120 may correct the text data included in the input data to " <emphasis> rainbow rice cake< / emphasis> ”.

[0104] <emphasis>is a tag that provides the effect of emphasizing the word 'rainbow rice cake' in the speech signal. In addition to this, various tags can be used, such as <prosody>, which are tags used to control the volume, speed, and pitch of speech; , which is a tag used to add a temporary pause between paragraphs; and <s>, which is a tag used to add a temporary pause between sentences.

[0105] Meanwhile, in the case where the text data included in the input data input to the TTS module is in English, the technology of the present disclosure may also be applied. For example, in the case where the lengths of texts or sentences are different, such as in the case where the text data included in the input data input to the TTS module is "I miss you, Grandad" and the voice signal output at the TTS module is "I kiss you, Grandad", the processor 120 may adjust the punctuation mark of "miss" where an error similar to "I miss.you.Grandad" has occurred. As another example, if an error in the voice signal is detected, the processor 120 may correct the text data included in the input data to "I miss you, Grandad". <emphasis> miss< / emphasis> you, Grandad".

[0106] Then, the processor 120 may resubmit the corrected input data to the TTS module and obtain a corrected speech signal corresponding to the corrected input data. Next, the processor 120 may output the corrected speech signal from the TTS module. Here, the corrected speech signal output at the TTS module may be transmitted through a speaker ( Figure 3 140) is audibly output to the outside of the electronic device 100. As another example, the corrected speech signal output at the TTS module may be resubmitted to the verification module.

[0107] Here, the processor 120 uses a speaker ( Figure 3 After the voice signal is outputted in 140), if a corrected voice signal different from the voice signal outputted according to the verification operation is acquired, the processor 120 may output the corrected voice signal and an indicator indicating that the voice signal has been corrected. Figure 3 This is explained in detail.

[0108] As described above, since an error in a speech signal output at a TTS module is detected and corrected by using input data input into the TTS module, it is possible to achieve an effect of implementing a more correct conversation system.

[0109] Figure 3 It is shown Figure 2 A block diagram of the detailed configuration of the electronic device shown.

[0110] refer to Figure 3 , the electronic device 100 may include a memory 110 , a processor 120 , a communicator 130 , a speaker 140 , a microphone 150 , and a display 160 .

[0111] Here, some components of the memory 110 and the processor 120 are similar to Figure 2 Therefore, a redundant description thereof will be omitted.

[0112] The communicator 130 is a component that performs communication with various types of external devices according to various types of communication methods. Here, the external device that communicates with the electronic device 100 may be a server or a user terminal device, etc.

[0113] The communication connection of the communicator 130 with the external device may include communication via a third device (e.g., a repeater, a hub, an access point, a server, or a gateway). The communicator may be implemented as a wireless communication interface for performing wireless communication, which may include, for example, cellular communication using at least one of LTE, Advanced LTE (LTE-A), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Universal Mobile Telecommunications System (UMTS), Wireless Broadband (WiBro), or Global System for Mobile Communications (GSM). According to an embodiment, the wireless communication may include, for example, at least one of Wireless Fidelity (WiFi), Bluetooth, Bluetooth Low Energy (BLE), Zigbee, Near Field Communication (NFC), Magnetic Security Transmission, Radio Frequency (RF), or Body Area Network (BAN). The communicator may also be implemented as a wired communication, such as an optical or Ethernet network interface controller (NIC), which may include, for example, at least one of Universal Serial Bus (USB), High Definition Multimedia Interface (HDMI), Recommended Standard 232 (RS-232), Power Line Communication, or Plain Old Telephone Service (POTS). The network performing wireless communication or wired communication may include at least one of telecommunication networks such as a computer network (eg, LAN or WAN), the Internet, or a telephone network.

[0114] The processor 120 may transmit the voice signal output at the TTS module to an external device through the communicator 130. Specifically, the voice signal output at the TTS module may be information in the form of a voice waveform. Here, the external device may be a device including a speaker that outputs received information in the form of a voice waveform.

[0115] At the same time, a voice signal may be received from an external device through the communicator 130. As an example, the voice signal received through the communicator 130 may be a voice signal received through a microphone provided on the external device. Here, the voice signal received through the microphone may be a voice signal output through a speaker provided on the external device. In addition, here, the voice signal output through the speaker provided on the external device may be a voice signal sent from the electronic device 100 to the external device through the communicator 130.

[0116] Then, the processor 120 may detect an error in a voice signal received from an external device through the communicator 130 based on the input data input to the TTS module.

[0117] In addition, when an error in a voice signal received through the communicator 130 is detected, the processor 120 may acquire a corrected voice signal and retransmit the signal to an external device through the communicator 130. For the error detection method and the error correction method, the detection method and the correction method of the present disclosure may be applied.

[0118] The speaker 140 is a component that outputs various notification sounds or voice messages and various audio data, where the audio processor has performed various processing operations such as decoding or amplification and noise filtering on these audio data. Specifically, the speaker 140 can output a voice signal in the form of a voice waveform as a sound in the form of a natural language. Here, the voice output may correspond to pre-stored text data, such as an e-book, or may be a response to a user's inquiry that is output as a voice message in the form of a natural language. At the same time, the component for outputting audio may be implemented as a speaker, but this is only an example, and the component may be implemented as an output terminal capable of outputting audio data.

[0119] The microphone 150 is a component for receiving an input of an emitted user voice. The microphone 150 can generate (or convert) a voice or sound received from the outside into an electronic signal under the control of the processor 120. The electronic signal generated at the microphone 150 can be converted under the control of the processor 120 and stored in the memory 110.

[0120] The processor 120 may input the user voice signal received through the microphone 150 into the voice recognition module and convert the user voice signal into text. Here, when a user voice signal including a trigger word is received through the microphone 150, the processor 120 may input the input user voice signal into the voice recognition module.

[0121] At the same time, the processor 120 may input a voice signal received through the microphone 150 into the verification module. Here, the voice received through the microphone 150 may be a voice output through the speaker 140.

[0122] Here, the processor 120 may identify the identity of the speaker of the voice signal received through the microphone 150, and according to the recognition result, may input the received voice signal into the voice recognition module, or into the verification module. Specifically, if the voice signal is uttered by the user as a result of identifying the speaker of the voice signal received through the microphone 150, the processor 120 may input the received voice signal into the voice recognition module and convert the signal into text.

[0123] Meanwhile, if the voice signal received through the microphone 150 is a response voice signal output by the speaker 140, the processor 120 may input the received voice signal into the verification module and detect an error in the received voice signal. Here, the processor 120 may detect an error in the voice signal received through the microphone 150 by using input data input to the TTS module for outputting the voice signal to the speaker 140. Specifically, the processor 120 may convert the voice signal received through the microphone 150 into text by using a voice recognition module and compare the text with text data included in the input data, or detect an error in the voice signal received through the microphone 150 by using frequency characteristics. Alternatively, the processor 120 may compare the length of the voice signal received through the microphone 150 with the length of the text data included in the input data and detect an error in the voice signal received through the microphone 150.

[0124] Here, if an error in the voice signal received by the microphone 150 is detected, the processor 120 may change the spacing of the text included in the input data, or change the punctuation or apply SSML, thereby obtaining the corrected input data. The processor 120 may then input the corrected input data into the TTS module and obtain a corrected voice signal. Then, in the case where the processor 120 outputs the corrected voice signal through the speaker 140, the processor 120 may also output an indicator indicating that the voice is the corrected voice.

[0125] Here, the indicator may include feedback sounds, such as "It is not so", "Um~", "In other words", "Oh! It's not true", etc. Such feedback voice may be selected based on the emotion information, style information, and text information included in the correction input data. The feedback voice may be a recorded voice stored in the memory 110, or a synthesized voice synthesized by a TTS module, or the feedback voice may be obtained by reusing a previously reproduced voice signal by a caching method or the like for efficiency of the operating volume of the electronic device 100 and the available bandwidth.

[0126] For example, if the context in which the conversation system is implemented is a serious mood, the processor 120 may select a feedback voice such as "Well... in other words" among a plurality of indicators. Here, as a result of sensing the location through the GPS sensor, in a case where the place where the electronic device 100 is located is an office, and as a result of recognizing the speaker, the speaker is a specific person such as a representative of a company, and the voice of the output voice included in the input data is selected as the voice of the announcer, the processor 120 may detect that the context in which the conversation system is implemented is a serious mood based on the result of detecting the facial expressions of people in the surrounding environment with a camera or the like.

[0127] Meanwhile, if the scenario in which the conversation system is implemented is a cheerful mood, the processor 120 may select a feedback voice such as "Oh! My mistake ~ It's not like that ~" among a plurality of indicators. Here, as a result of sensing the location through the GPS sensor, in a case where the place where the electronic device 100 is located is outdoors such as a mountain or a sea, and outdoor activities are included in the schedule information stored in the calendar application, and the identified speaker is a child, and the voice of the output voice included in the input data is a comedian, etc., the processor 120 may detect that the scenario in which the conversation system is implemented is a cheerful mood.

[0128] Then, the processor 120 may first output a sentence such as “That's not the case,” “Hmm~,” “In other words,” “Oh! This is not true,” etc. through the speaker 140, and then output a correction voice signal.

[0129] The display 160 may display various information according to the control of the processor 120 .

[0130] Specifically, the display 160 may display text data to be output as a voice signal.

[0131] Optionally, depending on the embodiment, the display 160 may display response information corresponding to the user's voice instruction. Alternatively, the display 160 may display a message notifying the user that the response information has been corrected. In addition, the display 160 may be implemented as a touch screen together with a touch panel.

[0132] At the same time, Figure 3 , the speaker 140, the microphone 150, and the display 160 are all included in the electronic device 100. However, in actual implementation, at least one of the speaker 140, the microphone 150, or the display 160 may be omitted depending on the embodiment. For example, in the case where the electronic device 100 is a server, the electronic device 100 may include only the memory 110, the processor 120, and the communicator 130.

[0133] At the same time, despite Figure 3 Although not shown in the figure, the electronic device 100 may further include a sensor for sensing a surrounding environment, a camera, various external input ports for connecting to an external terminal, various sensors, etc. depending on the embodiment.

[0134] Figure 4 , Figures 6 to 9 and Fig.11 1 is a diagram showing various examples of an electronic device 100 for verifying a TTS module. Figure 4 , Figure 6 and Figure 7 , for convenience of explanation, the general process of the voice recognition operation is shown with a solid line, and the process of the verification operation is shown with a dotted line.

[0135] Specifically, Figure 4 An embodiment is shown in which, when a voice signal output by the TTS module is not output through the speaker 140, a verification operation is performed.

[0136] The electronic device 100 can obtain input data 40 to be input into the TTS module 410, and provide the obtained input data 40 as input 41 to the TTS module 410, and obtain a voice signal. Here, the electronic device 100 can obtain data pre-stored in a memory or data received from an external device as the input data 40, or analyze the voice uttered by the user 10 and obtain the response information outputted in the natural language processing module as the input data 40. Figure 5 The operation of analyzing the input voice of the user 10 and acquiring the input data 40 is described in detail.

[0137] Then, the electronic device 100 may output the voice signal 42 acquired by the TTS module 410 through the speaker 140. Next, the electronic device 100 may input the voice signal acquired by the TTS module 410 into the verification module 420 and detect errors in the voice signal. Figure 4 , it is shown that the verification operation is performed while the acquired voice signal is being output through the speaker. However, in actual implementation, the verification operation may be performed before the voice signal 42 acquired by the TTS module 410 is output through the speaker 140. That is, the operation of outputting the voice signal 42 acquired by the TTS module 410 through the speaker 140 may be omitted.

[0138] Specifically, the electronic device 100 may provide the input data 40 as input 44 to the verification module 420 and compare the input voice signal with the input data 40 to verify errors in the voice signal.

[0139] Here, the electronic device 100 can detect errors in the speech signal through the verification module 420 by text comparison, frequency characteristic comparison, sentence length comparison, etc. Figure 8 , 9 and 11 explain this in more detail.

[0140] If there is no error in the voice signal as a result of performing the verification, the electronic device 100 may output the voice signal acquired at the TTS module 410 through the speaker 140. Alternatively, the electronic device 100 may provide the input data 40 as input to the TTS module 410 again, and provide the acquired voice signal as output through the speaker 140. Alternatively, if the electronic device 100 is outputting the acquired voice signal through the speaker 140, the electronic device 100 may continue to output the voice signal 42.

[0141] Meanwhile, if it is determined that there is an error in the speech signal, the electronic device 100 may correct the input data and provide the verification result including the corrected input data as input 45 to the TTS module 410. Here, the corrected input data may be data that changes the spacing of text data, changes punctuation marks, and applies a markup language, or the corrected input data may be data that changes the frequency characteristics of emotion-related data. Figure 4 In FIG. 4 , it is shown that the correction input data is obtained at the verification module 420 , but in actual implementation, the operation may be implemented at a separate module.

[0142] Furthermore, the electronic device 100 may again provide the corrected speech signal output at the TTS module 410 as input 43 to the verification module and re-verify the signal, or provide the signal as output through the speaker 140 .

[0143] Here, if the previous voice signal is being output through the speaker 140, the electronic device 100 may output an indicator indicating that the voice signal is corrected, and output a corrected voice signal. For example, the electronic device 100 may output "not like this", "hmm~", "in other words", "oh! This is not true", etc. as an indicator through the speaker 140, and then output a corrected voice signal.

[0144] As described above, by comparing input data input to the TTS module 410 and a speech signal output at the TTS module 410, errors in speech synthesis operations at the TTS module can be detected, and through correction of input data, a more accurate conversation system can be implemented.

[0145] At the same time, in the above Figure 4 In the example, the speech signal output at the TTS module 410 is sent to the verification module 420, but if Figure 6 As shown, the voice signal acquired at the TTS module 410 may be output to the outside through the speaker 140 , and the response voice signal received through the microphone 150 may be transmitted to the verification module 420 .

[0146] Figure 5 is a diagram illustrating an electronic device according to an embodiment of the present disclosure.

[0147] refer to Figure 5 , the electronic device 100 can receive the user voice issued by the user through the microphone 150, and input the received user voice into the speech recognition (ASR) module 510, and convert the voice into text data. Then, the electronic device 100 can input the converted text data into the natural language processing (NLP) module 520, and obtain information about the response voice to the user voice as the input data 40. Here, the input data 40 may include text data of the response content and information related to the emotion corresponding to the response content. Here, the information related to the emotion may include tone information, style information, rhythm information, etc.

[0148] As described above, the electronic device 100 may input the input data 40 acquired by analyzing the user voice into the TTS module, and acquire a response voice signal to the user voice.

[0149] Figure 6 2 is a diagram showing an electronic device for verifying a TTS module according to an embodiment of the present disclosure. Figure 6 In the example, the voice signal output at the TTS module is output through the speaker, and the voice signal output through the microphone is received again and compared with the input data. Thus, it can be determined whether the speech synthesis operation of the TTS module is normal.

[0150] refer to Figure 6 , the electronic device 100 can obtain input data 40 to be input into the TTS module 410, and input 61 the obtained input data 40 into the TTS module 410 and obtain a voice signal. Here, the electronic device 100 can obtain data pre-stored in a memory or data received from an external device as input data, or as Figure 5 As shown, the electronic device 100 can receive the voice uttered by the user 10 through the microphone 150 , and process the received user voice through the automatic speech recognition (ASR) module and the natural language processing module (NLP), and obtain the obtained response information as the input data 40 .

[0151] Then, the electronic device 100 may provide the speech signal output at the TTS module 410 as an output 62 through the speaker 140. In addition, the speech signal output through the speaker 140 may be received through the microphone 150 as an input 63.

[0152] Next, the electronic device 100 may input the voice signal received through the microphone 150 into the verification module 420 and detect an error in the response voice signal 64 .

[0153] Here, the electronic device 100 may provide the input data 40 as the input 65 to the verification module 420, and the verification module 420 may detect an error in the voice signal input through the microphone 150 by using the input data 40. Specifically, the electronic device 100 may detect an error in the voice signal by text comparison, frequency characteristic comparison, sentence length comparison, etc. Figure 8 , 9 and 11 explain this in more detail.

[0154] If there is no error in the voice signal as a result of performing the verification, the electronic device 100 may continue to output the voice signal output at the TTS module 410 through the speaker 140 and complete the output of the voice signal.

[0155] Meanwhile, if it is determined that there is an error in the speech signal, the electronic device 100 may correct the input data 40 through the verification module 420 and provide the corrected input data as input 66 to the TTS module 410. Specifically, the corrected input data may be data that changes the spacing of text data included in the input data 40, changes punctuation marks, applies a markup language, or changes frequency characteristics included in information related to emotions. Figure 6 In FIG. 4 , it is shown that the correction input data is obtained at the verification module 420 , but in actual implementation, this operation can be implemented at a separate module.

[0156] The electronic device 100 may then provide the corrected speech signal output at the TTS module 410 as an output 62 through the speaker 140 .

[0157] Here, if the previous voice signal is being output through the speaker 140, the electronic device 100 may output an indicator indicating that the voice signal is corrected, and output a corrected voice signal. For example, the electronic device 100 may first output "not like this", "hmm~", "in other words", "oh! This is not true", etc. as an indicator through the speaker 140, and then output a corrected voice signal.

[0158] Also, depending on the embodiment, Figure 4 The verification operation shown and Figure 6 The verification operations shown can be implemented together. Figure 7 The illustrated identification 710 of the speaker of the received speech signal is used to identify whether to send the speech signal 71 received via the microphone 150 as input 72 to a speech recognition module or to send the signal as input 77 to a verification module.

[0159] refer to Figure 7 , the electronic device 100 may first receive a user voice uttered by the user 10 through the microphone 150, and identify the speaker of the received voice signal 71. Then, the electronic device 100 may process the received voice signal differently according to the result of the speaker recognition 710. If, as a result of the speaker recognition, it is determined that the speaker of the received voice signal is the user 10, the electronic device 100 may provide the received voice signal as an input 72 to the speech recognition (ASR) module 510. Then, the electronic device 100 may obtain input data 40 to be input into the TTS module 410 by using the speech recognition (ASR) module 510 and the natural language processing (NLP) module 520.

[0160] Meanwhile, as a result of identifying 710 the speaker, the electronic device 100 may identify the identity of the speaker, and based on the result of the speaker identification, obtain input data 40. Specifically, based on the result of identifying 710 the speaker, the electronic device 100 may obtain information about a response voice as input data 40, wherein the response voice varies according to the user identified by the natural language processing (NLP) module 520. For example, in an environment where multiple users can use the electronic device 100, such as at home, if a user voice is input, the electronic device 100 may identify 710 the speaker, and identify the speaker to which the voice belongs. Here, if it is identified that the speaker is the first user, the electronic device 100 may obtain information about the response voice corresponding to the first user as input data 40. For example, the electronic device 100 may obtain emotional information related to the response text, as well as intonation information, voice style information, prosody information, etc. preferred by the first user as input data 40.

[0161] The electronic device 100 may then provide the acquired input data 40 as input 73 into the TTS module 410 .

[0162] Since the operations in each module are similar to Figures 4 to 6 , so its redundant explanation will be omitted.

[0163] At the same time, the electronic device 100 may provide a voice signal of the input data output at the TTS module 410 as an output 74 through the speaker 140. Then, the voice signal output through the speaker 140 may be received 76 through the microphone 150. Here, depending on the embodiment, the electronic device 100 may provide the voice signal output at the TTS module 410 as an input 75 to the verification module 420.

[0164] Here, the electronic device 100 may identify 710 a speaker for identifying whether a voice signal 71 received through the microphone 150 is a user voice signal or a response voice signal output at the speaker 140. If it is determined that the speaker of the voice signal received through the microphone 150 is a user, the electronic device 100 may provide the received voice as an input 72 to a speech recognition (ASR) module 510 for performing a general speech recognition operation.

[0165] Meanwhile, if it is determined that the voice signal received through the microphone 150 is output through the speaker 140, the electronic device 100 may provide the received voice signal as input 77 to the verification module 420. The verification module 420 may include at least one of a verification module using text, a verification module using frequency characteristics, or a verification module using sentence length, such as Figure 8 , 9 and 11. Specifically, the electronic device 100 may provide the input data 40 input to the TTS module 410 as input 78 to the verification module 420, and the verification module 420 may compare the input data 40 with the input 77 voice signal and detect errors in the voice signal.

[0166] Meanwhile, the speaker recognition 710 operation may be optional, and depending on the embodiment, the electronic device 100 may directly input the voice signal received through the microphone 150 within a predetermined time period after the response voice signal is output through the speaker 140 into the verification module 420 without the speaker recognition 710 operation.

[0167] Here, the electronic device 100 may input information about the response voice into the verification module 420 as input data 40 based on the speaker recognition result, and compare the voice signal output at the TTS module 410, and detect an error in the voice synthesis operation at the TTS module.

[0168] Then, based on the verification result, if there is no error in the voice signal, the electronic device 100 can continue to output the voice signal and complete the voice output. At the same time, if there is an error in the voice signal, the electronic device 100 can correct the input data 40 output at the natural language processing module 520, and provide the corrected input data as input 79 to the TTS module 410.

[0169] As an example, in a case where the response speech corresponding to the first user identified as the speaker has a high pitch, but the pitch of the speech signal output at the TTS module 410 is a relatively low pitch, the verification module 420 may provide correction input data as input 79 to the TTS module 410 so that the pitch of the speech is increased to better correspond to the pitch of the identified speaker. For example, the electronic device 100 may correct the input data as follows.

[0170] <Speaker version="1.0">

[0171] <Prosody pitch="150Hz">Convert the pitch to 150Hz< / Prosody>

[0172] < / Speaker>

[0173] Then, the electronic device 100 may provide the corrected speech signal obtained through the TTS module 410 as output 74 through the speaker 140. Here, the electronic device 100 may also output an indicator indicating that the response speech signal has been corrected.

[0174] Figure 8 is a diagram showing a verification module according to an embodiment of the present disclosure. In Figure 8 errors in the response speech signal are detected through text comparison. Figure 8 The configuration of the verification module in Figure 4 can be the same as the configuration of the verification module 420 in 6 and 7.

[0175] Referring to Figure 8 , the verification module may include a speech recognition module (e.g., an ASR) module 810 and a text verification module 820. In Figure 8 for ease of explanation, the verification module is shown as being divided into multiple modules. However, in actual implementation, the verification module may be implemented as one module, or one or more software modules.

[0176] Specifically, the electronic device may input the speech signal output at the TTS module into the speech recognition module 810 and obtain text data corresponding to the speech signal. Here, the speech signal input into the speech recognition module 810 may be the speech signal output at the TTS module and directly input into the speech recognition module 810, or the speech signal output from the TTS module to the outside through the speaker and then input through the microphone.

[0177] In Figure 8 shows Figure 5 and 7 The voice recognition module 510 shown in FIG. 5 and the voice recognition module 810 included in the authentication module are separate modules, but these modules may be integrally provided as a single module.

[0178] In addition, the electronic device may input the text data output at the voice recognition module 810 into the text verification module 820 and detect an error in the voice signal. Specifically, if the text data included in the input data input to the TTS module and the text data output at the voice recognition module 810 are different, the text verification module 820 may determine that there is an error in the voice signal.

[0179] Meanwhile, if it is determined that there is an error in the speech signal, the text verification module 820 can correct the input data. Specifically, the text verification module 820 can correct the input data by performing at least one of a change in the spacing of the text data included in the input data, a change in the punctuation, or the application of a markup language. For example, if the text is different, such as when the text data included in the input data is "It looks like rainbow rice cake" and the text data output at the speech recognition module 810 is "It looks like a rainbow", the text verification module 820 can correct the input data by adjusting the spacing of "rainbow rice cake" in which an error similar to "It looks like rain∨bow∨rice∨cake" has occurred, or adjusting the punctuation of "rainbow rice cake" in which an error similar to "It looks like rain.bow.rice.cake" has occurred, or applying a markup language (e.g., similar to " <emphasis> rainbow rice cake< / emphasis> it looks like" to correct the input data. Figure 8 In FIG. 8 , it is shown that the text verification module 820 corrects the input data, but in actual implementation, the input data may be corrected by acquiring a correction value only at the text verification module 820 and reflecting the correction value only at a separate correction module.

[0180] Then, the electronic device may input the verification result including the corrected input data into the TTS module and output a corrected speech signal.

[0181] Fig. 9 is a diagram showing a verification module according to an embodiment of the present disclosure. Fig. 9 In this paper, errors in speech signals are detected by comparing frequency characteristics. Fig. 9 The configuration of the authentication module in can be similar to Figure 4 , 6 and the configuration of the verification module 420 in 7.

[0182] refer to Fig. 9 , the verification module may include a frequency characteristic analysis module 910 and a frequency characteristic verification module 920. Fig. 9 In the embodiment, for the convenience of explanation, the verification module is described as being divided into multiple modules. However, in actual implementation, the verification module can be implemented as one module, or one or more software modules.

[0183] Specifically, the electronic device may input the voice signal output at the TTS module into the frequency characteristic analysis module 910 and obtain the frequency characteristics of the voice signal. Here, the voice signal input to the frequency characteristic analysis module 910 may be a voice signal output at the TTS module and then directly input to the frequency characteristic analysis module 910, or a voice signal output from the TTS module to the outside through a speaker and then input through a microphone.

[0184] Here, the frequency characteristic analysis module 910 can analyze the spectrum of the voice signal and obtain the frequency characteristic. For example, the frequency characteristic analysis module 910 can obtain the frequency characteristic, such as the pitch of the voice signal, by using the frequency, amplitude, period, decibel, etc. of the voice signal, and obtain the frequency characteristic, such as the change of the voice pitch, by using the change of frequency, amplitude and period.

[0185] Then, the frequency characteristic analysis module 910 may recognize emotion, intonation, style, rhythm, etc. in the emotion database by using the pitch and the change of the pitch of the acquired voice signal.

[0186] Furthermore, the electronic device may input the analysis result of the frequency characteristics of the voice signal acquired at the frequency characteristics analysis module 910 into the frequency characteristics verification module 920 and detect an error in the voice signal.

[0187] The frequency characteristic verification module 920 may compare the emotion, intonation, style, rhythm, etc. of the speech signal identified by the frequency characteristic analysis module 910 with the emotion-related data included in the input data input to the TTS module, and determine that there is an error in the speech signal.

[0188] Meanwhile, if an error is determined to exist in the voice signal, the frequency characteristic verification module 920 may correct the input data. Specifically, the frequency characteristic verification module 920 may correct the input data by applying a markup language (e.g., SSML) to the text data included in the input data input to the TTS module. For example, the frequency characteristic verification module 920 may adjust the frequency pitch by applying SSML similar to <prosody pitch="150Hz">Convert the pitch to 150Hz< / prosody> to express the expected emotion by changing the pitch of the voice. As another example, the frequency characteristic verification module 920 may correct the spectrum of the voice, such as "attribute name: tone", "attribute value: enhance high pitch, enhance low pitch".

[0189] Meanwhile, by using style flags to obtain frequency characteristics such as the emotion and style of the voice signal, the frequency characteristic verification module 920 may correct the input data by changing the weights of each style flag.

[0190] Meanwhile, if an error is determined to exist in the voice signal, the frequency characteristic verification module 920 may adjust filter values of the output hardware (digital-to-analog converter (DAC), amplifier, etc.), or adjust characteristics of a speaker provided in the electronic device, such as Fig.15 shown. In this case, the voice signal input to the frequency characteristic analysis module 910 may be received by the microphone after being output through the speaker.

[0191] Generally, there are many cases where speakers (such as AI speakers and robots) installed in electronic devices cannot produce ideal results. Fig.10 A method for correcting speaker output is shown to enable a user who hears the voice in such an environment to hear the correct sound. To check whether the sound emitted through the speaker is emitted well, it may be necessary to analyze using a microphone included in the system. However, in a case where even such a microphone is not ideal, incorrect correction of the speaker may occur.

[0192] Referring to Fig.10 , to solve such a problem, the electronic device may first derive microphone characteristics 1030 by using a test tone 1010 with a constant phase and a test tone 1020 with an opposite phase. Here, the test tone may be a spectrum generated when the microphone receives a scanning signal with a constant phase or an opposite phase output from the electronic device, and the scanning signal may be a test signal representing all frequency bands from low frequency to high frequency per unit time. Here, the horizontal axis of the test tones 1010 and 1020 may be the frequency band, and the vertical axis may be the distribution of energy values of each frequency band. In addition, the microphone characteristics 1030 may be obtained as the difference between the spectrum 1010 of the scanning signal with a constant phase and the spectrum 1020 of the scanning signal with an opposite phase.

[0193] Then, the electronic device can remove the acquired microphone characteristics 1030 at the signal 1040 input at the microphone, and extract only the characteristics 1050 of the speaker of the voice (microphone input-microphone characteristics=speaker characteristics). Here, the signal 1040 input at the microphone can have a frequency characteristic including the characteristics of both the speaker and the microphone.

[0194] At the same time, the electronic device can store the characteristics of one or more microphones that can be connected to the electronic device. Here, the one or more microphones that can be connected to the electronic device can be microphones set on the electronic device or set on an external device connected to the electronic device. In addition, the electronic device can identify which microphone among the connectable microphones receives the user's voice, and extract the characteristics of only the speaker by reflecting or compensating for the characteristics of the identified microphone. Here, the speaker that outputs the test signal can also be set on the electronic device, or the speaker can be set on an external device connected to the electronic device. In addition, the speaker that outputs the test signal and the microphone that receives the test signal can be set on the same device, or can be set on different devices.

[0195] Then, the electronic device may apply an equalizer (EQ) correction value 1060 to fit the extracted speaker-only characteristics 1050, and output a reference value 1070. Here, the EQ correction may be such a correction that a predefined reference output comes out of each electronic device, and as Fig.10 As shown, the reference value 1070 may be a flat frequency spectrum.

[0196] Although not shown, in the case of a large level of ambient noise, the electronic device can additionally correct the EQ gain by noise spectrum analysis. For example, the electronic device can determine the voice received in the entire frequency band (the voice is not a voice signal with large energy in a specific frequency band) as ambient noise through a microphone. Then, the electronic device can adjust the amplitude of the output signal upward when the EQ gain is corrected according to the energy size of the ambient noise. Specifically, in the case where the average value of the energy size of the ambient noise is greater than the reference value, the electronic device can increase the size of the output signal over the entire frequency band so that the size is proportional to the difference between the average value of the size and the reference value. For example, if the average value of the ambient noise size is greater than the reference value by as much as a first value, the electronic device can adjust the size of the output signal upward by as much as 3dB over the entire frequency band, and if the average value of the ambient noise size is greater than the reference value by as much as a second value greater than the first value, the electronic device can increase the size of the output signal by as much as 4dB over the entire frequency band. As another example, in the case where the energy of a specific frequency in the ambient noise is large, the electronic device can correspondingly increase only the signal of the frequency band when the EQ gain is corrected.

[0197] As described above, by correcting the speaker characteristics to match a predetermined reference output, a more accurate conversation system can be provided.

[0198] At the same time, correction of expressing the expected emotion through frequency characteristic analysis can be performed every time the user's voice is input. At the same time, correction of the voice spectrum through frequency analysis, adjustment of the filter value of the output hardware, correction of the speaker characteristics, etc. can be performed in a predetermined cycle, or only when the electronic device initially executes the conversation system.

[0199] At the same time, Fig. 9 , it is shown that the frequency characteristic verification module 920 corrects the input data. However, in actual implementation, the frequency characteristic verification module 920 may only obtain the correction value, and a separate correction module may correct the input data.

[0200] Then, the electronic device may input the verification result including the corrected input data into the TTS module and output a corrected speech signal.

[0201] refer to Fig.11 , the verification module may include a sentence length estimation module 1110 and a sentence length verification module 1120. Fig.11 In the embodiment, for the convenience of explanation, the verification module is shown as being divided into multiple modules. However, in actual implementation, the verification module can be implemented as one module, or one or more software modules.

[0202] Specifically, the electronic device may input the voice signal output at the TTS module into the sentence length estimation module 1110, and obtain the sentence length corresponding to the voice signal. Here, the voice signal input to the sentence length estimation module 1110 may be a voice signal output at the TTS module and then directly input to the sentence length estimation module 1110, or a voice signal output from the TTS module to the outside through a speaker and then input through a microphone.

[0203] Specifically, the sentence length estimation module 1110 may estimate the sentence length by using the length of the speech signal.

[0204] Furthermore, the electronic device may input information on the sentence length of the speech signal acquired at the sentence length estimation module 1110 into the sentence length verification module 1120 and detect an error in the speech signal.

[0205] Specifically, the sentence length verification module 1120 can compare the sentence length of the voice signal and the length of the text data included in the input data, and detect an error in the voice signal. Here, the sentence length verification module 1120 can compare the length of the acquisition time of the voice signal acquired at the sentence length estimation module 1110 and the sentence length based on the number of characters and words of the text included in the input data. If there is a difference equal to or greater than a predetermined value, an error in the voice signal output at the TTS module can be determined.

[0206] As described above, simplified error detection is possible without changing the speech signal output at the TTS module into text.

[0207] In addition, if there is a difference in sentence length that is equal to or greater than a predetermined value, the sentence length verification module 1120 can input the voice signal output at the TTS module to the voice recognition module and obtain text, and compare the obtained text with the text included in the input data, and detect errors more accurately.

[0208] Meanwhile, if it is determined that there is an error in the speech signal, the sentence length verification module 1120 may correct the input data. Specifically, the sentence length verification module 1120 may correct the input data by performing at least one of a change in the spacing of text data included in the input data, a change in punctuation marks, or an application of a markup language (e.g., SSML).

[0209] At the same time, Fig.11 In the embodiment of the present invention, it is described that the sentence length verification module 1120 obtains the correction information. However, in actual implementation, the sentence length verification module 1120 may only obtain the correction value, and a separate correction module may correct the input data.

[0210] Then, the electronic device may input the verification result including the corrected input data into the TTS module and output a corrected speech signal.

[0211] Fig.12 and Fig.14 is a diagram for illustrating an embodiment in which the electronic device of the present disclosure is an edge device. Specifically, Fig.12 and Fig.14 An embodiment is shown in which an environmental device (environmental point) of an electronic device rather than the electronic device provides a voice signal to a user. That is, Figure 4 , 6 The speaker 140 shown in FIG. 7 is not provided on the electronic device 100, but is implemented as an external speaker device. Meanwhile, in the present disclosure, an environmental device refers to a device separate from the electronic device, and in this specification, the environmental device may be referred to as an external device, etc.

[0212] refer to Fig.12 , the electronic device 100 implemented as an edge device can send a voice signal to at least one environment device 200 connected via a network. Here, the electronic device 100 and the environment device 200 can be connected via a wireless network or a wired network. Fig.12 , it is shown that the electronic device 100 is an artificial intelligence speaker, but the type of the electronic device 100 is not limited thereto, and the electronic device 100 may be a mobile device, a TV, a server, etc.

[0213] Here, the environment device 200 may include Fig.13 Components shown.

[0214] refer to Fig.13 , the environment device 200 may include a memory 210 , a processor 220 , a communicator 230 , a speaker 240 , and a microphone 250 .

[0215] The memory 210 may store various programs and data required for the operation of the environment device 200. Specifically, the memory 210 may store software programs or applications, including computer-readable instructions for providing at least one instruction to the processor 220. The processor 220 may control the environment device 200 to perform the aforementioned operations by executing the software stored in the memory 210. The memory 210 may be implemented as a non-volatile memory, a volatile memory, a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD), etc. In addition, the processor 220 may access the memory 210, and may perform the reading / recording / correction / deletion / update of data by the processor 220, etc. Meanwhile, in the present disclosure, the term memory may include the memory 210, the ROM, RAM inside the processor 220, or a memory card (e.g., a micro SD card, a memory stick) installed on the environment device 200.

[0216] The processor 220 may be electrically connected to the memory 210 and control the overall operation of the environment device 200. Specifically, the processor 220 may execute at least one instruction of a software program or application stored in the memory 210 and control the environment device 200 to perform the functions described in the present disclosure.

[0217] According to an embodiment of the present disclosure, the processor 220 may be implemented as a digital signal processor (DSP), a microprocessor, and a time controller (TCON). However, the present disclosure is not limited thereto, and the processor 220 may include one or more of a central processing unit (CPU), a microcontroller unit (MCU), a microprocessing unit (MPU), a controller, an application processor (AP) or a communication processor (CP), and an ARM processor, or may be defined by terms. In addition, the processor 220 may be implemented as a system on chip (SoC) or a large-scale integrated circuit (LSI) in which a processing algorithm is stored, or implemented in the form of a field programmable gate array (FPGA).

[0218] The communicator 230 is a component that performs communication with various types of other devices according to various types of communication methods. Here, another device that communicates with the environment device 200 may be a server or the electronic device 100 as a user terminal device.

[0219] The communication connection of the communicator 230 with the external device may include communication via a third device (e.g., a repeater, a hub, an access point, a server, or a gateway, etc.). The communicator may be implemented as a wireless communication interface for performing wireless communication, which may include cellular communication using at least one of LTE, Advanced LTE (LTE-A), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Universal Mobile Telecommunications System (UMTS), Wireless Broadband (WiBro), or Global System for Mobile Communications (GSM). According to an embodiment, the wireless communication may include, for example, at least one of Wireless Fidelity (WiFi), Bluetooth, Bluetooth Low Energy (BLE), Zigbee, Near Field Communication (NFC), Magnetic Security Transmission, Radio Frequency (RF), or Body Area Network (BAN). The communicator may also be implemented as a wired communication, such as an optical or Ethernet network interface controller (NIC), which may include, for example, at least one of Universal Serial Bus (USB), High Definition Multimedia Interface (HDMI), Recommended Standard 232 (RS-232), Power Line Communication, or Plain Old Telephone Service (POTS). The network performing wireless communication or wired communication may include at least one of telecommunication networks such as a computer network (eg, LAN or WAN), the Internet, or a telephone network.

[0220] The processor 220 may receive a voice signal from the electronic device through the communicator 230. Then, the processor 220 may output the voice signal received from the electronic device through the speaker 240.

[0221] The speaker 240 is a component that outputs various types of audio data such as various audible notification sounds or voice messages and various processing operations such as decoding or amplification, noise filtering, etc. performed by the processor 220. Specifically, the speaker 240 can output a voice signal in the form of a voice waveform as a sound in the form of a natural language. Here, the voice output may correspond to pre-stored text data, such as an e-book, or may be a response to a user's inquiry that is output as a voice message in the form of a natural language. Meanwhile, the component for outputting audio may be implemented as a speaker, but the speaker is merely an example, and the component may be implemented as an output terminal capable of outputting audio data.

[0222] The microphone 250 is a component for receiving an input of an emitted user voice. The microphone 250 can generate (or convert) a voice or sound received from an audio source into an electronic signal under the control of the processor 220. The electronic signal generated at the microphone 250 can be converted under the control of the processor 220 and stored in the memory 210.

[0223] Here, the voice input through the microphone 250 may be a voice directly uttered by the user, or a voice output through the speaker 240 provided on the environment device 200, or a voice output by a speaker provided on another apparatus.

[0224] At the same time, the processor 220 may send the voice signal input through the microphone 250 to the electronic device 100 through the communicator 230. Here, the electronic device 100 may verify the voice signal received from the environment device 200 and detect the erroneous operation of the TTS module. Thereafter, when a correction voice signal is received through the communicator 230, the processor 220 may output the correction voice signal through the speaker 240. Here, the processor 220 may output an indicator indicating that the output voice is corrected. Here, the indicator may be received from the electronic device 100, or the indicator may have been stored in the environment device 200.

[0225] At the same time, Fig.13 , it is shown that the ambience device 200 includes both the speaker 240 and the microphone 250, but depending on the embodiment, the ambience device 200 may include only one of the speaker 240 or the microphone 250, and may further include a display.

[0226] Meanwhile, the electronic device 100 may include Fig.14 The verification module 420 is shown.

[0227] According to an embodiment of the present disclosure, the electronic device 100 may input input data to the TTS module and obtain a voice signal. Then, the electronic device 100 may send the obtained voice signal to the environment device 200 including the speaker 240. Here, the environment device 200 may output the voice signal obtained from the electronic device 100.

[0228] Here, the electronic device 100 may receive a voice signal 1410 output at the speaker 240 of the environment device 200 through the microphone 150. Then, the electronic device 100 may compare the voice signal received through the microphone 150 with the input data input into the TTS module by using the verification module 420, and detect an error in the voice signal acquired by the TTS module.

[0229] If an error is detected, the electronic device 100 can correct the input data, input the corrected input data to the TTS module, and obtain a corrected voice signal. Then, the electronic device 100 can send the obtained corrected voice signal to the environment device 200, and control the corrected voice signal to be output through the speaker 240 at the environment device 200.

[0230] At the same time, about Fig.14 , it is described that the voice signal output at the speaker 240 of the environment device 200 is received by the microphone 150 of the electronic device 100, but the present disclosure is not limited thereto, and the voice signal output at the speaker 240 of the environment device 200 can be received by the microphone of the environment device 200. In this case, the voice signal received by the microphone of the environment device 200 can be sent to the electronic device 100, and the electronic device 100 can detect an error in the received voice signal. As another example, the voice signal output at the speaker of the electronic device 100 can be received by the microphone of the environment device 200. In this case, the voice signal received by the microphone of the environment device 200 can be sent to the electronic device 100, and the electronic device 100 can detect an error in the received voice signal. That is, depending on the embodiment, the environment device 200 may include only the speaker 240, or only the microphone, or both the speaker and the microphone.

[0231] Fig.15 and 16 It is used to illustrate Fig.12 Here, the electronic device 100 may be a terminal device or a server.

[0232] refer to Fig.15 , the electronic device 100 may be a server with excellent computing performance.

[0233] refer to Fig.15 , the electronic device 100 may receive a voice signal 1501 as input from the environment device 200, and use speaker recognition 1502 to identify the identity of the speaker of the received voice signal. Here, the voice signal received from the environment device 200 may be a voice signal emitted by the user 10 and received by the microphone 250 provided on the environment device 200. Fig.15 In the figure, it is shown that the microphone 250 is set on the environment device 200, but in the case where the environment device 200 is an edge device, the electronic device 100 can receive the voice signal 1501 through a microphone set on another second environment device (for example, an environment point) connected to the environment device 200. Here, the voice signal received by the microphone set on the second environment device can be sent from the second environment device to the electronic device 100 through the environment device 200, or directly sent from the second environment device to the electronic device 100.

[0234] Then, the electronic device 100 may process the received voice signal differently according to the result of speaker recognition. If, as a result of speaker recognition, it is determined that the speaker of the received voice signal is a user, the electronic device 100 may provide the received voice signal as input 1503 to the automatic speech recognition (ASR) module 510. Then, the electronic device 100 may obtain input data 40 to be input into the TTS module 410 by using the speech recognition (ASR) module 510 and the natural language processing (NLP) module 520. At the same time, the electronic device 100 may identify the speaker based on the result of speaker recognition, and obtain input data 40 based on the result of speaker recognition. Then, the electronic device 100 may provide the obtained input data 40 as input 1504 to the TTS module 410.

[0235] Since the operations in each module are similar to Figures 4 to 7 , so its redundant explanation will be omitted.

[0236] At the same time, the electronic device 100 may send a voice signal 1505 of the input data output at the TTS module 410 to the environment device 200. Then, the environment device 200 receiving the voice signal may output the received voice signal through the speaker 240. Next, the voice signal output through the speaker 240 of the environment device 200 may be received 1507 through the microphone 250 of the environment device 200. Here, depending on the embodiment, the electronic device 100 may provide the voice signal output at the TTS module 410 as an input 1506 to the verification module 420.

[0237] At the same time, the electronic device 100 may receive a voice signal 1501 through the microphone 250 of the environment device 200 .

[0238] At the same time, about Fig.15 , it is described that a voice signal output through a speaker 240 provided on the environment device 200 is received through a microphone 250 provided on the environment device 200. However, in the case where the environment device 200 is an edge device, the environment device 200 may send a voice signal to a second environment device connected to the environment device 200, and the voice signal may be output through a speaker provided on the second environment device, a voice signal output through a microphone provided on the second environment device may be input, and the environment device 200 may receive a voice signal input from the second environment device and send the signal to the electronic apparatus 100. Meanwhile, depending on the embodiment, a voice signal output at a speaker of the second environment device may be received at a microphone 250 of the environment device 200 and sent to the electronic apparatus 100, and a voice signal output at a speaker 240 of the environment device 200 may be directly received by a microphone of the second environment device, and the microphone may send the signal to the electronic apparatus 100, or the signal may be sent to the electronic apparatus 100 through the environment device 200.

[0239] In addition, the electronic device 100 may identify 1502 whether the received voice signal 1501 is a voice signal emitted by a user or a speaker of a voice signal output at the speaker 240. If it is determined that the speaker of the received voice signal is the user, the electronic device 100 may provide the received voice as input 1503 to the speech recognition (ASR) module 510 for performing a general speech recognition operation.

[0240] Meanwhile, if it is determined that the voice signal received from the environment device 200 is output at the TTS module 410, the electronic device 100 may provide the received voice signal as input 1508 to the verification module 420. The verification module 420 may include at least one of a verification module using text, a verification module using frequency characteristics, or a verification module using sentence length, such as Figure 8 , 9 11. Specifically, the electronic device 100 may provide the input data 40 input to the TTS module 410 as input 1509 to the verification module 420, and the verification module 420 may compare the input data 40 with the input speech signal 1508 and detect errors in the speech signal.

[0241] At the same time, the speaker recognition 1502 operation may be optional, and depending on the embodiment, the electronic device 100 may directly input the voice signal 1501 received from the environmental device 200 within a predetermined time period after the voice signal output from the TTS module 410 is sent to the environmental device 200 as input 1505 into the verification module 420 without the need for the speaker recognition 1502 operation.

[0242] Then, based on the verification result, if there is no error in the voice signal, the electronic device 100 can continue to output the voice signal and complete the voice output. At the same time, if there is an error in the voice signal, the electronic device 100 can correct the input data 40 output at the natural language processing module 520, and provide the corrected input data as input 1510 to the TTS module 410. Then, the electronic device 100 can send 1505 the corrected voice signal obtained by the TTS module 410 to the environment device 200 again. Here, the electronic device 100 can also send an indicator indicating that the voice signal is corrected.

[0243] At the same time, about Fig.15 , describes that the electronic device 100 performs all functions of the speech recognition (ASR) module 510, the natural language processing (NLP) module 520, the TTS module 410, and the speaker recognition module 1502. However, the present disclosure is not limited thereto, and at least some functions may be performed by the environment device 200, such as Fig.16 This is because since some functions are executed by the environment device 200 having excellent computing performance, the processing burden of the electronic device 100 can be reduced because the amount of data processing is too large since at least some components of the electronic device 100 use artificial intelligence modules.

[0244] At the same time, about Fig.16 , it is described that the functions of the speaker recognition module 1410, the automatic speech recognition (ASR) module 1420, the natural language processing (NLP) module 1430, and the TTS module 1440 in addition to the verification module 420 are performed at the environment device 200. However, the present disclosure is not limited thereto, and at least some functions of the speaker recognition module 1410, the automatic speech recognition (ASR) module 1420, the natural language processing (NLP) module 1430, and the TTS module 1440 may be performed at the electronic device 100.

[0245] refer to Fig.16 , the environment device 200 can receive the voice input issued by the user 10 through the provided microphone 250. Fig.16 , it is described that the microphone 250 is provided on the environment device 200. However, in the case where the environment device 200 is an edge device, the electronic apparatus 100 may receive a voice signal received by a microphone provided on another second environment device (e.g., an environment point) connected to the environment device 200. Here, the voice signal received by the microphone provided on the second environment device may be transmitted from the second environment device to the electronic apparatus 100 through the environment device 200.

[0246] Then, the received voice signal may be provided as input 1601 to the speaker recognition module 1610. Here, the environment device 200 may process the received voice signal differently according to the result of the speaker recognition. If, as a result of the speaker recognition, it is determined that the speaker of the received voice signal is a user, the environment device 200 may input the input voice signal into the automatic speech recognition (ASR) module 1620. Then, the environment device 200 may obtain the response information of the user voice as input data 1602 to be input into the TTS module 1640 by using the speech recognition (ASR) module 1620 and the natural language processing (NLP) module 1630. At the same time, the environment device 200 may input the obtained input data 1602 into the TTS module 1640. Then, depending on the embodiment, the environment device 200 may send the input data 1602 output at the natural language processing module 1630 as input 1606 to the verification module 420 of the electronic device 100.

[0247] Here, the operation at each module of the environment device 200 is similar to Figures 4 to 7 The operation at each module of the electronic device is described in the following. Therefore, redundant explanation will be omitted.

[0248] Meanwhile, the ambience device 200 may output the voice signal of the input data 1602 output at the TTS module 1640 through the speaker 240. Then, the voice signal output through the speaker 240 of the ambience device 200 may be provided as input 1604 through the microphone 250 of the ambience device 200.

[0249] At the same time, Fig.16 , it is described that a voice signal output through a speaker 240 provided on the environment device 200 is received through a microphone 250 provided on the environment device 200. However, in the case where the environment device 200 is an edge device, the environment device 200 may send a voice signal to a second environment device connected to the environment device 200, and the voice signal may be output through a speaker provided on the second environment device, a voice signal output through a microphone provided on the second environment device may be input, and the environment device 200 may receive a voice signal input from the second environment device and send the signal to the electronic apparatus 100. Meanwhile, depending on the embodiment, a voice signal output at a speaker of the second environment device may be received at a microphone 250 of the environment device 200 and sent to the electronic apparatus 100, or a voice signal output at a speaker 240 of the environment device 200 may be received by a microphone of the second environment device, and the microphone may directly send a signal to the electronic apparatus 100, or send a signal to the electronic apparatus 100 through the environment device 200.

[0250] Here, depending on the embodiment, the environment device 200 may send the voice signal 1607 output at the TTS module 1640 to the verification module 420 of the electronic apparatus 100. In this case, the verification module 420 of the electronic apparatus 100 may compare the input data 1606 received from the environment device 200 and the voice signal 1607 received from the environment device 200, and detect an error in the voice signal. The verification module 420 of the electronic apparatus 100 may include at least one of a verification module using text, a verification module using frequency characteristics, or a verification module using sentence length, such as Figure 8 , 9 and 11.

[0251] Meanwhile, depending on the embodiment, the identity of the speaker may be identified 1610 for identifying whether the voice signal received through the environment device 200 is a voice signal of a voice uttered by the user 10 or a voice signal output at the speaker 240. If it is determined that the speaker of the voice signal received through the microphone 250 is the user 10, the environment device 200 may input the received voice to a voice recognition (ASR) module 1620 for performing a general voice recognition operation.

[0252] Meanwhile, if it is determined that the voice signal received through the microphone 250 is output through the speaker 240, the environment device 200 may send the received voice signal as input 1605 to the verification module 420 of the electronic apparatus 100. Specifically, the electronic apparatus 100 may compare the input data 1606 received from the environment device 200 and the voice signal 1605 received from the environment device 200, and detect an error in the voice signal.

[0253] Meanwhile, the speaker recognition 1610 operation is optional, and depending on the embodiment, the environment device 200 may directly send the voice signal received through the microphone 250 within a predetermined time period after the voice signal is output through the speaker 240 to the verification module 420 of the electronic device 100 without the speaker recognition 1610 operation.

[0254] Then, based on the verification result, if there is no error in the voice signal, the electronic device 100 may send a feedback signal indicating no separate feedback or no error to the environment device 200. Meanwhile, if there is an error in the voice signal, the electronic device 100 may correct the input data received from the environment device 200 and provide the corrected input data as input 1608 to the TTS module 1640 of the environment device 200. Then, the environment device 200 may provide the corrected voice signal acquired by the TTS module 1640 as output 1603 again through the speaker 240. Here, the environment device 200 may also output an indicator indicating that the voice signal is corrected.

[0255] At the same time, about Fig.16 , describing that the input data 1602 is the response information of the voice of the user 10, but in actual implementation, the input data can be pre-stored data such as an electronic book, or data received from an external server, etc.

[0256] Fig.17 is a flowchart illustrating a method of controlling an electronic device according to an embodiment of the present disclosure.

[0257] refer to Fig.17 , first, in operation S1710, the electronic device may obtain input data to be input to the TTS module. Here, the input data may be text data and emotion-related data. In addition, the input data may be pre-stored data, or data received from an external device, or response information obtained by analyzing a user's voice.

[0258] Then, in operation S1720, the electronic device may obtain a voice signal corresponding to the input data through the TTS module. Specifically, the electronic device may input the input data into the TTS module and obtain a voice signal corresponding to the input data. Here, the response voice signal output at the TTS module may be directly output by a speaker provided on the electronic device, or the response voice signal may not be directly output.

[0259] Then, in operation S1730, the electronic device may detect an error in the acquired voice signal based on the input data. Specifically, the electronic device may compare the voice signal output from the TTS module with the input data input to the TTS module, and detect an error in the voice signal. Specifically, the electronic device may detect an error in the output voice signal by comparing text included in the output voice signal and the input data, comparing frequency characteristics, comparing sentence lengths, and the like.

[0260] Then, if an error in the output voice signal is detected, the electronic device may correct the input data in operation S1740. Specifically, the electronic device may correct the input data by changing the spacing of the text included in the input data, changing punctuation marks, or applying a markup language (e.g., SSML). Optionally, depending on the embodiment, the electronic device may correct the filter value of the output hardware, or correct the speaker characteristics.

[0261] In addition, in operation S1750, the electronic device may output a corrected voice signal corresponding to the corrected input data. Specifically, the electronic device may input the corrected input data into the TTS module again and output the corrected voice signal.

[0262] Here, the electronic device can perform re-verification by inputting the corrected voice signal to the verification module again, or provide the signal to the user through the speaker. In the case of providing the voice signal to the user through the speaker, the electronic device can also output an indicator indicating that the voice signal is corrected.

[0263] Fig.18 It is shown Fig.15 Here, the electronic device 100 may be a terminal device or a server. Fig.18 It is shown according to an embodiment including only a TTS module and a verification module. However, the present disclosure is not limited thereto.

[0264] refer to Fig.18 In operation S1810, the environment device 200 may acquire input data. Here, the input data may be data input into the TTS module for outputting speech through the TTS module. Specifically, the input data may include text data pre-stored like an e-book or received from an external device, or response text data acquired by analyzing user speech. Here, the input data may also include data related to emotions corresponding to the text data.

[0265] Specifically, in the case where the input data is response data corresponding to the user's voice, the environment device 200 may include an automatic speech recognition (ASR) module, a natural language processing (NLP) module, etc., and the environment device 200 may obtain the response data corresponding to the user's voice through a separate speech recognition server.

[0266] Then, the environment device 200 may transmit the acquired input data to the electronic apparatus 100 in operation S1820 .

[0267] Next, at operation S1830, the electronic apparatus 100 may acquire a voice signal corresponding to the input data received from the environment device 200 through the TTS module.

[0268] Then, in operation S1840, the electronic device 100 may detect an error in the voice signal based on the input data. Specifically, the electronic device 100 may detect an error in the output voice signal by comparing text, frequency characteristics, sentence length, etc. included in the voice signal output from the TTS module and the input data.

[0269] If an error is detected in the speech signal, in operation S1850, the electronic device 100 may obtain correction input data. Specifically, the electronic device 100 may correct the input data by changing the spacing of the text included in the input data, changing punctuation marks, or applying a markup language (e.g., SSML). Optionally, depending on the embodiment, the electronic device 100 may correct the filter value of the output hardware, or correct the speaker characteristics.

[0270] Then, in operation S1860, the electronic device 100 may output a corrected voice signal corresponding to the corrected input data. Specifically, the electronic device 100 may input the corrected input data into the TTS module again and obtain the corrected voice signal.

[0271] Next, at operation 1870, the electronic device 100 may transmit the corrected voice signal to the environment device 200. Here, the electronic device 100 may also transmit an indicator indicating that the voice signal is corrected. At the same time, the electronic device 100 may input the corrected voice signal into the verification module again and perform re-verification.

[0272] Then, in operation S1880, the environment device 200 may output the corrected voice signal received from the electronic device 100. Specifically, the environment device 200 may output the received voice signal through a speaker. Meanwhile, in the case where the environment device 200 receives an indicator from the electronic device 100, the environment device 200 may first output the indicator before outputting the corrected voice signal.

[0273] Fig.19 is a sequence diagram illustrating verification of a TTS module performed by a server and an edge device in a conversation system including the server, the edge device, and an environment point.

[0274] refer to Fig.19 In operation S1901, the environment device 200 may receive an input of a user voice through a provided microphone. Then, in operation S1902, the environment device 200 may send the input user voice to the edge device 100-1.

[0275] Next, in operation S1903, the edge device 100-1 may acquire input data based on the user voice received from the environment device 200. Specifically, the edge device 100-1 may acquire input data to be input into the TTS module by using an automatic speech recognition (ASR) module and a natural language processing (NLP) module on the received voice signal.

[0276] Then, in operation S1904, the edge device 100-1 may obtain a voice signal corresponding to the input data through the TTS module. Fig.19 , it is described that the ASR module, the NLP module, and the TTS module are set on the edge device 100-1. However, in actual implementation, the function of at least one module among the ASR module, the NLP module, and the TTS module can be performed by the server 100-2.

[0277] Next, in operation S1905, the edge device 100-1 may transmit the voice signal output from the TTS module to the environment device 200. In the case where the TTS module is provided on the server 100-2, the server 100-2 may transmit the voice signal output at the TTS module to the edge device 100-1 or the environment device 200.

[0278] Then, in operation S1906, the environment device 200 that receives the voice signal may output the received voice signal through the provided speaker. Next, in operation S1907, the environment device 200 may receive the voice signal output at the speaker through the microphone. Fig.19 , it is described that a voice signal is output and received through a speaker and a microphone provided on the environment device 200. However, depending on the embodiment, the voice signal may be output through a speaker provided on the edge device 100-1, or the voice signal may be received through a microphone provided on the environment device 200, or the voice signal may be output through a speaker provided on the environment device 200, or the voice signal may be received through a microphone provided on the edge device 100-1.

[0279] Meanwhile, in the case where a voice signal is received through the environment device 200, in operation S1908, the environment device 200 may transmit the received voice signal to the edge device 100-1. Here, in operation S1909, the edge device 100-1 may detect an error in the voice signal. Specifically, the edge device 100-1 may compare the input data with the voice signal output at the TTS module and detect an error in the voice signal.

[0280] Then, if an error in the speech signal is detected, in operation S1910, the edge device 100-1 may determine that the speech signal may be corrected at the edge device 100-1. For example, in the case where a relatively simple correction such as changing the spacing of text, punctuation, etc. is required, in operation S1910-Y (yes), the edge device 100-1 may determine that correction is possible. Then, in operation S1911, the edge device 100-1 may acquire correction input data.

[0281] Meanwhile, if the frequency characteristics of the speech signal are analyzed and relatively complex correction is required, such as applying SSML, or changing the weight of the style marker, then in operation S1910-N (No), the edge device 100-1 may determine that the correction cannot be performed by itself. In this case, in operation S1912, the edge device 100-1 may send the speech signal and the input data to the server 100-2.

[0282] Then, in operation S1913, the server 100-2 may obtain corrected input data by applying SSML to the input data or changing the weight of the style flag.

[0283] Here, if the function of the TTS module is executed at the edge device 100-1, the edge device 100-1 may obtain a corrected speech signal for corrected input data by using the TTS module in operation S1914. Here, the corrected input data may be obtained at the edge device 100-1 or received from the server 100-2.

[0284] Then, in operation S1915, the edge device 100-1 may transmit the acquired corrected voice signal to the environment device 200, and in operation S1916, the environment device 200 that has received the corrected voice signal may output the corrected voice signal through a speaker.

[0285] According to the various embodiments described above, by detecting and correcting an error in a response voice signal output at the TTS module using information about the response voice input to the TTS module, there is an effect that it becomes possible to implement a more accurate conversation system.

[0286] At the same time, by using software, hardware or a combination thereof, the various embodiments described above can be implemented in a non-transitory recording medium that can be read by a computer or a device similar to a computer. According to hardware implementation, the embodiments described in this disclosure can be implemented by using at least one of an application specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a processor, a controller, a microcontroller, a microprocessor or an electronic unit for performing various functions. In some cases, the embodiments described in this specification can be implemented as the processor itself. At the same time, according to software implementation, the embodiments such as processes and functions described in this specification can be implemented as one or more separate software modules. Each software module can perform one or more functions and operations described in this specification.

[0287] Meanwhile, the methods according to the aforementioned various embodiments of the present disclosure may be stored in a non-transitory readable medium, and such a non-transitory readable medium may be used while being integrated in various devices.

[0288] A non-transitory computer-readable medium refers to a medium that stores data semi-permanently and can be read by a machine, but does not store data for a short period of time, such as a register, a cache, and a memory. Specifically, the program for executing the above-mentioned various methods can be provided while being stored in a non-transitory readable medium such as a CD, a DVD, a hard disk, a Blu-ray disc, a USB, a memory card, a ROM, etc.

[0289] In addition, according to an embodiment of the present disclosure, the methods according to the various embodiments described in the present disclosure may be provided while being included in a computer program product. A computer program product refers to a product traded between a seller and a buyer. The computer program product may be distributed online in the form of a machine-readable storage medium (e.g., a compact disc read-only memory (CD-ROM)) or through an application store (e.g., play store TM). In the case of online distribution, at least a portion of the computer program product may be at least temporarily stored in a storage medium, such as a memory of a manufacturer's server, an application store's server, and a relay server, or may be temporarily generated.

[0290] Although the preferred embodiments of the present disclosure have been shown and described, the present disclosure is not limited to the above-mentioned specific embodiments, and it is obvious that a person skilled in the art of the present disclosure may make various modifications without departing from the gist of the present disclosure as required by the appended claims. In addition, such modifications should not be interpreted as being independent of the technical ideas or prospects of the present disclosure.< / s> < / prosody> < / emphasis>

Claims

1. An electronic device, include: a memory configured to store at least one instruction; and A processor configured to execute the at least one instruction stored in the memory, and when the at least one instruction is executed, the processor controls to: obtaining input data to be input into the TTS module for outputting speech through the text-to-speech TTS module, Acquire a speech signal corresponding to the input data through the TTS module, identifying an emotion of the speech signal, detecting errors in the speech signal based on the identified emotion of the speech signal, correcting the input data based on the result of detecting the error, and A corrected speech signal corresponding to the input data corrected based on the result of the detection error is acquired through the TTS module.

2. The electronic device according to claim 1, in, The input data includes first text data, and When executing the at least one instruction, the processor is further configured to: converting the speech signal into second text data, comparing the first text data and the second text data included in the input data, and An error in the speech signal is detected based on a result of comparing the first text data and the second text data.

3. The electronic device according to claim 1, in, The input data includes emotion-related data, and When executing the at least one instruction, the processor is further configured to: identifying the emotion of the speech signal based on the frequency characteristics of the speech signal, comparing emotion-related data included in the input data with the emotion, and Errors in the speech signal are detected based on a result of comparing emotion-related data included in the input data with the emotion.

4. The electronic device according to claim 1, in, When executing the at least one instruction, the processor is further configured to: comparing the length of the speech signal with the length of text data included in the input data, and An error in the speech signal is detected based on a result of comparing a length of the speech signal and a length of text data included in the input data.

5. The electronic device according to claim 1, in, When executing the at least one instruction, the processor is further configured to: based on detecting the error in the speech signal, correcting at least one of spacing or punctuation marks of text data included in the information about the input data, and Corrected input data having at least one of spacing or punctuation marks of the text data is input into the TTS module.

6. The electronic device according to claim 1, in, When executing the at least one instruction, the processor is further configured to: Based on detecting an error in the speech signal, correcting the input data by applying a speech synthesis markup language SSML to text data included in the input data, and Corrected input data having speech synthesis markup language SSML applied to the text data is input into the TTS module.

7. The electronic device according to claim 1, in, When executing the at least one instruction, the processor is further configured to: Converting the received user voice into text data by using a voice recognition module, analyzing the intention of the text data, and Response information corresponding to the received user voice is acquired as the input data.

8. The electronic device according to claim 1, further comprising: include: speaker, Wherein, when executing the at least one instruction, the processor is further configured to: adding an indicator indicating the correction to the speech signal, and A voice signal having the indicator is output through the speaker.

9. The electronic device according to claim 1, further comprising: include: speaker; and microphone, Wherein, when executing the at least one instruction, the processor is further configured to: outputting the speech signal through the speaker, and Based on receiving the speech signal output through the speaker through the microphone, an error in the speech signal received through the microphone is detected based on the input data.

10. The electronic device according to claim 9, in, When executing the at least one instruction, the processor is further configured to: identifying an identity of a speech signal received by the microphone, detecting an error in the speech signal based on the speech signal received through the microphone being a speech signal output through the speaker based on the identity, and Based on that the voice signal received through the microphone has been issued by the user based on the identity, the voice signal is converted into text data by using a voice recognition module, and the intention of the text data is analyzed and response information corresponding to the received user voice is obtained as input data.

11. The electronic device according to claim 1, further comprising: include: communicator, Wherein, when executing the at least one instruction, the processor is further configured to: The voice signal is transmitted to an external device through the communicator.

12. A method for controlling an electronic device, the method include: Obtaining, by a text-to-speech (TTS) module, input data to be input into the TTS module for outputting speech; Acquire a speech signal corresponding to the input data through the TTS module; identifying an emotion of the speech signal; detecting errors in the speech signal based on the identified emotion of the speech signal; correcting the input data based on the result of detecting the error; as well as A corrected speech signal corresponding to the input data corrected based on the result of the detection error is acquired through the TTS module.

13. The method for controlling an electronic device according to claim 12, in, The input data includes first text data, and Among them, detection errors include: Converting the speech signal into second text data; comparing the first text data and the second text data included in the input data; and An error in the speech signal is detected based on a result of comparing the first text data and the second text data.

14. The method for controlling an electronic device according to claim 12, in, The input data includes emotion-related data, and Among them, detection errors include: identifying an emotion of the speech signal based on a frequency characteristic of the speech signal; comparing emotion-related data included in the input data with the emotion; and Errors in the speech signal are detected based on a result of comparing emotion-related data included in the input data with the emotion.

15. The method for controlling an electronic device according to claim 12, in, Detection errors include: comparing the length of the speech signal with the length of text data included in the input data; and An error in the speech signal is detected based on a result of comparing a length of the speech signal and a length of text data included in the input data.