CN113835858A - Control method of electronic book, electronic equipment and storage medium - Google Patents

Control method of electronic book, electronic equipment and storage medium Download PDF

Info

Publication number
CN113835858A
CN113835858A CN202111109222.3A CN202111109222A CN113835858A CN 113835858 A CN113835858 A CN 113835858A CN 202111109222 A CN202111109222 A CN 202111109222A CN 113835858 A CN113835858 A CN 113835858A
Authority
CN
China
Prior art keywords
electronic book
module
request
target
electronic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111109222.3A
Other languages
Chinese (zh)
Inventor
莫焕彬
孙上斌
于刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ireader Technology Co Ltd
Zhangyue Technology Co Ltd
Original Assignee
Zhangyue Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhangyue Technology Co Ltd filed Critical Zhangyue Technology Co Ltd
Priority to CN202111109222.3A priority Critical patent/CN113835858A/en
Publication of CN113835858A publication Critical patent/CN113835858A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention relates to a control method of an electronic book, electronic equipment and a storage medium. The control method of the electronic book comprises the following steps: receiving a target control request for at least one electronic book, wherein the target control request comprises a display request and/or a broadcast request; determining a target function module corresponding to the target control request, wherein the target function module comprises at least one function module which can be independently called by a process; and creating at least one process, calling a corresponding functional module in the target functional module through each process, and executing corresponding control operation on at least one electronic book, wherein the control operation comprises display operation and/or broadcast operation. According to the invention, the function modules of the electronic book can be independently called, so that a plurality of electronic books can be opened at the same time, and when one electronic book is controlled, compared with the related technology, the function modules are not required to be called additionally through other function modules, so that the resource waste is avoided, and the control efficiency and the control performance of the electronic book are improved.

Description

Control method of electronic book, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of electronic book technologies, and in particular, to a control method for an electronic book, an electronic device, and a storage medium.
Background
With the rapid development of internet technology, electronic books are increasingly used and paid attention.
At present, an application program of an electronic book only supports opening one electronic book for browsing and/or listening to the book, when another electronic book is required to be opened, the current electronic book needs to be closed first, and then the other electronic book needs to be opened for browsing and/or listening to the book, so that the two electronic books cannot be opened simultaneously; in addition, in the related art, when one electronic book is opened to listen to the book, the operation must be performed through the user interface module, which causes resource waste.
Disclosure of Invention
In order to solve the technical problem that resources are wasted when electronic books cannot be opened in parallel or are opened, the disclosure provides a control method of an electronic book, an electronic device and a storage medium, so as to open at least two electronic books simultaneously and avoid resource waste.
In a first aspect, an embodiment of the present disclosure provides a method for controlling an electronic book, including:
receiving a target control request for at least one electronic book, wherein the target control request comprises a display request and/or a broadcast request;
determining a target function module corresponding to the target control request, wherein the target function module comprises at least one function module which can be independently called by a process;
and creating at least one process, calling a corresponding functional module in the target functional module through each process, and executing corresponding control operation on the at least one electronic book, wherein the control operation comprises display operation and/or broadcast operation.
In a second aspect, an embodiment of the present disclosure provides an electronic device, including:
a processor;
a memory for storing executable instructions;
wherein the processor is configured to read the executable instructions from the memory and execute the executable instructions to perform the following operations:
receiving a target control request for at least one electronic book, wherein the target control request comprises a display request and/or a broadcast request;
determining a target function module corresponding to the target control request, wherein the target function module comprises at least one function module which can be independently called by a process;
and creating at least one process, calling a corresponding functional module in the target functional module through each process, and executing corresponding control operation on the at least one electronic book, wherein the control operation comprises display operation and/or broadcast operation.
In a third aspect, the present disclosure provides a computer-readable storage medium storing a computer program, which, when executed by a processor, causes the processor to implement the method for controlling an electronic book of the first aspect.
One of the above technical solutions has the following advantages or beneficial effects:
according to the control method, the electronic device and the storage medium of the electronic book, a target control request for at least one electronic book can be received, the target control request comprises a display request and/or a broadcast request, a target function module corresponding to the target control request is determined, the target function module comprises at least one function module capable of being independently called by a process, at least one process is created, the corresponding function module in the target function module is called through each process, corresponding control operation is executed on the at least one electronic book, and the control operation comprises display operation and/or broadcast operation. According to the electronic book control method and device, the functional modules of the electronic book can be set to be capable of being independently called, the corresponding functional modules can be called according to the control request creation process of the user for at least one electronic book to achieve control operation, and therefore multiple electronic books can be simultaneously opened.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
Fig. 1 is a schematic flowchart of a method for controlling an electronic book according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a control system of an electronic book in the related art according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a control system of an electronic book according to an embodiment of the present disclosure;
fig. 4 is a schematic flowchart of another electronic book control method provided in the embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
At present, an application program of an electronic book only supports opening one electronic book for browsing and/or listening to the book, when another electronic book is required to be opened, the current electronic book needs to be closed first, and then the other electronic book is opened for browsing and/or listening to the book, so that two electronic books cannot be opened simultaneously, for example, when a link of the other book exists in the current electronic book, the current electronic book is closed when a jump is passed, and the two electronic books cannot be opened simultaneously; or, when listening to a current electronic book, the user cannot watch another electronic book while listening to the current electronic book, and must first close the current electronic book and then open the other electronic book. In addition, in the related art, when one electronic book is opened to listen to the book, the operation must be performed through the user interface module, which causes resource waste.
In order to solve the above problem, embodiments of the present disclosure provide a method for controlling an electronic book, which is described below with reference to specific embodiments.
Fig. 1 is a flowchart illustrating a method for controlling an electronic book according to an embodiment of the present disclosure, where the method may be performed by a control apparatus of the electronic book, where the apparatus may be implemented by software and/or hardware, and may be generally integrated in an electronic device. As shown in fig. 1, the method includes:
step 101, receiving a target control request for at least one electronic book, wherein the target control request comprises a display request and/or a broadcast request.
The electronic book may be an electronic version of book that can be read or listened to by an installed application program in the electronic device, and the format of the electronic book may include multiple formats, and is not limited. The target control request may be a request for operating an electronic book, and in the embodiment of the present disclosure, the target control request may include a presentation request for presenting the electronic book so that a user can read or read the book and/or a talk request for talking the electronic book by voice so that the user can listen to the book.
In the embodiment of the present disclosure, the control device of the electronic book may detect an operation of a user through a preset detection program or algorithm, and after receiving a trigger operation of the user on at least one electronic book, may receive a target control request for the at least one electronic book, where the trigger operation may include a gesture control operation, a voice control operation, and the like, and specifically, the specific and non-limiting conditions are that different target control requests may correspond to different trigger operations.
And 102, determining a target function module corresponding to the target control request, wherein the target function module comprises at least one function module which can be independently called by a process.
The target function module may be understood as a general term of a function module that controls an operation of the electronic book, and corresponds to the target control request. The target function module may include at least one function module, and the function module may be a module that can be independently called by a control process of the system through an adjustment architecture in the embodiment of the present disclosure, and can implement a part of functions controlled by the electronic book.
In an embodiment of the present disclosure, the target function module includes an engine module and a user interface module, and determining the target function module corresponding to the target control request may include: when the target control request is a display request, the target function module is a user interface module; and when the target control request is a broadcasting request, the target function module is an engine module.
The engine module may be a functional module for acquiring and processing text content of the electronic book, the processing includes typesetting and rendering, the electronic book can be played by acquiring the text content of the electronic book, the user interface module may be a functional module for controlling display of the electronic book, and the engine module may interact with the functional module to acquire the text content of the electronic book. When the target control request is a display request, the corresponding function module is a user interface module, namely the target function module comprises the user interface module; when the target control request is a broadcasting request, the corresponding function module is an engine module, that is, the target function module includes the engine module.
The embodiment of the disclosure can perform structural adjustment on a control system of an electronic book in an electronic device in advance, wherein the control system of the electronic book comprises the functional module. Fig. 2 is a schematic structural diagram of a control system of an electronic book in the related art according to an embodiment of the present disclosure, fig. 3 is a schematic structural diagram of a control system of an electronic book according to an embodiment of the present disclosure, and fig. 2 and fig. 3 respectively show a structure of a control system of an electronic book in the related art and a structure of a control system of an electronic book in an embodiment of the present disclosure.
As shown in fig. 2, a user may invoke a user interface module 202 through a reading system layer 201 in an electronic book control system 200 to control a plurality of underlying functional modules of an electronic book, such as an engine module 203, a page turner, and a listening book in the figure, and a parsing module and a typesetting module are further below the engine module 203, a gesture processing module is further below the page turner, and a gesture processing module and a text highlighting module are further below the listening book.
As shown in fig. 3, compared to fig. 2, the engine module 303 and the user interface module 304 are configured as horizontal functional modules, that is, can be called independently by the system layer, and the user can call the engine module 303, the modules and the voice conversion module at the lower layers of the engine module 303 through the book listening system layer 301, so as to realize the broadcasting and speaking of the electronic book; a user can call the user interface module 304 and the modules at the lower layer thereof through the reading system layer 302 to realize the display of the electronic book; since the engine module 303 can obtain the text content of the electronic book, the user interface module 304 may interact with the engine module 303 to obtain the text content of the electronic book before the electronic book is displayed for subsequent display.
Step 103, creating at least one process, calling a corresponding functional module in the target functional module through each process, and executing corresponding control operation on at least one electronic book, wherein the control operation comprises a display operation and/or a broadcast operation.
The process may be a one-time operation activity of a program in the electronic device with respect to data, and is a basic unit for resource allocation and scheduling by the system, and the electronic device may schedule resources, functional modules, and the like to implement required operations through the process. The control operation may be an operation corresponding to the above-described target control request.
Specifically, after determining a target function module corresponding to a target control request, the control device of the electronic book creates a process for each request in the target control request, and invokes the corresponding function module to execute a corresponding control operation on at least one electronic book through each process, that is, each process can implement an independent control operation on one electronic book. For example, the control device of the electronic book may implement a display operation and/or a broadcast operation on one electronic book, may also implement a simultaneous display operation on two or more electronic books, and the like.
Referring to fig. 2 and fig. 3, with the functional modules in the control system of the electronic book in fig. 2, when an electronic book is opened for speaking, the engine module 203 must be called through the user interface module 202, which results in waste of resources; by using the function modules in the control system of the electronic book in fig. 3, the engine module 303 and the user interface module 304 can be respectively called by creating a plurality of processes, so as to realize control operation on the electronic book, further realize parallel opening of two or more electronic books, and avoid resource waste when one electronic book is played.
In an embodiment of the present disclosure, when the target control request includes a presentation request for two electronic books, calling a corresponding function module in the target function module through each process, and performing a corresponding control operation on at least one electronic book, may include: the method comprises the steps of respectively calling a user interface module through two processes to create two user interface examples, and simultaneously displaying display interfaces of two electronic books on a display screen through the two user interface examples in a split screen mode, or displaying the display interface of a first electronic book in the two electronic books on the display screen and starting the display interface of a second electronic book in the two electronic books on a background.
The user interface instance can be an object instance which is created by a process calling the user interface module and used for realizing the functions of the user interface module. Specifically, when the target control request includes a display request for two electronic books, the control device of the electronic books may correspondingly create two processes, and respectively invoke the user interface module to create two user interface instances, and the display interfaces of the two electronic books may be simultaneously displayed on the display screen in a split screen manner through the two user interface instances, that is, the display interfaces of the two electronic books may be displayed in a size of half a screen, and may be split left and right or split up and down, specifically, the present invention is not limited; or, the display interface of the first electronic book is displayed on the display screen through one user interface instance, and the display interface of the second electronic book is started in the background through another user interface instance, but is not displayed.
Optionally, after the display interface of the first electronic book of the two electronic books is displayed on the display screen and the display interface of the second electronic book of the two electronic books is started in the background, the control method of the electronic books may further include: receiving a switching request for a first electronic book; and switching the display interface of the first electronic book to the display interface of the second electronic book on the display screen through two user interface instances, and keeping starting the display interface of the first electronic book in the background.
The switching request may be a request for switching the electronic book on the foreground display screen to the background display. Specifically, after the control device of the electronic book displays the display interface of the first electronic book on the display screen and starts the display interface of the second electronic book in the background, it may be determined that the switching request is received after a preset trigger operation of the user on the first electronic book is received, the display interface of the second electronic book in the background is switched and displayed on the display screen through two user interface instances, and the display interface of the first electronic book is switched to the background and kept started. The preset triggering operation may be a triggering operation on a switch key in a display interface of the first electronic book or a prompt message of the second electronic book, and is specifically set according to an actual situation.
Optionally, after the corresponding control operation is performed on at least one electronic book, the method for controlling an electronic book may further include: receiving a request for broadcasting a third electronic book; and creating a new process, calling the engine module through the new process, and performing broadcasting operation on the third electronic book in the background.
Specifically, after the two electronic books are displayed, the control device of the electronic book may further receive a request for broadcasting a third electronic book, at this time, a new process may be created based on the two processes, the engine module may be called by the new process to create an engine instance, and the third electronic book may be broadcasted by the engine instance on the background.
In the above scheme, not only can two electronic books be shown simultaneously to can switch the electronic book of show when proscenium and backstage show the electronic book respectively, can also realize the operation of speaking of broadcasting of new electronic book, can experience a plurality of electronic books simultaneously, satisfy user's actual demand more, and then promote user's electronic book and experience the effect.
According to the control method of the electronic book, the target control request of at least one electronic book can be received, the target control request comprises a display request and/or a broadcast request, the target function module corresponding to the target control request is determined, the target function module comprises at least one function module capable of being independently called by a process, at least one process is created, the corresponding function module in the target function module is called through each process, corresponding control operation is executed on the at least one electronic book, and the control operation comprises display operation and/or broadcast operation. According to the electronic book control method and device, the functional modules of the electronic book can be set to be capable of being independently called, the corresponding functional modules can be called according to the control request creation process of the user for at least one electronic book to achieve control operation, and therefore multiple electronic books can be simultaneously opened.
Exemplarily, fig. 4 is a schematic flowchart of a control method of another electronic book provided by an embodiment of the present disclosure, as shown in fig. 4, where when a target control request includes a display request and a talk request for a fourth electronic book, a corresponding function module in a target function module is called by each process, and a corresponding control operation is performed on at least one electronic book, and the method may include the following steps:
step 401, an engine module is called through a first process to create an engine instance, and a talk operation is performed on a fourth electronic book through the engine instance in the background.
The engine instance can be an object instance created by the process call engine module and used for realizing the functions of the engine module.
In this disclosure, performing, by the engine instance, a talk operation on the fourth electronic book in the background may include: and acquiring the text content of the fourth electronic book through an engine example, converting the text content of the fourth electronic book into voice content by adopting an external voice conversion module, and then playing the voice content in a background.
The voice conversion module may be a functional module for converting Text contents of the electronic book into voice contents by using a Text To Speech (TTS) technology, and may be a module outside a control system of the electronic book. The control device of the electronic book responds to a speaking request of a fourth electronic book, an engine instance can be created by calling an engine module through a first process, text content of the fourth electronic book can be obtained through the engine instance, then the text content of the fourth electronic book can be sent to a voice conversion module, the voice conversion module can return to the engine instance after converting the text content of the fourth electronic book into voice content, and the engine instance can play the voice content in a background after receiving the voice content.
Step 402, calling a user interface module through a second process to create a user interface instance, and displaying a display interface of the fourth electronic book on the display screen through the user interface instance.
In the embodiment of the present disclosure, the displaying interface for displaying the fourth electronic book on the display screen through the user interface instance may include: and acquiring the text content of the fourth electronic book from the engine instance of the engine module through the user interface instance, and displaying the text content of the fourth electronic book on the display screen.
The control device of the electronic book responds to the display request of the fourth electronic book, can call the user interface module to create a user interface instance through the second process, and interacts with the engine instance through the user interface instance to obtain the text content of the fourth electronic book, and then displays the text content of the fourth electronic book on the display screen.
In some embodiments, after performing the corresponding control operation on at least one electronic book, the method for controlling the electronic book may further include: receiving a first display request for a fifth electronic book, wherein the first display request is used for displaying the fifth electronic book and running a fourth electronic book on a background; creating a third process, calling a user interface module through the third process, and displaying a display interface of the fifth electronic book on the display screen; and keeping starting a display interface of the fourth electronic book and playing and speaking the fourth electronic book in the background through the engine instance of the first process and the user interface instance of the second process.
After the background performs a broadcast operation on the fourth electronic book and displays the fourth electronic book on the display screen, the control device of the electronic book may receive a first display request for the fifth electronic book triggered by a user, create a third process, and call the user interface module through the third process to replace the display interface of the fourth electronic book with the display interface of the fifth electronic book on the display screen; at this time, the user does not want to close the fourth electronic book, and the starting and the broadcasting operation of the presentation interface of the fourth electronic book can be maintained in the background through the engine instance of the first process and the user interface instance of the second process.
In some embodiments, after performing the corresponding control operation on at least one electronic book, the method for controlling the electronic book may further include: receiving a second display request for the sixth electronic book, wherein the second display request is used for displaying the sixth electronic book and closing the fourth electronic book; closing the first process and the second process to close the display interface of the fourth electronic book and stop playing the fourth electronic book; and creating a fourth process, calling the user interface module through the fourth process, and displaying a display interface of the sixth electronic book on the display screen.
After the background performs a speaking operation on the fourth electronic book and displays the fourth electronic book on the display screen, the control device of the electronic book may further receive a second display request for the sixth electronic book triggered by the user, and since the user wants to turn off the fourth electronic book at this time, the first process and the second process may be turned off at this time, so as to turn off the display interface of the fourth electronic book and stop the speaking of the fourth electronic book; and a fourth process can be created, and a display interface of the sixth electronic book is displayed on the display screen by calling the user interface module through the fourth process.
In the scheme, not only can the display and the broadcasting of one electronic book be realized, but also another electronic book can be displayed while the display and the broadcasting of one electronic book are carried out, and the previous electronic book is kept running at the background or closed, so that the control diversity of the electronic book is improved.
In some embodiments, converting, by the voice conversion module, the text content of the fourth electronic book to voice content includes: and performing voice conversion on the text content of the fourth electronic book by using the voice conversion module and taking the text unit as a conversion interval to obtain the voice content comprising a plurality of voice sections, wherein the text unit is a word, a sentence or a section.
The text unit may be a text content with a fixed size, and the text unit in the embodiment of the present disclosure may be a word, a sentence, or a paragraph, and may be specifically set according to an actual situation, where the smaller the text unit is, the higher the real-time performance of subsequent playing of the voice content is. The conversion interval may be understood as a processing period of the voice conversion process.
When the text content of the fourth electronic book is subjected to voice conversion through the voice conversion module, the preset text unit is a conversion interval, the text content of the fourth electronic book is subjected to voice conversion, each text unit can obtain a corresponding voice segment, and finally, the voice content comprising a plurality of voice segments can be obtained.
In some embodiments, the method for controlling an electronic book according to an embodiment of the present disclosure may further include: and establishing a corresponding relation between each text unit in the text content of the fourth electronic book and a time stamp of the text unit in the voice content through a voice conversion module, wherein the time stamp is used for representing a time period of a voice section corresponding to the text unit in the voice content.
The time stamp of a text unit in the speech content may be understood as a time period corresponding to a speech segment of the text unit in the speech content, the time period including a start time and an end time. After the text content of the fourth electronic book is subjected to voice conversion through the voice conversion module to obtain the voice content comprising a plurality of voice sections, the corresponding relation between each text unit and the time stamp of the text unit in the voice content can be established, and the corresponding relation is stored for later use.
In some embodiments, the method for controlling an electronic book according to an embodiment of the present disclosure may further include: when the electronic book played in the background is determined to be the same as the electronic book displayed currently through the user interface instance, acquiring the corresponding relation from the voice conversion module and acquiring a target timestamp corresponding to the current playing progress of the voice content from the engine instance; and determining a target text unit according to the target timestamp and the corresponding relation, and highlighting the target text unit.
The target timestamp corresponding to the current playing progress may be a time period of the voice segment corresponding to the current playing progress in the voice content. Specifically, the control device of the electronic book plays the voice content of the fourth electronic book at the background, and before or during the display interface of the fourth electronic book, whether the electronic book played at the background is the same as the electronic book triggered and displayed by the current user can be judged through the user interface instance, specifically, the judgment can be carried out by comparing the attribute information such as the book name or the identification number of the electronic book, and if the attribute information is the same, the electronic books played at the background and displayed at the foreground are both the fourth electronic book; and then the user interface instance can send an information acquisition request to the voice conversion module and the engine instance, receive the corresponding relation sent by the voice conversion module and a target timestamp corresponding to the current playing progress of the voice content sent by the engine instance, enable the listening book display module by the user interface instance to determine a target text unit according to the target timestamp and the corresponding relation, and prominently display the target text unit.
The book listening display module may include a book listening module and a character highlighting module on a lower layer of the user interface module 304 in fig. 3, after the book listening module determines the target text unit, the target text unit may be highlighted by the character highlighting module, which is only an example, and when the target text unit is highlighted in another manner, the character highlighting module may be replaced by another module.
Optionally, highlighting the target text unit may include: and highlighting the target text unit by adopting a setting mode, wherein the setting mode comprises at least one of highlight, bolding and underlining. The setting mode may be any feasible display mode which can be distinguished from other text contents, and may include at least one of highlighting, bolding, and underlining, for example.
In the above scheme, the voice conversion module not only can carry out voice conversion on the text content of the electronic book, but also can establish the corresponding relation between each text unit in the text content and the corresponding timestamp, and based on the corresponding relation, when the electronic book can be played and played at the background and displayed at the foreground, the text corresponding to the current playing progress in the text content of the electronic book and the voice content is synchronously and prominently displayed, so that a user can intuitively associate the playing and the displaying of the electronic book, the synchronous experience effect of the electronic book is increased, the linkage control effect of the electronic book is improved, and the experience effect of the user on the electronic book is further improved.
Embodiments of the present disclosure also provide an electronic device that may include a processor and a memory, which may be used to store executable instructions. Wherein the processor may be configured to read the executable instructions from the memory and execute the executable instructions to perform the following operations: receiving a target control request for at least one electronic book, wherein the target control request comprises a display request and/or a broadcast request; determining a target function module corresponding to the target control request, wherein the target function module comprises at least one function module which can be independently called by a process; and creating at least one process, calling a corresponding functional module in the target functional module through each process, and executing corresponding control operation on at least one electronic book, wherein the control operation comprises display operation and/or broadcast operation.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. The electronic device 500 in the embodiment of the present invention may be the electronic device described above. It should be further noted that the electronic device 500 shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of the application of the embodiments of the present invention.
The electronic device 500 conventionally includes a processor 510 and a computer program product or computer-readable medium in the form of a memory 520. The memory 520 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. The memory 520 has a storage space 521 for executable instructions (or program code) 5211 for performing any method steps in the control method of the electronic book described above. For example, the storage space 521 for executable instructions may include respective executable instructions 5211 for implementing various steps in the above control method of an electronic book, respectively. The executable instructions may be read from or written to one or more computer program products. These computer program products comprise a program code carrier such as a hard disk, a Compact Disc (CD), a memory card or a floppy disk. Such computer program products are typically portable or fixed storage units. The memory unit may have a memory segment or a memory space or the like arranged similarly to the memory 520 in the electronic device of fig. 5. The executable instructions may be compressed, for example, in a suitable form. Typically, the storage unit comprises executable instructions for performing the steps of the control method of the electronic book according to the present invention, i.e. code that is readable by a processor, such as the processor 510 for example, which when run by the electronic device, causes the electronic device to perform the individual steps of the control method of the electronic book described above.
Embodiments of the present invention further provide a computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the processor executes the method for controlling an electronic book provided in the embodiments of the present invention.
The computer-readable storage medium may take any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may include, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
In an embodiment of the present invention, computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
Various component embodiments of the invention may be implemented in whole or in part in hardware, or in software modules running on one or more processors, or in a combination thereof. It will be appreciated by those skilled in the art that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in a control device of an electronic book according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
According to one or more embodiments of the present disclosure, there is provided a control method of an electronic book, including:
receiving a target control request for at least one electronic book, wherein the target control request comprises a display request and/or a broadcast request;
determining a target function module corresponding to the target control request, wherein the target function module comprises at least one function module which can be independently called by a process;
and creating at least one process, calling a corresponding functional module in the target functional module through each process, and executing corresponding control operation on at least one electronic book, wherein the control operation comprises display operation and/or broadcast operation.
Optionally, the target function module includes an engine module and a user interface module, and the determining of the target function module corresponding to the target control request includes:
when the target control request is a display request, the target function module is a user interface module;
and when the target control request is a broadcasting request, the target function module is an engine module.
Optionally, when the target control request includes a display request for two electronic books, calling a corresponding function module in the target function module through each process, and performing a corresponding control operation on at least one electronic book, including:
the method comprises the steps of respectively calling a user interface module through two processes to create two user interface examples, and simultaneously displaying display interfaces of two electronic books on a display screen through the two user interface examples in a split screen mode, or displaying the display interface of a first electronic book in the two electronic books on the display screen and starting the display interface of a second electronic book in the two electronic books on a background.
Optionally, after the displaying interface of the first electronic book of the two electronic books is displayed on the display screen and the displaying interface of the second electronic book of the two electronic books is started in the background, the method further includes:
receiving a switching request for a first electronic book;
and switching the display interface of the first electronic book to the display interface of the second electronic book on the display screen through two user interface instances, and keeping starting the display interface of the first electronic book in the background.
Optionally, after the corresponding control operation is performed on at least one electronic book, the method further includes:
receiving a request for broadcasting a third electronic book;
and creating a new process, calling the engine module through the new process, and performing broadcasting operation on the third electronic book in the background.
Optionally, when the target control request includes a display request and a broadcast request for a fourth electronic book, calling a corresponding function module in the target function module through each process, and performing a corresponding control operation on at least one electronic book, including:
calling an engine module through a first process to create an engine instance, and executing a broadcasting operation on a fourth electronic book through the engine instance on the background;
and calling the user interface module through the second process to create a user interface example, and displaying a display interface of the fourth electronic book on the display screen through the user interface example.
Optionally, performing, by the engine instance, a talk operation on the fourth electronic book in the background, where the talk operation includes:
and acquiring the text content of the fourth electronic book through an engine example, converting the text content of the fourth electronic book into voice content by adopting an external voice conversion module, and then playing the voice content in a background.
Optionally, the displaying interface for displaying the fourth electronic book on the display screen through the user interface instance includes:
and acquiring the text content of the fourth electronic book from the engine instance of the engine module through the user interface instance, and displaying the text content of the fourth electronic book on the display screen.
Optionally, the converting the text content of the fourth electronic book into the voice content by the voice conversion module includes:
and performing voice conversion on the text content of the fourth electronic book by using the voice conversion module and taking the text unit as a conversion interval to obtain the voice content comprising a plurality of voice sections, wherein the text unit is a word, a sentence or a section.
Optionally, the method further comprises:
and establishing a corresponding relation between each text unit in the text content of the fourth electronic book and a time stamp of the text unit in the voice content through a voice conversion module, wherein the time stamp is used for representing a time period of a voice section corresponding to the text unit in the voice content.
Optionally, the method further comprises:
when the electronic book played in the background is determined to be the same as the electronic book displayed currently through the user interface instance, acquiring the corresponding relation from the voice conversion module and acquiring a target timestamp corresponding to the current playing progress of the voice content from the engine instance;
and determining a target text unit according to the target timestamp and the corresponding relation, and highlighting the target text unit.
Optionally, highlighting the target text unit includes:
and highlighting the target text unit by adopting a setting mode, wherein the setting mode comprises at least one of highlight, bolding and underlining.
Optionally, after the corresponding control operation is performed on at least one electronic book, the method further includes:
receiving a first display request for a fifth electronic book, wherein the first display request is used for displaying the fifth electronic book and running a fourth electronic book on a background;
creating a third process, calling a user interface module through the third process, and displaying a display interface of the fifth electronic book on the display screen;
and keeping starting a display interface of the fourth electronic book and playing and speaking the fourth electronic book in the background through the engine instance of the first process and the user interface instance of the second process.
Optionally, after the corresponding control operation is performed on at least one electronic book, the method further includes:
receiving a second display request for the sixth electronic book, wherein the second display request is used for displaying the sixth electronic book and closing the fourth electronic book;
closing the first process and the second process to close the display interface of the fourth electronic book and stop playing the fourth electronic book;
and creating a fourth process, calling the user interface module through the fourth process, and displaying a display interface of the sixth electronic book on the display screen.
According to one or more embodiments of the present disclosure, an electronic device includes:
a processor;
a memory for storing processor-executable instructions;
a processor to read executable instructions from the memory and execute the instructions to perform the following operations:
receiving a target control request for at least one electronic book, wherein the target control request comprises a display request and/or a broadcast request;
determining a target function module corresponding to the target control request, wherein the target function module comprises at least one function module which can be independently called by a process;
and creating at least one process, calling a corresponding functional module in the target functional module through each process, and executing corresponding control operation on at least one electronic book, wherein the control operation comprises display operation and/or broadcast operation.
Optionally, the target function module includes an engine module and a user interface module, and the executable instructions further cause the processor to:
the determining of the target function module corresponding to the target control request includes:
when the target control request is a display request, the target function module is a user interface module;
and when the target control request is a broadcasting request, the target function module is an engine module.
Optionally, when the target control request includes a display request for two electronic books, a corresponding function module in the target function module is called by each process, and the executable instructions further cause the processor to perform the following operations:
wherein, executing corresponding control operation on at least one electronic book comprises:
the method comprises the steps of respectively calling a user interface module through two processes to create two user interface examples, and simultaneously displaying display interfaces of two electronic books on a display screen through the two user interface examples in a split screen mode, or displaying the display interface of a first electronic book in the two electronic books on the display screen and starting the display interface of a second electronic book in the two electronic books on a background.
Optionally, after the presentation interface of the first of the two electronic books is presented on the display screen and the presentation interface of the second of the two electronic books is started in the background, the executable instructions further cause the processor to:
receiving a switching request for a first electronic book;
and switching the display interface of the first electronic book to the display interface of the second electronic book on the display screen through two user interface instances, and keeping starting the display interface of the first electronic book in the background.
Optionally, after performing the corresponding control operation on the at least one electronic book, the executable instructions further cause the processor to perform the following operations:
receiving a request for broadcasting a third electronic book;
and creating a new process, calling the engine module through the new process, and performing broadcasting operation on the third electronic book in the background.
Optionally, when the target control request includes a display request and a broadcast request for the fourth electronic book, the corresponding function module in the target function module is called by each process, and the executable instructions further cause the processor to perform the following operations:
wherein, executing corresponding control operation on at least one electronic book comprises:
calling an engine module through a first process to create an engine instance, and executing a broadcasting operation on a fourth electronic book through the engine instance on the background;
and calling the user interface module through the second process to create a user interface example, and displaying a display interface of the fourth electronic book on the display screen through the user interface example.
Optionally, the executable instructions further cause the processor to:
wherein, the executing the broadcasting operation on the fourth electronic book in the background by the engine instance comprises:
and acquiring the text content of the fourth electronic book through an engine example, converting the text content of the fourth electronic book into voice content by adopting an external voice conversion module, and then playing the voice content in a background.
Optionally, the executable instructions further cause the processor to:
wherein, the displaying interface for displaying the fourth electronic book on the display screen through the user interface instance comprises:
and acquiring the text content of the fourth electronic book from the engine instance of the engine module through the user interface instance, and displaying the text content of the fourth electronic book on the display screen.
Optionally, the executable instructions further cause the processor to:
wherein, the text content of the fourth electronic book is converted into the voice content through the voice conversion module, including:
and performing voice conversion on the text content of the fourth electronic book by using the voice conversion module and taking the text unit as a conversion interval to obtain the voice content comprising a plurality of voice sections, wherein the text unit is a word, a sentence or a section.
Optionally, the executable instructions further cause the processor to:
and establishing a corresponding relation between each text unit in the text content of the fourth electronic book and a time stamp of the text unit in the voice content through a voice conversion module, and sending the corresponding relation to the user interface instance, wherein the time stamp is used for representing the time period of the voice section corresponding to the text unit in the voice content.
Optionally, the executable instructions further cause the processor to:
when the electronic book played in the background is determined to be the same as the electronic book displayed currently through the user interface instance, acquiring the corresponding relation from the voice conversion module and acquiring a target timestamp corresponding to the current playing progress of the voice content from the engine instance;
and determining a target text unit according to the target timestamp and the corresponding relation, and highlighting the target text unit.
Optionally, the executable instructions further cause the processor to:
wherein highlighting the target text unit comprises:
and highlighting the target text unit by adopting a setting mode, wherein the setting mode comprises at least one of highlight, bolding and underlining.
Optionally, after performing the corresponding control operation on the at least one electronic book, the executable instructions further cause the processor to perform the following operations:
receiving a first display request for a fifth electronic book, wherein the first display request is used for displaying the fifth electronic book and running a fourth electronic book on a background;
creating a third process, calling a user interface module through the third process, and displaying a display interface of the fifth electronic book on the display screen;
and keeping starting a display interface of the fourth electronic book and playing and speaking the fourth electronic book in the background through the engine instance of the first process and the user interface instance of the second process.
Optionally, after performing the corresponding control operation on the at least one electronic book, the executable instructions further cause the processor to perform the following operations:
receiving a second display request for the sixth electronic book, wherein the second display request is used for displaying the sixth electronic book and closing the fourth electronic book;
closing the first process and the second process to close the display interface of the fourth electronic book and stop playing the fourth electronic book;
and creating a fourth process, calling the user interface module through the fourth process, and displaying a display interface of the sixth electronic book on the display screen.
According to one or more embodiments of the present disclosure, there is provided a computer-readable storage medium storing a computer program for executing the control method of an electronic book as any one provided by the present disclosure.
The foregoing description is only exemplary of the preferred embodiments of the invention and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents is encompassed without departing from the spirit of the disclosure. For example, the above features and (but not limited to) features having similar functions disclosed in the present invention are mutually replaced to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the invention. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (10)

1. A method for controlling an electronic book, comprising:
receiving a target control request for at least one electronic book, wherein the target control request comprises a display request and/or a broadcast request;
determining a target function module corresponding to the target control request, wherein the target function module comprises at least one function module which can be independently called by a process;
and creating at least one process, calling a corresponding functional module in the target functional module through each process, and executing corresponding control operation on the at least one electronic book, wherein the control operation comprises display operation and/or broadcast operation.
2. The method of claim 1, wherein the target function module comprises an engine module and a user interface module, and determining the target function module corresponding to the target control request comprises:
when the target control request is a display request, the target function module is a user interface module;
and when the target control request is a broadcasting request, the target function module is an engine module.
3. The method according to claim 2, wherein when the target control request includes a request for showing two electronic books, the calling, by each process, a corresponding function module of the target function modules to perform a corresponding control operation on the at least one electronic book includes:
the method comprises the steps of respectively calling a user interface module through two processes to create two user interface instances, and simultaneously displaying display interfaces of two electronic books on a display screen through the two user interface instances in a split screen mode, or displaying the display interface of a first electronic book in the two electronic books on the display screen and starting the display interface of a second electronic book in the two electronic books on a background.
4. The method of claim 3, wherein after presenting the presentation interface of the first of the two electronic books on the display screen and launching the presentation interface of the second of the two electronic books in the background, the method further comprises:
receiving a switching request for the first electronic book;
switching the display interface of the first electronic book to the display interface of the second electronic book on the display screen through the two user interface instances, and keeping starting the display interface of the first electronic book in the background.
5. The method of claim 3, wherein after performing the corresponding control operation on the at least one electronic book, the method further comprises:
receiving a request for broadcasting a third electronic book;
and creating a new process, calling the engine module through the new process, and performing broadcasting operation on the third electronic book in the background.
6. The method according to claim 2, wherein when the target control request includes a request for showing and a request for broadcasting a fourth electronic book, the invoking, by each process, a corresponding functional module in the target functional module to perform a corresponding control operation on the at least one electronic book includes:
calling the engine module through a first process to create an engine instance, and executing a broadcasting operation on the fourth electronic book through the engine instance in a background;
and calling the user interface module through a second process to create a user interface example, and displaying a display interface of the fourth electronic book on a display screen through the user interface example.
7. The method of claim 6, wherein performing, by the engine instance, a talk-through operation on the fourth electronic book in the background comprises:
and acquiring the text content of the fourth electronic book through the engine instance, converting the text content of the fourth electronic book into voice content by adopting an external voice conversion module, and then playing the voice content in a background.
8. The method of claim 7, wherein presenting, by the user interface instance, a presentation interface of the fourth electronic book on a display screen comprises:
and acquiring the text content of the fourth electronic book from the engine instance of the engine module through the user interface instance, and displaying the text content of the fourth electronic book on the display screen.
9. An electronic device, comprising:
a processor;
a memory for storing executable instructions;
wherein the processor is configured to read the executable instructions from the memory and execute the executable instructions to:
receiving a target control request for at least one electronic book, wherein the target control request comprises a display request and/or a broadcast request;
determining a target function module corresponding to the target control request, wherein the target function module comprises at least one function module which can be independently called by a process;
and creating at least one process, calling a corresponding functional module in the target functional module through each process, and executing corresponding control operation on the at least one electronic book, wherein the control operation comprises display operation and/or broadcast operation.
10. A computer-readable storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, causes the processor to implement a control method with an electronic book according to any one of the preceding claims 1 to 8.
CN202111109222.3A 2021-09-22 2021-09-22 Control method of electronic book, electronic equipment and storage medium Pending CN113835858A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111109222.3A CN113835858A (en) 2021-09-22 2021-09-22 Control method of electronic book, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111109222.3A CN113835858A (en) 2021-09-22 2021-09-22 Control method of electronic book, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113835858A true CN113835858A (en) 2021-12-24

Family

ID=78960440

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111109222.3A Pending CN113835858A (en) 2021-09-22 2021-09-22 Control method of electronic book, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113835858A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110307823A1 (en) * 2010-06-15 2011-12-15 Hon Hai Precision Industry Co., Ltd. Electronic book reader and displaying method of electronic book reader
CN109828711A (en) * 2019-01-25 2019-05-31 努比亚技术有限公司 A kind of reading management method, mobile terminal and the storage medium of mobile terminal
CN111857453A (en) * 2019-04-30 2020-10-30 上海掌门科技有限公司 Function interface display method, computer equipment and storage medium
CN113157171A (en) * 2021-05-26 2021-07-23 掌阅科技股份有限公司 Application display method in split screen mode, computing device and computer storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110307823A1 (en) * 2010-06-15 2011-12-15 Hon Hai Precision Industry Co., Ltd. Electronic book reader and displaying method of electronic book reader
CN109828711A (en) * 2019-01-25 2019-05-31 努比亚技术有限公司 A kind of reading management method, mobile terminal and the storage medium of mobile terminal
CN111857453A (en) * 2019-04-30 2020-10-30 上海掌门科技有限公司 Function interface display method, computer equipment and storage medium
CN113157171A (en) * 2021-05-26 2021-07-23 掌阅科技股份有限公司 Application display method in split screen mode, computing device and computer storage medium

Similar Documents

Publication Publication Date Title
US9799375B2 (en) Method and device for adjusting playback progress of video file
US10782856B2 (en) Method and device for displaying application function information, and terminal device
KR101977072B1 (en) Method for displaying text associated with audio file and electronic device
CN110381382A (en) Video takes down notes generation method, device, storage medium and computer equipment
CN101567186B (en) Speech synthesis apparatus, method, program, system, and portable information terminal
WO2022242351A1 (en) Method, apparatus, and device for processing multimedia, and medium
US20220321966A1 (en) Method and apparatus for playing multimedia data, electronic device, and storage medium
CN111209437B (en) Label processing method and device, storage medium and electronic equipment
AU2013264492B2 (en) Method and apparatus for multi-playing videos
WO2020155964A1 (en) Audio/video switching method and apparatus, and computer device and readable storage medium
CN114020197B (en) Cross-application message processing method, electronic device and readable storage medium
US20220198403A1 (en) Method and device for interacting meeting minute, apparatus and medium
CN103019710B (en) Audio control method and device for browser
CN114302238B (en) Display method and display device for prompt information in sound box mode
CN103517104A (en) Set top box and video captions composite method based on network broadcasting
CN106155507A (en) A kind of page content display method and electronic equipment
JP2023538061A (en) SEARCH CONTENT MATCHING METHOD, APPARATUS, ELECTRONIC DEVICE, AND STORAGE MEDIUM
CN110797003A (en) Method for displaying caption information by converting text into voice
CN111818279A (en) Subtitle generating method, display method and interaction method
US9996148B1 (en) Rule-based presentation of media items
CN113986161A (en) Method and device for real-time word extraction in audio and video communication
CN113066491A (en) Display device and voice interaction method
CN113835858A (en) Control method of electronic book, electronic equipment and storage medium
CN113409782B (en) Method, device and system for non-inductive dispatching of BI large screen
US20240126500A1 (en) Device and method for creating a sharable clip of a podcast

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination