A display apparatus, comprising:
- a display configured to display an image and/or a user interface;
- a user input interface configured to receive a command from a user;
- a communicating device configured to communicate with an external device according to a predetermined protocol;
- a memory configured to store computer instructions and data associated with the display;
- and
- at least one processor in connection with the display, the user input interface, the communicating device, and the memory and configured to execute the computer instructions to cause the display apparatus to:
- while a translation function is activated in the display apparatus, collect a first voice input from a first user;
- convert the first voice into first text;
- determine a language and a first text feature corresponding to the first text by analyzing the first text;
- based on that the first text corresponds to a first language, set a second language as a target language, and translate the first text into second text in the second language through the translation function according to the first text feature, wherein the display apparatus is configured to support an instruction in the second language instead of an instruction in the first language;
- determine a first instruction corresponding to the second text by parsing the second text;
- and
- in response to the first instruction, execute an operation corresponding to the first instruction;
- wherein the memory stores a language translation library and at least one text feature library group;
- the language translation library comprises a first mapping between a translated text feature and a text feature translation in the target language, the translated text feature is a text feature in text corresponding to a voice input from the user, and the text feature translation is a translation in the target language corresponding to the translated text feature;
- and
- the at least one text feature library group corresponds to different users individually, each text feature library group comprises at least one text feature library, and each text feature library comprises a text feature in text corresponding to a voice input from a corresponding user;
- the at least one processor is configured to execute the computer instructions to cause the display apparatus to determine the language and the first text feature corresponding to the first text by analyzing the first text by:
- determining a timbre feature of the first user according to the first voice input from the first user;
- according to a second mapping between the timbre feature and the text feature library group, determining a first text feature library group corresponding to the first user from the at least one text feature library group;
- and
- determining a second text feature matched with the first text feature library group and a third text feature unmatched with the first text feature library group from the first text feature;
- and
- the at least one processor is configured to execute the computer instructions to cause the display apparatus to set the second language as the target language and translate the first text into the second text in the second language through the translation function according to the first text feature by:
- determining a target translated text feature corresponding to the second text feature from the language translation library, and obtaining a target text feature translation corresponding to the target translated text feature according to the first mapping;
- based on that the third text feature exists in the first text feature, translating the third text feature into a fourth text feature in the second language through the translation function;
- and
- generating the second text according to the target text feature translation and the fourth text feature.