TECHNICAL FIELD

The disclosure relates to an electronic device and, more particularly, to a method of outputting text-based message data by an electronic device.

BACKGROUND ART

With the development of mobile communication technology and processor technology, portable terminal devices (hereinafter, referred to as electronic devices) can execute various applications in addition to the conventional call function. Among them, text-based message applications are the most widely used technologies in mobile communication-based electronic devices.

Speech recognition technology recognizes a user's voice and converts the recognized user's voice into text. As such speech recognition technology has been developed and the demand for more convenient and easier use of electronic devices has increased, there are an increasing number of scenarios in which electronic devices are controlled by voice and commands are issued.

One of the scenarios in which the speech recognition technology is utilized is speech to text (STT) that performs an input of a text message to be transmitted to the other party through a message application on the basis of speech recognition. That is, a user can transmit the text message to the other party through a speech recognition function that is easy to use when typing is difficult by hand, such as while driving or working.

DETAILED DESCRIPTION OF THE INVENTION

Technical Problem

The user of a receiving electronic device, which is the other party of the message application, sees the same type of text message, regardless of whether the method used to provide the text message was through using a keyboard or speech recognition in an originating electronic device.

If a message is input by voice and transmitted, the message can be perceived as content different from the content actually uttered by the user due to factors such as surrounding noise, limitations of the performance of a speech recognition engine, and the like. Also, if a message is input by voice on an electronic device having no display, there is a problem in that a text message is immediately transmitted to a counterpart electronic device without the user's confirmation of the content recognized by the electronic device. These problems may be reasons that a user does not actively use speech recognition technology when inputting a text message.

Therefore, the disclosure has been made in view of the above-mentioned problems, and an aspect of the disclosure is to output a message on a display of an electronic device on the basis of a method in which the message is input by an originating electronic device.

Solution to Problem

An electronic device according to various embodiments of the disclosure may include: a display configured to include a touch screen; a voice input device configured to collect a voice to generate voice data; a communication circuit; a processor configured to be electrically connected to the display, the voice input device, and the communication circuit; and a memory configured to be electrically connected to the processor, wherein the memory includes, when executed, instructions that cause the processor to receive first text data input through the touch screen and/or the voice data input through the voice input device and to generate message data including the first text data and/or second text data converted from the voice data and attribute information related to a type of an input method of the first text data and/or the second text data, and that cause the communication circuit to transmit the message data to an external electronic device.

An electronic device according to various embodiments of the disclosure may include: a display; a communication circuit; a processor configured to be electrically connected to the display and the communication circuit; and a memory configured to be electrically connected to the processor, wherein the memory includes, when executed, instructions that cause the processor to acquire message data received through the communication circuit and to identify attribute information included in the message data, and that cause the display to display, when text data included in the message data is first text data input from a touch screen of an external electronic device on the basis of the identification result, the first text data for a first time and to display, when the text data included in the message data is second text data converted from voice data, the second text data for a second time different from the first time.

A message data output method of an electronic device according to various embodiments of the disclosure may include: receiving message data generated by an external electronic device; identifying attribute information included in the message data; displaying, when text data included in the message data is first text data input from a touch screen of the external electronic device on the basis of the identification result, the first text data for a first time; and displaying, when the text data included in the message data is second text data converted from voice data, the second text data for a second time different from the first time.

Advantageous Effects of Invention

According to various embodiments of the disclosure, an originating electronic device may distinguish the type of a message according to the type of an input method and may transmit the message, and a receiving electronic device may differentiate the output of the message on the basis of the type of input method, whereby there is an effect that the use of a text message based on speech recognition can be activated.

