Language determination method and electronic device
OwnerBing YANG, Hongxu XU +1inventors
InventorsBing YANG, Hongxu XU, Lei HUANG
Life of this patent
Estimating the term…
Abstract
The present disclosure provides a language determination method and electronic device. The method includes: obtaining a first text and a reply text for the first text; determining a target sentence in the reply text; determining a first language of the first text and a second language of a preceding part of the target sentence; and determining a target language used when the target sentence is converted into speech based on the target sentence, the reply text, the first language, and the second language.
Claims20
A language determination method, comprising:
- obtaining a first text and a reply text for the first text;
- determining a target sentence in the reply text;
- determining a first language of the first text and a second language of a preceding part of the target sentence;
- and
- determining a target language used when the target sentence is converted into speech based on the target sentence, the reply text, the first language, and the second language.
An electronic device, comprising:
- a processor;
- and
- a memory, configured to store computer-executable instructions,
- wherein the computer-executable instructions stored in the memory, when executed by the processor, cause the processor to:
- obtain a first text and a reply text for the first text;
- determine a target sentence in the reply text;
- determine a first language of the first text and a second language of a preceding part of the target sentence;
- and
- determine a target language used when the target sentence is converted into speech based on the target sentence, the reply text, the first language, and the second language.
A computer-readable storage medium storing computer-executable instructions that, when executed by a processor, cause the processor to:
- obtain a first text and a reply text for the first text;
- determine a target sentence in the reply text;
- determine a first language of the first text and a second language of a preceding part of the target sentence;
- and
- determine a target language used when the target sentence is converted into speech based on the target sentence, the reply text, the first language, and the second language.
Dependencies are inferred from the claim text.