Reading processing method of dialogue novel, computing device and storage medium

文档序号:1847932 发布日期:2021-11-16 浏览:26次 中文

阅读说明:本技术 对话小说的阅读处理方法、计算设备及存储介质 (Reading processing method of dialogue novel, computing device and storage medium ) 是由 刘星 张戈馨 景浩 于 2021-08-20 设计创作,主要内容包括:本发明公开了一种对话小说的阅读处理方法、计算设备及存储介质,其中,对话小说的阅读处理方法包括:检测第一用户在对话小说阅读界面中执行的阅读模式选择操作;当阅读模式选择操作对应的目标模式为听读模式时,确定对话小说中各个角色对应的音色组件;调用客户端中的各个角色对应的音色组件,将各个角色的对话信息转换成对应的对话音频并进行播报。根据本发明提供的技术方案,不仅实现了听书功能,使得用户能够通过听读方式便捷地获取对话小说的内容,而且还能够基于不同音色进行对话小说的音频自动播报,实现多个角色对话沟通的听读效果。(The invention discloses a reading processing method of a dialog novel, a computing device and a storage medium, wherein the reading processing method of the dialog novel comprises the following steps: detecting reading mode selection operation executed by a first user in a dialog novel reading interface; when the target mode corresponding to the reading mode selection operation is the listening and reading mode, determining tone components corresponding to all roles in the dialogue novel; and calling tone color components corresponding to all roles in the client, converting the dialogue information of all the roles into corresponding dialogue audio and broadcasting. According to the technical scheme provided by the invention, the book listening function is realized, so that a user can conveniently acquire the content of the conversation novel in a listening and reading mode, the audio of the conversation novel can be automatically broadcasted based on different timbres, and the listening and reading effects of the conversation communication of a plurality of roles are realized.)

1. A method of reading a dialog novel, comprising:

detecting reading mode selection operation executed by a first user in a dialog novel reading interface;

when the target mode corresponding to the reading mode selection operation is an listening and reading mode, determining tone components corresponding to all roles in the dialogue novel;

and calling tone color components corresponding to all roles in the client, converting the dialogue information of all the roles into corresponding dialogue audio and broadcasting.

2. The method of claim 1, the determining timbre components corresponding to respective characters in the dialog novel, comprising:

acquiring tone configuration information configured for each role of the dialog novel by a second user;

and determining tone components corresponding to the roles according to the tone configuration information.

3. The method of claim 1, the determining timbre components corresponding to respective characters in the dialog novel, comprising:

acquiring role information configured for each role of the dialog novel by a second user;

analyzing the role information of each role to obtain a role label of each role;

and matching the role labels of the roles with the tone components stored in the tone component set of the client, and determining the tone components corresponding to the roles.

4. The method of claim 1, the determining timbre components corresponding to respective characters in the dialog novel, comprising:

sending a tone component distribution request to a server;

and receiving tone color components corresponding to the roles returned by the server, wherein the tone color components corresponding to the roles are obtained by distributing the server according to the role information of the roles.

5. The method of claim 3 or 4, the role information comprising one or more of the following information: role name, role age, role gender, role avatar, role character.

6. The method of any of claims 1-5, further comprising, after the detecting a reading mode selection operation performed by the first user in the dialog novel reading interface:

when the target mode corresponding to the reading mode selection operation is the automatic click-to-read mode, determining the presentation time interval of the dialogue information of each role according to the number of characters contained in the dialogue information of each role;

and presenting the dialog information of each character one by one according to the presentation time interval of the dialog information of each character.

7. The method of claim 6, wherein determining the presentation time interval of the dialog information of each character according to the number of characters included in the dialog information of each character comprises:

and aiming at each dialog information, calculating the presentation time interval corresponding to the character number of the dialog information as the presentation time interval of the dialog information according to the preset proportional relation between the character number and the presentation time interval.

8. The method of claim 6, wherein determining the presentation time interval of the dialog information of each character according to the number of characters included in the dialog information of each character comprises:

and for each dialog message, determining a character number interval to which the character number of the dialog message belongs according to a preset interval mapping relation between the character number and the presentation time interval, and taking the presentation time interval corresponding to the character number interval as the presentation time interval of the dialog message.

9. A computing device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;

the memory is configured to store at least one executable instruction that causes the processor to:

detecting reading mode selection operation executed by a first user in a dialog novel reading interface;

when the target mode corresponding to the reading mode selection operation is an listening and reading mode, determining tone components corresponding to all roles in the dialogue novel;

and calling tone color components corresponding to all roles in the client, converting the dialogue information of all the roles into corresponding dialogue audio and broadcasting.

10. A computer storage medium having stored therein at least one executable instruction for causing a processor to perform operations corresponding to the method of reading a dialog novel according to any one of claims 1 to 8.

Technical Field

The invention relates to the technical field of information processing, in particular to a reading processing method of a dialog novel, computing equipment and a storage medium.

Background

A dialog novel is a type of novel that presents novel content in a character dialog manner by narrating events, developing novel stories, characterizing character characters, etc. in the dialog between characters. The novel form of the dialogue novel has great substitution feeling and immersion feeling, and a wider user reading group is obtained. The dialog novel currently has a click-to-read function, that is, a user presents dialog information at a moment, and the user needs to continuously click to present subsequent dialog information one by one. However, the reading function of the current dialog novel is single, and the user cannot enjoy the listening and reading process of the dialog novel, such as only having the click-to-read function and not having the book listening function.

Disclosure of Invention

In view of the above, the present invention has been made to provide a reading processing method of a dialog novel, a computing device and a storage medium that overcome or at least partially solve the above problems.

According to an aspect of the present invention, there is provided a reading processing method of a dialog novel, including:

detecting reading mode selection operation executed by a first user in a dialog novel reading interface;

when the target mode corresponding to the reading mode selection operation is the listening and reading mode, determining tone components corresponding to all roles in the dialogue novel;

and calling tone color components corresponding to all roles in the client, converting the dialogue information of all the roles into corresponding dialogue audio and broadcasting.

According to another aspect of the present invention, there is provided a computing device comprising: the processor, the memory and the communication interface complete mutual communication through the communication bus;

the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the following operations:

detecting reading mode selection operation executed by a first user in a dialog novel reading interface;

when the target mode corresponding to the reading mode selection operation is the listening and reading mode, determining tone components corresponding to all roles in the dialogue novel;

and calling tone color components corresponding to all roles in the client, converting the dialogue information of all the roles into corresponding dialogue audio and broadcasting.

According to another aspect of the embodiments of the present invention, there is provided a computer storage medium, in which at least one executable instruction is stored, and the executable instruction causes a processor to perform an operation corresponding to the reading processing method of the dialog novel.

According to the technical scheme provided by the invention, when the user selects to use the listening and reading mode, the voice conversion and broadcasting of the conversation information can be realized by calling the corresponding tone color component built in the client for each role, so that not only is the listening and reading function realized, but also the user can conveniently acquire the content of the conversation novel through the listening and reading mode, and can automatically broadcast the audio of the conversation novel based on different tone colors, so that the listening and reading effects of the conversation communication of a plurality of roles are realized, and the user can conveniently distinguish the roles from the hearing in the listening and reading process, and obtain better listening and reading experience.

The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.

Drawings

Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:

fig. 1 is a flowchart illustrating a reading processing method for a dialog novel according to a first embodiment of the present invention;

FIG. 2a is a flow chart illustrating a method for processing a dialog novel according to a second embodiment of the present invention;

FIG. 2b illustrates a schematic diagram of a dialog authoring interface;

FIG. 2c is a schematic diagram of a conversational character management interface;

fig. 3 is a schematic structural diagram of a computing device according to a fourth embodiment of the present invention.

Detailed Description

Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.

Example one

Fig. 1 is a flowchart illustrating a reading processing method of a dialog novel according to a first embodiment of the present invention, and as shown in fig. 1, the method includes the following steps:

step S101, detecting a reading mode selection operation executed by a first user in a dialog novel reading interface.

The method may be performed by a client of the conversation novel. A plurality of reading modes are provided for the dialog novel in the client side of the dialog novel, and the reading modes can specifically comprise an listening and reading mode and a point and reading mode. In order to effectively distinguish users, a reader user who reads the dialog novel is referred to as a first user, and an author user who authors the dialog novel is referred to as a second user hereinafter. In the process that the first user reads the conversation novel by using the client, the reading mode can be selected in the conversation novel reading interface according to the requirement of the first user. When the first user wants to select the reading mode, the first user can execute the reading mode selection operation in the dialogue novel reading interface.

And step S102, when the target mode corresponding to the reading mode selection operation is the listening and reading mode, determining tone color components corresponding to all roles in the dialogue novel.

In the dialog novel, each dialog message has a corresponding role, and the roles can be 'voice over', 'first person', 'second person' and the like. Under the listening and reading mode, different tone color components can be called for different roles to carry out voice conversion on the dialogue information, and the listening and reading effects of dialogue communication of a plurality of roles are realized, so that a first user can conveniently distinguish the roles from the auditory sense in the listening and reading process, and better listening and reading experience is obtained. When the target mode corresponding to the detected reading mode selection operation is the listening and reading mode, it is described that the first user currently wants to read the dialog novel in the listening and reading mode, and in order to perform voice conversion on the dialog information of each role in the dialog novel, it is necessary to determine the tone color component corresponding to each role in the dialog novel. Specifically, the tone components corresponding to the respective roles may be configured for the respective roles by a second user who creates the dialog novel, or may be automatically allocated by the client or the server according to role information of the respective roles.

And step S103, calling tone components corresponding to all roles in the client, converting the dialogue information of all the roles into corresponding dialogue audios and broadcasting the dialogue audios.

The tone component set comprising a plurality of tone components can be stored locally at the client, so that after the tone components corresponding to all roles in the dialog novel are determined, the voice conversion processing can be carried out directly by calling the local tone components at the client. And calling tone color components corresponding to all roles in the client, converting the dialogue information of all roles in a text form into dialogue audio and performing voice broadcast, so that a book listening function is realized, and a first user can conveniently acquire the content of the dialogue novel in a listening and reading mode.

By using the reading processing method of the dialog novel provided by the embodiment, when the user selects to use the listening and reading mode, the voice conversion and broadcasting of the dialog information can be performed by calling the corresponding tone color component built in the client for each role, so that not only is the listening and reading function realized, the user can conveniently acquire the content of the dialog novel through the listening and reading mode, but also the audio automatic broadcasting of the dialog novel can be performed based on different tone colors, the listening and reading effects of the dialog communication of a plurality of roles are realized, the user can conveniently distinguish the roles from the hearing in the listening and reading process, and better listening and reading experience is obtained.

Example two

Fig. 2a is a flowchart illustrating a reading processing method of a dialog novel according to a second embodiment of the present invention, and as shown in fig. 2a, the method includes the following steps:

in step S201, a reading mode selection operation performed by the first user in the dialog novel reading interface is detected.

The method may be performed by a client of the conversation novel. For an ordinary user, the client provides a reading function of the dialogue novel for the ordinary user, wherein the client can comprise a dialogue novel reading interface, the dialogue novel reading interface belongs to an interface corresponding to the reading function, when the user uses the reading function of the client, the user is a first user, the client presents the dialogue novel reading interface, and the first user can read the dialogue novel in the dialogue novel reading interface. Specifically, a plurality of reading modes are provided for the dialog novel in the client, which can include a listening and reading mode and a click and reading mode, and the click and reading mode can be further subdivided into a user click and reading mode in which dialog information needs to be presented by a first user click and an automatic click and reading mode in which dialog information is automatically presented one by one without the first user click.

The dialog novel reading interface may have a reading mode selection control, and when the first user wants to select the reading mode, the first user may perform a reading mode selection operation in the dialog novel reading interface by clicking the reading mode selection control, and the like, and then in step S201, the client detects the reading mode selection operation performed by the first user in the dialog novel reading interface. The style of the reading mode selection control can be set by those skilled in the art according to actual needs, and is not limited specifically here.

Step S202, when the target mode corresponding to the reading mode selection operation is the listening and reading mode, determining tone color components corresponding to each role in the dialog novel.

For an ordinary user, the client can provide the reading function of the dialogue novel and the authoring function of the dialogue novel, so that everyone can conveniently author the dialogue novel through the client. That is, each user can create his or her own dialog novel and also read the dialog novel released by the other users. Specifically, the client includes, in addition to a dialog novel reading interface, a dialog authoring interface and a dialog role management interface, where the dialog authoring interface and the dialog role management interface belong to interfaces corresponding to authoring functions. When the user uses the authoring function of the client, the user is a second user, the client presents a dialog authoring interface or a dialog role management interface, the second user can set dialog information of each role and configure tone configuration information and the like of each role in the dialog authoring interface, and the second user can also configure role information and the like of each role in the dialog role management interface.

In an optional implementation manner, in the process of determining the tone color component corresponding to each role in the dialog novel, the determination may be performed according to the tone color configuration information of each role configured by the second user, where the second user may configure the tone color configuration information for each role in the dialog authoring interface. Specifically, tone color configuration information configured by the second user for each role of the dialog novel is obtained, and tone color components corresponding to each role are determined according to the tone color configuration information. The tone color configuration information may include information such as a tone color name corresponding to each character. The second user can conveniently and autonomously configure the tone color configuration information for the created roles in the dialog creation interface, and the tone color components corresponding to the roles determined according to the tone color configuration information can better meet the role setting of the second user for the roles.

Fig. 2b is a schematic diagram of a dialog authoring interface, as shown in fig. 2b, the dialog authoring interface includes a display area 21 and a tone configuration area 22, dialog information of each character authored by the second user is displayed in the display area 21, and the second user can continue to input new dialog information in the display area 21. Where a and B refer to two different characters and X represents a character in the dialog information. All characters included in the dialog novel created by the second user and a plurality of different alternative tone color names are displayed in the tone color configuration area 22, and the second user can configure the tone color name corresponding to each character. As shown in fig. 2B, the characters in the dialog novel include a and B, and the selectable tone names include mature male tone, mature female tone and child tone, as shown in the tone color configuration area 22, wherein the dashed arrow lines in fig. 2B indicate that the corresponding relationship between the characters and the tone names is configured, the tone name corresponding to the character a is mature male tone, and the tone name corresponding to the character B is mature female tone.

In another optional implementation manner, in the process of determining the tone color component corresponding to each role in the dialog novel, the client may automatically allocate the tone color component according to the role information of each role configured by the second user, where the second user may configure the role information for each role in the dialog role management interface. Specifically, the role information configured by the second user for each role of the dialog novel is obtained, then the role information of each role is analyzed to obtain a role label of each role, then the role label of each role is matched with each tone component stored in a tone component set of the client, and the tone component corresponding to each role is determined. Through the processing mode, the client can automatically and intelligently allocate the corresponding tone components to each role conveniently according to the role information of each role, a second user does not need to configure tone configuration information by himself or a server does not need to perform self-adaptive allocation, the automatic allocation of the tone components is realized, and the data processing amount of the server is effectively reduced.

Wherein the role information comprises one or more of the following information: role name, role age, role gender, role avatar, role character. The role information may also include other role-related information, which is not limited herein. The second user can configure the display position of each character in the dialog novel, the character name, the character age, the character gender, the character head portrait, the character personality and the like of each character in the dialog character management interface. Fig. 2c shows a schematic diagram of a dialog character management interface, as shown in fig. 2c, the second user configures the character a as a left-side character and the character B as a right-side character, that is, the dialog information of the character a is displayed at a left position in the dialog novel reading interface and the dialog information of the character B is displayed at a right position in the dialog novel reading interface. In addition, the second user can also configure information such as character names, ages, sexes, and the like of the character a and the character B.

After the role information configured for each role of the dialog novel by the second user is acquired, the role information of each role can be analyzed to obtain the role label of each role. The character label of each character can be obtained by performing text analysis on the character name, the character age, the character gender and/or the character personality and performing image recognition on the character head image. For example, the resulting character labels for a character may include labels "female", "age 20", "gentle", and so on. The client locally stores a tone component set comprising a plurality of tone components, and after the role labels of all roles are obtained, the role labels of all the roles can be matched with all the tone components in the tone component set of the client, so that the tone components corresponding to all the roles are automatically determined. For example, if the character labels of a character include two labels "male" and "age 40", then through the automatic assignment process described above, the determined tone color component corresponding thereto may be a mature male tone color component.

In another optional implementation manner, in the process of determining the tone color component corresponding to each role in the dialog novel, the role information of each role configured by the second user on the dialog role management interface may be uploaded to the server, and the server performs automatic allocation according to the role information of each role. Specifically, a tone component allocation request is sent to the server, and tone components corresponding to each role returned by the server are received, wherein the tone components corresponding to each role are allocated by the server according to role information of each role. The server analyzes the role information of each role in the dialog novel to obtain role labels of each role, and matches the role labels of each role with each tone component stored in the tone component set of the server, so as to determine the tone components corresponding to each role. By the processing mode, the server automatically and intelligently allocates the corresponding tone components to each role according to the role information of each role, a second user does not need to configure tone configuration information by himself or a client does not need to perform automatic allocation, adaptive allocation of the tone components is achieved, and data processing amount of the client is effectively reduced.

In this embodiment, the timing of the server determining the tone color component corresponding to each role is not limited. The server may determine after the client sends the request for allocation of the tone color component, or may determine after the second user uploads the dialog novel created by the second user to the server. Specifically, after the second user uploads the created dialog novel to the server, the server extracts the role information of each role configured by the second user from the dialog novel, and automatically allocates the tone components corresponding to each role according to the role information of each role.

And step S203, calling tone color components corresponding to all roles in the client, converting the dialogue information of all the roles into corresponding dialogue audios and broadcasting the dialogue audios.

The method comprises the steps of determining the role to which the current dialog information needing voice conversion processing belongs according to the arrangement sequence of the dialog information of each role in the dialog novel, calling a tone component corresponding to the role in the client, carrying out voice conversion processing on the dialog information, converting the dialog information in a text form into an audio form in real time, obtaining corresponding dialog audio and carrying out voice broadcast, and accordingly realizing automatic audio broadcast of the dialog novel based on different tones. The timbre component may specifically be a tts (text To speech) component having a corresponding timbre, and is capable of converting the dialog information in text form into dialog audio having a corresponding timbre in real time.

Step S204, when the target mode corresponding to the reading mode selection operation is the automatic reading mode, determining the presentation time interval of the dialogue information of each role according to the number of characters contained in the dialogue information of each role.

And when the target mode corresponding to the detected reading mode selection operation is the automatic touch and read mode, indicating that the first user currently wants to use the automatic touch and read mode to read the dialog novel. Considering that the number of characters included in different dialog messages is large or small, if the presentation time interval between adjacent dialog messages is set to a fixed value, no matter how many characters included in the dialog messages presented currently are, the next dialog message will be presented after waiting for the fixed time interval, and it is difficult to meet the reading requirement of the user. Specifically, if the presentation time interval is set to be a shorter time interval, it is likely that the first user has not finished reading the dialog information containing more characters, but the client starts presenting the next dialog information; if the presentation time interval is set to be longer, it is likely that the first user will wait for a period of time to present the next dialog information after reading the dialog information containing fewer characters.

In order to better meet the reading requirement of the user, the present embodiment adaptively determines the presentation time interval of the dialog information of each character according to the number of characters contained in the dialog information of each character.

In an optional implementation manner, a proportional relationship between the number of characters and the presentation time interval is preset, and then for each dialog information, the presentation time interval corresponding to the number of characters of the dialog information may be calculated according to the preset proportional relationship between the number of characters and the presentation time interval, and the calculated presentation time interval is used as the presentation time interval of the dialog information. For example, the proportional relationship between the number of characters and the presentation time interval may be a direct proportional relationship, and specifically may be: if the presentation time interval corresponding to 100 characters is 50 seconds, then if the number of characters included in a certain dialog message is 10, the presentation time interval corresponding to 10 characters is calculated as 5 seconds, and 5 seconds is taken as the presentation time interval of the dialog message.

In another optional implementation manner, an interval mapping relationship between the number of characters and the presentation time interval is preset, and then for each dialog information, a character number interval to which the number of characters of the dialog information belongs may be determined according to the preset interval mapping relationship between the number of characters and the presentation time interval, and the presentation time interval corresponding to the character number interval is used as the presentation time interval of the dialog information. Specifically, a mapping table may be set, in which an interval mapping relationship between each character number interval and the presentation time interval is stored, for example, the presentation time interval corresponding to the character number interval [0, 50] is 5 seconds, the presentation time interval corresponding to the character number interval [50, 100] is 10 seconds, and the like. If the number of characters included in a certain dialog message is 10, 10 characters belong to the character number interval [0, 50], and the presentation time interval corresponding to the character number interval [0, 50] is taken as the presentation time interval of the dialog message, that is, 5 seconds is taken as the presentation time interval of the dialog message.

Those skilled in the art can set the proportional relationship or the interval mapping relationship between the number of characters and the presentation time interval according to actual needs, and is not limited specifically here.

Step S205, presenting the dialog information of each character one by one according to the presentation time interval of the dialog information of each character.

And when the presentation duration of the current dialog information reaches the presentation time interval of the current dialog information, presenting the next dialog information according to the arrangement sequence of the dialog information of each role in the dialog novel, wherein the presentation time interval of the next dialog information is determined in a self-adaptive manner according to the number of characters contained in the next dialog information.

Specifically, the dialog information presented at the lowermost position in the dialog novel reading interface is referred to as current dialog information, the current dialog information is referred to as information 1 for convenience of description, and the dialog information following the information 1 is referred to as information 2, information 3, information 4, and the like in order of the arrangement of the dialog information of each character in the dialog novel. Assuming that the presentation time interval determined according to the number of characters included in the information 1 is 10 seconds, when the presentation time length of the information 1 reaches 10 seconds, the information 2 is presented; assuming that the presentation time interval determined according to the number of characters included in the information 2 is 15 seconds, when the presentation time length of the information 2 reaches 15 seconds, the information 3 will be presented; and by analogy, presenting the dialog information of each role one by one according to the presentation time interval of the dialog information of each role. The processing method can well meet the reading requirement of the user, not only ensures that the user has enough time to read the content of the conversation information, but also avoids the situation that the user waits for a long time to read the next conversation information after reading one conversation information.

And step S206, when the target mode corresponding to the reading mode selection operation is the user click-to-read mode, presenting the dialogue information of each role according to the click operation of the first user in the dialogue novel reading interface.

And when the target mode corresponding to the detected reading mode selection operation is the user click-to-read mode, the fact that the first user wants to read the dialog novel by clicking is described, the click operation executed by the first user in the dialog novel reading interface is detected, and the dialog information of each role is presented according to the click operation. Specifically, the first user performs a click operation, and the client may present a piece of dialog information in response to the click operation.

Step S207, detecting the click frequency of the first user; and if the clicking frequency is greater than the preset frequency, switching the current reading mode from the user click-to-read mode to the automatic click-to-read mode.

In the process that the first user reads the dialog novel in the user click-to-read mode, the click frequency of the first user can be detected, so that whether the first user needs to read in the automatic click-to-read mode or not is identified according to the detected click frequency.

If the detected click frequency is greater than the preset frequency, the fact that the first user has the requirement of reading by using the automatic click-to-read mode is indicated, in this case, the first user does not need to execute reading mode selection operation, and the client automatically switches the current reading mode from the user click-to-read mode to the automatic click-to-read mode so as to automatically switch the first user to a more convenient reading mode and enable the first user to use the automatic click-to-read mode to read. The preset frequency can be set by those skilled in the art according to actual needs. For example, when the preset frequency is set to 10 times per minute, and when the detected click frequency of the first user reaches 10 times per minute, the mode switching mechanism is triggered to switch the current reading mode from the user click reading mode to the automatic click reading mode.

By using the reading processing method of the dialog novel provided by the embodiment, a plurality of reading modes are provided for the user in the client, when the user selects to use the listening and reading mode, the audio of the dialog novel can be automatically broadcasted based on different timbres, the listening and reading effects of the dialog communication of a plurality of roles are realized, and the user can obtain better listening and reading experience; when the user selects to use the automatic click-to-read mode, the presentation time interval of each dialog message can be determined in a self-adaptive manner according to the number of characters contained in each dialog message; when the user selects to use the user click-to-read mode, whether the automatic click-to-read function of the dialog novel is triggered can be determined according to the click frequency of the user. The scheme greatly enriches the reading function of the dialogue novel, can well meet the personalized reading requirement of the user, brings better reading experience for the user and optimizes the reading processing mode of the dialogue novel.

EXAMPLE III

The third embodiment of the present invention provides a nonvolatile storage medium, where the storage medium stores at least one executable instruction, and the executable instruction may execute the method for reading a dialog novel in any method embodiment described above.

The executable instructions may be specifically configured to cause the processor to: detecting reading mode selection operation executed by a first user in a dialog novel reading interface; when the target mode corresponding to the reading mode selection operation is the listening and reading mode, determining tone components corresponding to all roles in the dialogue novel; and calling tone color components corresponding to all roles in the client, converting the dialogue information of all the roles into corresponding dialogue audio and broadcasting.

In an alternative embodiment, the executable instructions further cause the processor to: acquiring tone configuration information configured for each role of the dialog novel by a second user; and determining tone components corresponding to the roles according to the tone configuration information.

In an alternative embodiment, the executable instructions further cause the processor to: acquiring role information configured for each role of the dialog novel by a second user; analyzing the role information of each role to obtain a role label of each role; and matching the role labels of the roles with the tone components stored in the tone component set of the client to determine the tone components corresponding to the roles.

In an alternative embodiment, the executable instructions further cause the processor to: sending a tone component distribution request to a server; and receiving tone color components corresponding to the roles returned by the server, wherein the tone color components corresponding to the roles are obtained by distributing the server according to the role information of the roles.

In an alternative embodiment, the role information includes one or more of the following: role name, role age, role gender, role avatar, role character.

In an alternative embodiment, the executable instructions further cause the processor to: when the target mode corresponding to the reading mode selection operation is the automatic reading mode, determining the presentation time interval of the dialogue information of each role according to the number of characters contained in the dialogue information of each role; and presenting the dialog information of each character one by one according to the presentation time interval of the dialog information of each character.

In an alternative embodiment, the executable instructions further cause the processor to: and aiming at each dialog information, calculating the presentation time interval corresponding to the character number of the dialog information as the presentation time interval of the dialog information according to the preset proportional relation between the character number and the presentation time interval.

In an alternative embodiment, the executable instructions further cause the processor to: and aiming at each dialog message, determining a character number interval to which the character number of the dialog message belongs according to a preset interval mapping relation between the character number and the presentation time interval, and taking the presentation time interval corresponding to the character number interval as the presentation time interval of the dialog message.

In an alternative embodiment, the executable instructions further cause the processor to: and when the presentation time length of the current dialog information reaches the presentation time interval of the current dialog information, presenting the next dialog information according to the arrangement sequence of the dialog information of each role in the dialog novel.

In an alternative embodiment, the executable instructions further cause the processor to: and when the target mode corresponding to the reading mode selection operation is the user click-to-read mode, presenting the dialogue information of each role according to the click operation of the first user in the dialogue novel reading interface.

In an alternative embodiment, the executable instructions further cause the processor to: detecting the click frequency of a first user; and if the clicking frequency is greater than the preset frequency, switching the current reading mode from the user click-to-read mode to the automatic click-to-read mode.

Example four

Fig. 3 is a schematic structural diagram of a computing device according to a fourth embodiment of the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the computing device.

As shown in fig. 3, the computing device may include: a processor (processor)302, a communication Interface 304, a memory 306, and a communication bus 308.

Wherein:

the processor 302, communication interface 304, and memory 306 communicate with each other via a communication bus 308.

A communication interface 304 for communicating with network elements of other devices, such as clients or other servers.

The processor 302 is configured to execute the program 310, and may specifically execute the relevant steps in the reading processing method embodiment of the dialog novel.

In particular, program 310 may include program code comprising computer operating instructions.

The processor 302 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement an embodiment of the present invention. The computing device includes one or more processors, which may be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.

And a memory 306 for storing a program 310. Memory 306 may comprise high-speed RAM memory and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.

The program 310 may specifically be configured to cause the processor 302 to perform the following operations: detecting reading mode selection operation executed by a first user in a dialog novel reading interface; when the target mode corresponding to the reading mode selection operation is the listening and reading mode, determining tone components corresponding to all roles in the dialogue novel; and calling tone color components corresponding to all roles in the client, converting the dialogue information of all the roles into corresponding dialogue audio and broadcasting.

In an alternative embodiment, program 310 further causes processor 302 to: acquiring tone configuration information configured for each role of the dialog novel by a second user; and determining tone components corresponding to the roles according to the tone configuration information.

In an alternative embodiment, program 310 further causes processor 302 to: acquiring role information configured for each role of the dialog novel by a second user; analyzing the role information of each role to obtain a role label of each role; and matching the role labels of the roles with the tone components stored in the tone component set of the client to determine the tone components corresponding to the roles.

In an alternative embodiment, program 310 further causes processor 302 to: sending a tone component distribution request to a server; and receiving tone color components corresponding to the roles returned by the server, wherein the tone color components corresponding to the roles are obtained by distributing the server according to the role information of the roles.

In an alternative embodiment, the role information includes one or more of the following: role name, role age, role gender, role avatar, role character.

In an alternative embodiment, program 310 further causes processor 302 to: when the target mode corresponding to the reading mode selection operation is the automatic reading mode, determining the presentation time interval of the dialogue information of each role according to the number of characters contained in the dialogue information of each role; and presenting the dialog information of each character one by one according to the presentation time interval of the dialog information of each character.

In an alternative embodiment, program 310 further causes processor 302 to: and aiming at each dialog information, calculating the presentation time interval corresponding to the character number of the dialog information as the presentation time interval of the dialog information according to the preset proportional relation between the character number and the presentation time interval.

In an alternative embodiment, program 310 further causes processor 302 to: and aiming at each dialog message, determining a character number interval to which the character number of the dialog message belongs according to a preset interval mapping relation between the character number and the presentation time interval, and taking the presentation time interval corresponding to the character number interval as the presentation time interval of the dialog message.

In an alternative embodiment, program 310 further causes processor 302 to: and when the presentation time length of the current dialog information reaches the presentation time interval of the current dialog information, presenting the next dialog information according to the arrangement sequence of the dialog information of each role in the dialog novel.

In an alternative embodiment, program 310 further causes processor 302 to: and when the target mode corresponding to the reading mode selection operation is the user click-to-read mode, presenting the dialogue information of each role according to the click operation of the first user in the dialogue novel reading interface.

In an alternative embodiment, program 310 further causes processor 302 to: detecting the click frequency of a first user; and if the clicking frequency is greater than the preset frequency, switching the current reading mode from the user click-to-read mode to the automatic click-to-read mode.

For specific implementation of each step in the program 310, reference may be made to the description corresponding to the corresponding step in the above reading processing embodiment of the dialog novel, which is not described herein again. It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the above-described device may refer to the corresponding process description in the foregoing method embodiment, and is not described herein again.

Through the scheme that this embodiment provided, not only realized listening to the book function for the user can acquire the content of dialogue novel through listening to read the mode conveniently, but also can carry out the audio frequency of dialogue novel and report automatically based on different tone qualities, realizes the effect of listening to read that a plurality of roles dialogue communicate, so that the user can listen to read the in-process from the sense of hearing to carry out the role differentiation conveniently, obtains the experience of listening to read of preferred.

The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.

In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.

Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.

Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.

Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the claims, any of the claimed embodiments may be used in any combination.

It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.

The invention discloses: A1. a method of reading a dialog novel, comprising:

detecting reading mode selection operation executed by a first user in a dialog novel reading interface;

when the target mode corresponding to the reading mode selection operation is an listening and reading mode, determining tone components corresponding to all roles in the dialogue novel;

and calling tone color components corresponding to all roles in the client, converting the dialogue information of all the roles into corresponding dialogue audio and broadcasting.

A2. The method according to a1, wherein the determining the tone color components corresponding to the characters in the dialog novel includes:

acquiring tone configuration information configured for each role of the dialog novel by a second user;

and determining tone components corresponding to the roles according to the tone configuration information.

A3. The method according to a1, wherein the determining the tone color components corresponding to the characters in the dialog novel includes:

acquiring role information configured for each role of the dialog novel by a second user;

analyzing the role information of each role to obtain a role label of each role;

and matching the role labels of the roles with the tone components stored in the tone component set of the client, and determining the tone components corresponding to the roles.

A4. The method according to a1, wherein the determining the tone color components corresponding to the characters in the dialog novel includes:

sending a tone component distribution request to a server;

and receiving tone color components corresponding to the roles returned by the server, wherein the tone color components corresponding to the roles are obtained by distributing the server according to the role information of the roles.

A5. The method of A3 or a4, the persona information comprising one or more of the following information: role name, role age, role gender, role avatar, role character.

A6. The method of any of A1-A5, after the detecting a reading mode selection operation performed by a first user in a dialog novel reading interface, the method further comprising:

when the target mode corresponding to the reading mode selection operation is the automatic click-to-read mode, determining the presentation time interval of the dialogue information of each role according to the number of characters contained in the dialogue information of each role;

and presenting the dialog information of each character one by one according to the presentation time interval of the dialog information of each character.

A7. The method according to a6, wherein the determining the presentation time interval of the dialog information of each character according to the number of characters included in the dialog information of each character includes:

and aiming at each dialog information, calculating the presentation time interval corresponding to the character number of the dialog information as the presentation time interval of the dialog information according to the preset proportional relation between the character number and the presentation time interval.

A8. The method according to a6, wherein the determining the presentation time interval of the dialog information of each character according to the number of characters included in the dialog information of each character includes:

and for each dialog message, determining a character number interval to which the character number of the dialog message belongs according to a preset interval mapping relation between the character number and the presentation time interval, and taking the presentation time interval corresponding to the character number interval as the presentation time interval of the dialog message.

A9. The method according to any one of a6-A8, wherein presenting the dialog information of each character one by one according to the presentation time interval of the dialog information of each character comprises:

and when the presentation duration of the current dialog information reaches the presentation time interval of the current dialog information, presenting the next dialog information according to the arrangement sequence of the dialog information of each role in the dialog novel.

A10. The method of any of A1-A9, after the detecting a reading mode selection operation performed by a first user in a dialog novel reading interface, the method further comprising:

and when the target mode corresponding to the reading mode selection operation is a user click-to-read mode, presenting the dialogue information of each role according to the click operation of the first user in the dialogue novel reading interface.

A11. The method of a10, after presenting the dialog information of each character according to the click operation of the first user in the dialog novel reading interface, the method further comprising:

detecting the click frequency of a first user;

and if the click frequency is greater than the preset frequency, switching the current reading mode from the user click-to-read mode to the automatic click-to-read mode.

B12. A computing device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;

the memory is configured to store at least one executable instruction that causes the processor to:

detecting reading mode selection operation executed by a first user in a dialog novel reading interface;

when the target mode corresponding to the reading mode selection operation is an listening and reading mode, determining tone components corresponding to all roles in the dialogue novel;

and calling tone color components corresponding to all roles in the client, converting the dialogue information of all the roles into corresponding dialogue audio and broadcasting.

B13. The computing device of B12, the executable instructions further cause the processor to:

acquiring tone configuration information configured for each role of the dialog novel by a second user;

and determining tone components corresponding to the roles according to the tone configuration information.

B14. The computing device of B12, the executable instructions further cause the processor to:

acquiring role information configured for each role of the dialog novel by a second user;

analyzing the role information of each role to obtain a role label of each role;

and matching the role labels of the roles with the tone components stored in the tone component set of the client, and determining the tone components corresponding to the roles.

B15. The computing device of B12, the executable instructions further cause the processor to:

sending a tone component distribution request to a server;

and receiving tone color components corresponding to the roles returned by the server, wherein the tone color components corresponding to the roles are obtained by distributing the server according to the role information of the roles.

B16. The computing device of B14 or B15, the role information comprising one or more of the following information: role name, role age, role gender, role avatar, role character.

B17. The computing device of any of B12-B16, the executable instructions further cause the processor to:

when the target mode corresponding to the reading mode selection operation is the automatic click-to-read mode, determining the presentation time interval of the dialogue information of each role according to the number of characters contained in the dialogue information of each role;

and presenting the dialog information of each character one by one according to the presentation time interval of the dialog information of each character.

B18. The computing device of B17, the executable instructions further cause the processor to:

and aiming at each dialog information, calculating the presentation time interval corresponding to the character number of the dialog information as the presentation time interval of the dialog information according to the preset proportional relation between the character number and the presentation time interval.

B19. The computing device of B17, the executable instructions further cause the processor to:

and for each dialog message, determining a character number interval to which the character number of the dialog message belongs according to a preset interval mapping relation between the character number and the presentation time interval, and taking the presentation time interval corresponding to the character number interval as the presentation time interval of the dialog message.

B20. The computing device of any of B17-B19, the executable instructions further cause the processor to:

and when the presentation duration of the current dialog information reaches the presentation time interval of the current dialog information, presenting the next dialog information according to the arrangement sequence of the dialog information of each role in the dialog novel.

B21. The computing device of any of B12-B20, the executable instructions further cause the processor to:

and when the target mode corresponding to the reading mode selection operation is a user click-to-read mode, presenting the dialogue information of each role according to the click operation of the first user in the dialogue novel reading interface.

B22. The computing device of B21, the executable instructions further cause the processor to:

detecting the click frequency of a first user;

and if the click frequency is greater than the preset frequency, switching the current reading mode from the user click-to-read mode to the automatic click-to-read mode.

C23. A computer storage medium having stored therein at least one executable instruction for causing a processor to perform operations corresponding to the method of reading a dialog novel according to any one of a1-a 11.

19页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种外语教学发音声量监控装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!