A device comprising a sender, a receiver, a memory, and a processor;
- the memory is configured to store computer instructions;
- the processor is configured to execute the computer instructions stored in the memory to:
- obtain text information and determining characters in the text information and a text content of each of the characters;
- perform a character recognition on the text content of each of the characters, to determine character attribute information of the each of the characters;
- obtain speakers in one-to-one correspondence with the characters according to the character attribute information of each of the characters, wherein the speakers are pre-stored speakers having the character attribute information;
- and
- generate multi-character synthesized voices according to the text information and the speakers corresponding to the characters of the text information;
- wherein the character attribute information comprises a basic attribute, and the basic attribute comprises at least one of a gender attribute and an age attribute;
- before the obtaining speakers in one-to-one correspondence with the characters according to the character attribute information of each of the characters, the processor is configured to:
- determine the basic attribute corresponding to each of the pre-stored speakers according to voice parameter information of the pre-stored speakers;
- and
- correspondingly, in the obtaining speakers in one-to-one correspondence with the characters according to the character attribute information of each of the characters, the processor is configured to:
- for each of the characters, obtain a speaker having the basic attribute corresponding to the each of the characters,
- wherein the character attribute information further comprises an additional attribute, and the additional attribute comprises at least one of the following:
- regional information, timbre information, and pronunciation style information;
- before the obtaining speakers in one-to-one correspondence with the characters according to the character attribute information of each of the characters, the processor is configured to:
- determine the additional attribute and additional attribute priority corresponding to each of the pre-stored speakers according to the voice parameter information of the pre-stored speakers, and
- correspondingly, in the obtaining speakers in one-to-one correspondence with the characters according to the character attribute information of each of the characters, the processor is configured to:
- determine whether the speaker having the basic attribute corresponding to the character is unique such that the speaker having the basic attribute is the only one of the pre-stored speakers having the basic attribute;
- if yes, using the unique speaker as the speaker in one-to-one correspondence with the character;
- if no, determine, from speakers having the basic attribute corresponding to the characters, the speakers in one-to-one correspondence with the characters according to the additional attribute;
- wherein in determining, from speakers having the basic attribute corresponding to the characters, the speakers in one-to-one correspondence with the characters according to the additional attribute, the processor is configured to:
- obtain a character voice description class keyword in text contents of the characters,
- determine the additional attribute corresponding to the characters according to the character voice description class keyword, and
- in the speakers having the basic attribute corresponding to the characters, use speakers with highest additional attribute priorities as the speakers in one-to-one correspondence with the characters.