CN104978168B - Prompting method and device for operation information - Google Patents

Prompting method and device for operation information Download PDF

Info

Publication number
CN104978168B
CN104978168B CN201410128315.4A CN201410128315A CN104978168B CN 104978168 B CN104978168 B CN 104978168B CN 201410128315 A CN201410128315 A CN 201410128315A CN 104978168 B CN104978168 B CN 104978168B
Authority
CN
China
Prior art keywords
operation information
audio file
htm
statement
current area
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.)
Active
Application number
CN201410128315.4A
Other languages
Chinese (zh)
Other versions
CN104978168A (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410128315.4A priority Critical patent/CN104978168B/en
Publication of CN104978168A publication Critical patent/CN104978168A/en
Application granted granted Critical
Publication of CN104978168B publication Critical patent/CN104978168B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method and a device for prompting operation information, belonging to the technical field of information.

Description

Prompting method and device for operation information
Technical Field
The present invention relates to the field of information technologies, and in particular, to a method and an apparatus for prompting operation information.
Background
With the development of information technology, browsing pages in the internet to obtain page information in the pages becomes one of the main ways for people to obtain information. In the same page, the more page information contained in the page, the higher click rate of the page can be obtained, so that a page producer can add various functions to the page to increase the page information contained in the page. For example, a button is added to a page, and a left click on the button acquires page information 1, a left double click on the button acquires page information 2, and a right double click on the button acquires page information 3. However, it is difficult for a user who is not familiar with the page operation to know how to operate the button to obtain the desired page information. Therefore, the prompt method of the operation information can increase the operation familiarity of the user to the page, and is the key for improving the use efficiency of the page and increasing the click rate of the page.
Currently, the method for prompting the operation information is to mark the operation information on a related element label in the form of a value of a title attribute title in an HTM L (Hypertext markup L anguage) statement, or mark the operation information on a related element label in the form of a value of an unobstructed web application attribute aria-label and aria-labedby in an HTM L statement, so that when prompting the operation information, a related prompting device generates a prompting content according to the semantic meaning, the attribute and the content contained in the statement of an element in an HTM L statement containing the operation information, and prompts the prompting content.
For example, the operation information "a-net logo" is marked on the label of the element h1 in the form of the value of the HTM L statement "< h1title ═ a-net logo" > logo: > title </1 > "title attribute", so that after the prompting device acquires the HTM L statement "< h1title ═ a-net logo" > logo: "a-net logo", the prompting content "a-net logo" is generated according to the semantic of h1, "first-class title", the value of the title attribute of h 1: "a-net logo" and the content of the statement: logo, and the prompting content is prompted.
In the process of implementing the invention, the inventor finds that the method at least has the following disadvantages:
meanwhile, the related prompting equipment can prompt the operation information according to the HTM L statement, so that the implementation environment of the prompting method of the operation information is limited, the implementation complexity of the prompting method of the operation information is improved, and the prompting time is increased.
Disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present invention provide a method and an apparatus for prompting operation information. The technical scheme is as follows:
on one hand, a method for prompting operation information is provided, which is applied to a browser, and the method comprises the following steps:
determining a current area where a focus is located;
if the current area has the operation information, acquiring an HTM L statement at least containing the identifier of the operation information of the current area;
pressing a carriage return to open in a new window, pressing the carriage return to open in a current window, pressing a space to open in the new window, pressing the space to open in the current window, pressing a carriage return submission form, pressing the carriage return to activate a current component, pressing the space to activate a current component, pressing a carriage return operation radio box, pressing a carriage return operation check box, pressing a space operation radio box, pressing a space operation check box, pressing a space to pause playing, pressing the space to start playing, pressing an Esc key to stop playing, pressing a left key and a right key to adjust progress, pressing an up key and a down key to adjust volume, pressing a D key to access a landmaek element, pressing a left key and a right key to switch a Tab, pressing the carriage return to select the item, pressing a space to display the item, pressing an up key and a down key to access a node, pressing a left key to access a folding node, pressing a right key to open a Tab;
from the moment of acquiring the audio file, delaying the audio file for a second preset time length and then playing the audio file so as to prompt the operation information;
if the focus moves out of the current area before the initial playing time of the audio file is reached, the step of playing the audio file waiting to be executed is eliminated.
In another aspect, an apparatus for prompting operation information is provided, where the apparatus is applied in a browser, and the apparatus includes:
the first acquisition module is used for determining the current area where the focus is located;
the first obtaining module is further configured to obtain, when the current region determined by the first determining unit has operation information, an HTM L statement that at least includes an identifier of the operation information of the current region;
the extracting module is used for extracting the identifier of the operation information in the HTM L statement acquired by the first acquiring module;
a second obtaining module, configured to obtain an audio file corresponding to the identifier of the operation information extracted by the extracting module, where the audio file is used to describe content of the operation information, and the content of the operation information is any one of the following: pressing enter to open in a new window, pressing enter to open in a current window, pressing blank to open in a new window, pressing blank to open in a current window, pressing enter to submit a form, pressing blank to submit a form, pressing enter to activate a current component, pressing blank to activate a current component, pressing enter to operate a radio box, pressing enter to operate a check box, pressing blank to operate a radio box, pressing blank to operate a check box, pressing blank to pause playing, pressing blank to start playing, pressing Esc key to stop playing, pressing left and right keys to adjust progress, pressing an up and down key to adjust volume, pressing a D key to access a landmaek element, pressing a left and right key to switch a Tab tag, pressing an up and down key to switch a Tab tag, pressing enter to select the item, pressing blank to display the item, pressing an up and down key to access a node, pressing a left key to expand a node, pressing a right key to fold a node, pressing a Tab key to jump to a next element;
the playing module is used for playing the audio file acquired by the second acquisition module after delaying a second preset time from the moment of acquiring the audio file so as to prompt the operation information;
the playing module is further configured to clear the step of playing the audio file to be executed when the focus moves out of the current area before the initial playing time of the audio file is reached.
In still another aspect, there is provided a computer-readable storage medium having a program stored thereon, the program being executed by a processor to implement the method of prompting for operational information as described in the above aspect.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
the method comprises the steps of including the identification of the operation information in an HTM L statement, reducing the statement length of an HTM L statement, reducing the maintenance difficulty of maintaining the HTM L statement, simultaneously obtaining an audio file corresponding to the identification of the operation information, playing the audio file to prompt the operation information, widening the implementation environment of the method, reducing the implementation complexity of the method and reducing the prompt time.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a method for prompting operation information according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an operation information display interface according to a second embodiment of the present invention;
fig. 3 is a flowchart of a method for prompting operation information according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of an operation information prompt apparatus according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of another operation information prompting device provided in the third embodiment of the present invention;
fig. 6 is a schematic structural diagram of a first obtaining module according to a third embodiment of the present invention;
fig. 7 is a schematic structural diagram of another first obtaining module according to a third embodiment of the present invention;
fig. 8 is a schematic structural diagram of a terminal according to a fourth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Because different page information can be obtained by executing different operations in the same page, in order to enable a user to more clearly understand how to operate to obtain the required page information and increase the operation familiarity of the user on the page, thereby improving the page use efficiency and increasing the key of the page click rate, the embodiment of the invention provides a prompt method of the operation information. The method for prompting the operation information is applied to a terminal, wherein an operation information prompting device runs on the terminal, and the operation information prompting device is the operation information prompting device described in the third embodiment below. The prompting device of the operation information can be a browser, and an audio file describing the content of the operation information corresponding to the operation information identifier can be played according to the operation information identifier of the current area where the focus stays.
Example one
The present embodiment provides a method for prompting operation information, and referring to fig. 1, the method provided by the present embodiment specifically includes the following steps:
101, acquiring an HTM L statement at least containing an identifier of operation information;
further, obtaining an HTM L statement containing at least an identification of the operation information includes:
determining a current area where a focus is located;
if the current region has operational information, an HTM L statement is obtained that contains at least an identification of the operational information for the current region.
Further, before obtaining the HTM L statement at least containing the identifier of the operation information of the current region, the method further includes:
determining the time length of the focus staying in the current area;
and if the time length for which the focus stays in the current area exceeds a first preset time length, executing the step of acquiring an HTM L statement at least containing the identification of the operation information of the current area.
102, extracting the identification of the operation information in the HTM L statement, and acquiring an audio file corresponding to the identification of the operation information, wherein the audio file is used for describing the content of the operation information;
further, before the audio file corresponding to the identifier of the operation information is acquired, the method further includes:
acquiring audio files corresponding to the operation information according to the content of the operation information, and storing the audio files corresponding to the operation information according to the identification of the operation information;
acquiring an audio file corresponding to the identifier of the operation information, wherein the audio file comprises:
and searching the audio file corresponding to the identifier of the operation information in the stored audio file.
103: and playing the audio file to prompt the operation information.
Further, playing the audio file comprises: and playing the audio file after delaying the second preset time.
According to the method provided by the embodiment, the sentence length of the HTM L sentence is reduced and the maintenance difficulty of maintaining the HTM L sentence is reduced by including the identification of the operation information in the HTM L sentence, and meanwhile, the audio file corresponding to the identification of the operation information is obtained and played to prompt the operation information, so that the implementation environment of the method is widened, the implementation complexity of the method is reduced, and the prompting time is shortened.
In order to more clearly illustrate the method for prompting the operation information provided by the above embodiment, the following second embodiment is taken as an example to describe the method for prompting the operation information in detail by combining the content and the implementation environment of the above embodiment, and refer to the following second embodiment:
example two
For convenience of description, the present embodiment takes the operation information display interface shown in fig. 2 as an example, and details of the method provided by the present embodiment are exemplified. Referring to fig. 3, the method flow provided by this embodiment is specifically as follows:
301: acquiring audio files corresponding to the operation information according to the content of the operation information, and storing the audio files corresponding to the operation information according to the identification of the operation information;
the present embodiment does not limit the specific content of the operation information, for example, the content of the operation information is: pressing enter to open in a new window, pressing enter to open in a current window, pressing blank to open in a new window, pressing blank to open in a current window, pressing enter to submit a form, pressing blank to submit a form, pressing enter to activate a current component, pressing blank to activate a current component, pressing enter to operate a radio box, pressing enter to operate a check box, pressing blank to operate a radio box, pressing blank to operate a check box, pressing blank to pause playing, pressing blank to start playing, pressing Esc to stop playing, pressing left and right keys to adjust progress, pressing up and down keys to adjust volume, pressing D key to access landmaek element, pressing left and right keys to switch a Tab tag, pressing up and down keys to switch the Tab tag, pressing enter to select the item, pressing blank to display the item, pressing up and down keys to access a node, pressing left key to expand a node, pressing right key to fold a node, pressing Tab key to jump to a next element.
The embodiment also does not limit the file format of the Audio file corresponding to each operation information, for example, the file format of the Audio file is MP3(Moving Picture Experts Group Audio L layer III, motion Picture Experts Group Audio layer 3) format, WMA (Windows Media Audio )
The embodiment also does not limit the specific manner of storing the audio file corresponding to each operation information according to the identifier of each operation information, for example, the audio file corresponding to each operation information is stored in a table form shown in table 1 according to the identifier of each operation information.
TABLE 1
Figure GDA0002098323230000061
Figure GDA0002098323230000071
Of course, the identifier of the operation information may also be in other forms, and the embodiment does not limit the specific form of the identifier of the operation information. The audio file corresponding to the operation information may also be other file names, and the specific name of the audio file corresponding to the operation information is not limited in this embodiment.
It should be noted that, when the method for prompting the operation information provided in this embodiment is executed, step 301 does not need to be executed each time, that is, only when the method provided in this embodiment is applied for the first time to prompt the operation information, the step is executed to store the audio file corresponding to the common operation information, and when the operation information is prompted subsequently, the audio file stored in step 301 may be directly utilized, so that the following steps are continuously executed. However, when the operation information is newly added, the step 301 of re-executing is triggered to store the audio file corresponding to the newly added operation information. The embodiment does not limit the specific trigger condition for re-executing step 301. The triggering time for triggering the re-execution of step 301 is also not limited by this embodiment.
Determining a current area where a focus is located, and if the current area has operation information, acquiring an HTM L statement at least containing an identifier of the operation information of the current area;
the present embodiment does not limit a specific method for determining the current area where the focus is located. For example: and acquiring a current area where a focus corresponding to the mouse is located, or acquiring a current area where a touch focus of the touch screen is located.
As shown in FIG. 2, the focus is a touch focus, namely the position touched by a user on the touch screen, the current area where the focus is located is determined to be the current area where the touch focus of the touch screen is acquired, the current area where the focus is located is opened in a new window, and the current area where the focus is located is opened in the new window, wherein the current area where the focus is located has operation information, when the current area is opened in the new window by pressing enter, an HTM L statement at least containing an identifier of the operation information of the current area is acquired, wherein the statement < li > i ═ ID1</li >.
The HTM L statement at least including the identifier of the operation information of the current area may also be another statement, and this embodiment does not limit the specific HTM L statement at least including the identifier of the operation information of the current area.
In addition, in order to prevent the user from staying in the current area with the operation information due to misoperation and acquiring the HTM L statement at least containing the identifier of the operation information of the current area, it is preferable that before the step of acquiring the HTM L statement at least containing the identifier of the operation information of the current area, the time length for staying in the current area is determined, and when the time length for staying in the current area exceeds a first preset time length, the step of acquiring the HTM L statement at least containing the identifier of the operation information of the current area is performed.
And as shown in FIG. 2, the current area where the focus is located has operation information, the current area is opened in a new window by enter, the first preset time is 2 seconds, if the time for the focus to stay in the current area is determined to be 1 second, the time for the focus to stay in the current area is 1 second and does not exceed the first preset time for 2 seconds, so that an HTM L statement at least containing an identifier of the operation information of the current area is not obtained, and if the time for the focus to stay in the current area is determined to be 3 seconds, the time for the focus to stay in the current area is 3 seconds and exceeds the first preset time for 2 seconds, an HTM L statement at least containing the identifier of the operation information of the current area is obtained, wherein < li > i ═ ID1</li >.
Of course, the first preset duration may also be durations with other lengths, and the specific length of the first preset duration is not limited in this embodiment. The length of time that the focus stays in the current area may also be a length of time of other lengths, and the specific length of the length of time that the focus stays in the current area is not limited in this embodiment.
303, extracting the identification of the operation information in the HTM L statement;
the embodiment does not limit the specific method for extracting the identifier of the operation information in the HTM L statement, including but not limited to parsing the HTM L to parse the identifier of the operation information in the HTM L statement.
Taking the obtained HTM L statement at least containing the identifier of the operation information of the current area as an example, i (li) i (ID 1) as an example, the identifier of the operation information in the HTM L statement, ID1, is analyzed.
304: searching an audio file corresponding to the identifier of the operation information in the stored audio file;
wherein, the audio file is used for describing the content of the operation information.
Since the audio file corresponding to each operation information is already stored according to the identifier of each operation information in step 301, the audio file corresponding to the identifier of the operation information can be searched for in the stored audio file.
And the identification of the operation information is as follows: ID1 is an example, and audio file 1.mp3 corresponding to ID1 is looked up in Table 1.
305: and playing the audio file.
The embodiment does not limit the specific method for playing the audio file, for example: since playing the audio file requires a certain playing time, in order to avoid that the audio file 0 played in step 305 in the method for prompting the operation information provided in this embodiment is not played in the last time by the prompting device for the operation information, and the audio file 1 obtained in this time is played in step 305 again, the audio file may be played after a second preset time is delayed, so as to ensure that the audio file 1 is played when the audio file 0 is played.
For example, the playing file is 1.mp3, the second preset time is 1 second, and 1.mp3 is played after 1 second delay. Of course, the second preset duration may also be durations with other lengths, and the embodiment does not limit the specific length of the second preset duration.
In addition to the specific audio file playing method for playing the audio file after delaying the second preset time, the audio file may also be played as follows.
There may be a change in the current region where the focus is located during the period after the current region with the operation information where the focus is located is determined in step 302 and before the audio file is played, for some special reason. For example: the current user knows the content of the operation information 1 described in the audio file 1, and does not want to play the audio file 1, so before playing the audio file 1, the focus is moved out of the current area 1 with the operation information determined in step 302 and enters the current area 2. For such a situation, if the prompting device for the operation information still plays the audio file, poor user experience can be brought. For the situation, the method can be divided into two sub-situations, and for different sub-situations, the audio file can be played according to different methods.
The first sub-case: the current area 2 contains the operation information 2, and after the focus is located in the current area 2, the prompting device of the operation information determines the audio file 2 corresponding to the operation information 2 again by the method provided by the embodiment, and step 305 is executed again to play the audio file 2. At this time, the previous step of playing the audio file 1 may be cleared before playing the audio file 2, and the step of playing the audio file 2 is directly performed.
The second sub-case: the current area 2 does not contain the operation information 2, or the current area 2 contains the operation information 2, and the prompting device of the operation information determines the audio file 2 corresponding to the operation information 2 again by the method provided by the embodiment after the focus is located in the current area 2, but does not execute step 305 again to play the audio file 2. At this time, since the audio file corresponding to the current region 2 is not the audio file 1, the step of clearing the current playing audio file 1 ends the flow. Thereby avoiding that the operation information described in the currently played audio file does not coincide with the current region where the focus stays.
According to the method provided by the embodiment, the sentence length of the HTM L sentence is reduced and the maintenance difficulty of maintaining the HTM L sentence is reduced by including the identification of the operation information in the HTM L sentence, and meanwhile, the audio file corresponding to the identification of the operation information is obtained and played to prompt the operation information, so that the implementation environment of the method is widened, the implementation complexity of the method is reduced, and the prompting time is shortened.
EXAMPLE III
The present embodiment provides an operation information prompting apparatus, which is configured to execute the operation information prompting method provided in the first embodiment or the second embodiment, and with reference to fig. 4, the apparatus includes:
a first obtaining module 401, configured to obtain an HTM L statement that at least includes an identifier of operation information;
an extracting module 402, configured to extract an identifier of operation information in the HTM L statement acquired by the first acquiring module 401;
a second obtaining module 403, configured to obtain an audio file corresponding to the identifier of the operation information extracted by the extracting module 402, where the audio file is used to describe content of the operation information;
the playing module 404 is configured to play the audio file acquired by the second acquiring module 403, so as to prompt the operation information.
Referring to fig. 5, the apparatus further comprises:
a third obtaining module 405, configured to obtain, according to the content of each operation information, an audio file corresponding to each operation information;
the storage module 406 is configured to store an audio file corresponding to each operation information according to the identifier of each operation information;
the second obtaining module 403 is configured to search for an audio file corresponding to the identifier of the operation information in the audio file stored in the storage module 406.
Referring to fig. 6, the first obtaining module 401 includes:
a first determination unit 4011, configured to determine a current area where a focus is located;
the obtaining unit 4012 is configured to, when the current area determined by the first determining unit 4011 has the operation information, obtain an HTM L statement that includes at least an identifier of the operation information of the current area.
Referring to fig. 7, the first obtaining module 401 further includes:
a second determination unit 4013 configured to determine a duration for which the focus stays in the current area;
the obtaining unit 4012 is configured to obtain, when a duration that the focus stays in the current area and is determined by the second determining unit 4013 exceeds a first preset duration, an HTM L statement that at least includes an identifier of operation information that the current area has.
The playing module 404 is configured to play the audio file after delaying a second preset time.
The device provided by the embodiment reduces the sentence length of the HTM L sentence and reduces the maintenance difficulty of maintaining the HTM L sentence by including the identifier of the operation information in the HTM L sentence, and meanwhile, obtains the audio file corresponding to the identifier of the operation information and plays the audio file to prompt the operation information, thereby widening the implementation environment of the method, reducing the implementation complexity of the method and reducing the prompting time.
Example four
Referring to fig. 8, this embodiment provides a terminal, and fig. 8 shows a schematic structural diagram of a terminal with a touch-sensitive surface according to an embodiment of the present invention, where the terminal may be used to implement the method for prompting the operation information provided in the foregoing embodiment. Specifically, the method comprises the following steps:
terminal 800 can include RF (RadI/O Frequency) circuitry 110, memory 120 including one or more computer-readable storage media, input unit 130, display unit 140, sensor 150, audio circuitry 160, transmission module 170, processor 180 including one or more processing cores, and power supply 190. Those skilled in the art will appreciate that the terminal structure shown in fig. 8 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 110 may be used for receiving and transmitting signals during a message or call, and in particular, for receiving downlink information of a base station and then processing the downlink information by one or more processors 180, and further, for transmitting data related to uplink to the base station. generally, the RF circuit 110 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, L NA (L ow Noise Amplifier), a duplexer, etc. furthermore, the RF circuit 110 may also communicate with a network and other devices via wireless communication, which may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communications I/On), GSM (Global System for Mobile communications), GPRS (General Packet radio Service), CDMA (Code division Multiple Access ), WCDMA (Wireless base station/Service), SMS (Short Service, Short message Service, evolution, L, etc.).
The memory 120 can be used for storing software programs and modules, such as the software programs and modules corresponding to the operation information prompting device in the third embodiment, and the processor 180 executes various functional applications and data processing, such as prompting of operation information, by running the software programs and modules stored in the memory 120. The memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal 800, and the like. Further, the memory 120 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 120 may further include a memory controller to provide the processor 180 and the input unit 130 with access to the memory 120.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding link device according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 180, and can receive and execute commands sent by the processor 180. Additionally, the touch-sensitive surface 131 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
Display unit 140 may be used to Display information input by or provided to a user, as well as various graphical user interfaces of terminal 800, which may be comprised of graphics, text, icons, video, and any combination thereof Display panel 141, optionally Display panel 141 may be configured in the form of L CD (L iquid Crystal Display ), O L ED (Organic L light-Emitting DI/Ode), etc. further, touch-sensitive surface 131 may overlay Display panel 141, and upon detection of a touch operation on or near touch-sensitive surface 131, communicate to processor 180 to determine the type of touch event, and processor 180 then provides a corresponding visual output on Display panel 141 according to the type of touch event, although in FIG. 8, touch-sensitive surface 131 and Display panel 141 are implemented as two separate components to implement input and input functions, in some embodiments, touch-sensitive surface 131 and Display panel 141 may be integrated to implement input and output functions.
The terminal 800 can also include at least one sensor 150, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or a backlight when the terminal 800 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the terminal 800, further description is omitted here.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and terminal 800. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the processor 180 for processing, and then to the RF circuit 110 to be transmitted to, for example, another terminal, or outputs the audio data to the memory 120 for further processing. The audio circuitry 160 may also include an earbud jack to provide communication of peripheral headphones with the terminal 800.
The terminal 800, which can assist the user in e-mail, web browsing, and streaming media access, etc., provides the user with wireless or wired broadband internet access via the transmission module 170. Although fig. 8 shows the transmission module 170, it is understood that it does not belong to the essential constitution of the terminal 800 and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 180 is a control center of the terminal 800, links various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the terminal 800 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby integrally monitoring the mobile phone. Optionally, processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The terminal 800 further includes a power supply 190 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 180 via a power management system to manage charging, discharging, and power consumption management functions via the power management system. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal 800 may further include a camera, a bluetooth module, etc., which will not be described herein. Specifically, in this embodiment, the display unit of the terminal is a touch screen display, the terminal further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
acquiring an HTM L statement at least containing an identifier of operation information;
extracting the identification of the operation information in the HTM L statement, and acquiring an audio file corresponding to the identification of the operation information, wherein the audio file is used for describing the content of the operation information;
and playing the audio file to prompt the operation information.
Assuming that the foregoing is the first possible implementation manner, in a second possible implementation manner provided on the basis of the first possible implementation manner, the memory of the terminal further includes instructions for performing the following operations:
acquiring audio files corresponding to the operation information according to the content of the operation information, and storing the audio files corresponding to the operation information according to the identification of the operation information;
and searching the audio file corresponding to the identifier of the operation information in the stored audio file.
In a third possible implementation manner provided as a basis for the first possible implementation manner, the memory of the terminal further includes instructions for performing the following operations:
determining a current area where a focus is located;
if the current region has operational information, an HTM L statement is obtained that contains at least an identification of the operational information for the current region.
In a fourth possible implementation manner provided as a basis for the third possible implementation manner, the memory of the terminal further includes instructions for performing the following operations:
determining the time length of the focus staying in the current area;
and if the time length for which the focus stays in the current area exceeds a first preset time length, executing the step of acquiring an HTM L statement at least containing the identification of the operation information of the current area.
In a fifth possible implementation manner provided as the basis of the first possible implementation manner, the memory of the terminal further includes instructions for performing the following operations:
playing the audio file after delaying the second preset time
In summary, the terminal provided in this embodiment includes the identifier of the operation information in the HTM L statement, so that the statement length of the HTM L statement is reduced, the maintenance difficulty of maintaining the HTM L statement is reduced, and meanwhile, the audio file corresponding to the identifier of the operation information is acquired and played to prompt the operation information, thereby widening the implementation environment of the method, reducing the implementation complexity of the method, and reducing the prompt time.
EXAMPLE five
An embodiment of the present invention provides a computer-readable storage medium, which may be a computer-readable storage medium contained in the memory in the above-described embodiment; or it may be a separate computer-readable storage medium not incorporated in the terminal. The computer-readable storage medium stores one or more programs, the one or more programs being used by one or more processors to perform a method of prompting for operational information, the method comprising:
acquiring an HTM L statement at least containing an identifier of operation information;
extracting the identification of the operation information in the HTM L statement, and acquiring an audio file corresponding to the identification of the operation information, wherein the audio file is used for describing the content of the operation information;
and playing the audio file to prompt the operation information.
Assuming that the foregoing is the first possible implementation manner, in a second possible implementation manner provided on the basis of the first possible implementation manner, before the step of obtaining the audio file corresponding to the identifier of the operation information, the method further includes:
acquiring audio files corresponding to the operation information according to the content of the operation information, and storing the audio files corresponding to the operation information according to the identification of the operation information;
the step of obtaining the audio file corresponding to the identifier of the operation information comprises the following steps:
and searching the audio file corresponding to the identifier of the operation information in the stored audio file.
In a third possible implementation provided as a basis for the first possible implementation, the step of obtaining an HTM L statement including at least an identifier of the operation information includes:
determining a current area where a focus is located;
if the current region has operational information, an HTM L statement is obtained that contains at least an identification of the operational information for the current region.
In a fourth possible implementation manner provided as the basis of the third possible implementation manner, before the step of obtaining the HTM L statement including at least the identifier of the operation information of the current region, the method further includes:
determining the time length of the focus staying in the current area;
and if the time length for which the focus stays in the current area exceeds a first preset time length, executing the step of acquiring an HTM L statement at least containing the identification of the operation information of the current area.
In a fifth possible implementation manner provided as the basis of the first possible implementation manner, the step of playing the audio file includes: and playing the audio file after delaying for a second preset time.
The computer-readable storage medium provided by the embodiment of the invention has the advantages that the sentence length of the HTM L sentence is reduced and the maintenance difficulty of maintaining the HTM L sentence is reduced by including the identifier of the operation information in the HTM L sentence, and meanwhile, the audio file corresponding to the identifier of the operation information is obtained and played to prompt the operation information, so that the implementation environment of the method is widened, the implementation complexity of the method is reduced, and the prompting time is shortened.
EXAMPLE six
An embodiment of the present invention provides a graphical user interface for use on a terminal, the terminal comprising a touch screen display, a memory, and one or more processors for executing one or more programs; the graphical user interface comprises:
acquiring an HTM L statement at least containing an identifier of operation information;
extracting the identification of the operation information in the HTM L statement, and acquiring an audio file corresponding to the identification of the operation information, wherein the audio file is used for describing the content of the operation information;
and playing the audio file to prompt the operation information.
According to the graphical user interface provided by the embodiment of the invention, the operation information identifier is contained in the HTM L statement, so that the statement length of the HTM L statement is reduced, the maintenance difficulty of maintaining the HTM L statement is reduced, meanwhile, the audio file corresponding to the operation information identifier is obtained, and the audio file is played to prompt the operation information, so that the implementation environment of the method is widened, the implementation complexity of the method is reduced, and the prompting time is shortened.
It should be noted that: in the device provided in the above embodiment, when the prompt of the operation information is implemented, only the division of the functional modules is illustrated, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the device provided by the above embodiment and the prompt method embodiment of the operation information belong to the same concept, and the specific implementation process thereof is detailed in the method embodiment and will not be described herein again.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (7)

1. A method for prompting operation information is characterized by comprising the following steps:
when the operation information is prompted for the first time or when the operation information is newly added, acquiring an audio file corresponding to each operation information according to the content of each operation information, and storing the audio file corresponding to each operation information in a table form according to the identification of each operation information;
acquiring a hypertext markup language (HTM) L statement at least containing an identifier of operation information;
extracting the identification of the operation information in the HTM L statement, and searching an audio file corresponding to the identification of the operation information in a stored audio file, wherein the audio file is used for describing the content of the operation information;
and delaying the audio file for a second preset time from the moment of acquiring the audio file so as to prompt the operation information.
2. The method according to claim 1, wherein the obtaining of the identified hypertext markup language HTM L statement containing at least the operation information comprises:
determining a current area where a focus is located;
and if the current area has the operation information, acquiring an HTM L statement at least containing the identification of the operation information of the current area.
3. The method of claim 2, wherein prior to obtaining the HTM L statement that contains at least an identification of the operational information for the current region, further comprising:
determining the time length of the focus staying in the current area;
and if the time length of the focus staying in the current area exceeds a first preset time length, executing a step of acquiring an HTM L statement at least containing the identifier of the operation information of the current area.
4. An apparatus for prompting an operation information, the apparatus comprising:
the storage module is used for acquiring audio files corresponding to the operation information according to the content of the operation information when the operation information is prompted for the first time or when the operation information is newly added, and storing the audio files corresponding to the operation information in a table form according to the identification of the operation information;
the system comprises a first acquisition module, a first processing module and a second acquisition module, wherein the first acquisition module is used for acquiring a hypertext markup language (HTM) L statement at least containing an identifier of operation information;
the extracting module is used for extracting the identifier of the operation information in the HTM L statement acquired by the first acquiring module;
the second obtaining module is used for searching an audio file corresponding to the identifier of the operation information extracted by the extracting module in a stored audio file, wherein the audio file is used for describing the content of the operation information; the content of the operation information comprises a corresponding realization function when any key in the keyboard is operated;
and the playing module is used for playing the audio file acquired by the second acquisition module after delaying a second preset time from the moment of acquiring the audio file so as to prompt the operation information.
5. The apparatus of claim 4, wherein the first obtaining module comprises:
the first determining unit is used for determining the current area where the focus is located;
an obtaining unit, configured to obtain, when the current region determined by the first determining unit has operation information, an HTM L statement that at least includes an identifier of the operation information of the current region.
6. The apparatus of claim 5, wherein the first obtaining module further comprises:
a second determination unit, configured to determine a duration for which the focus stays in the current area;
the obtaining unit is configured to obtain an HTM L statement that at least includes an identifier of operation information that the current area has, when a duration that the focus stays in the current area, which is determined by the second determining unit, exceeds a first preset duration.
7. A computer-readable storage medium having stored thereon computer-executable instructions configured to perform the method of prompting for operational information as provided in any of claims 1 to 3.
CN201410128315.4A 2014-04-01 2014-04-01 Prompting method and device for operation information Active CN104978168B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410128315.4A CN104978168B (en) 2014-04-01 2014-04-01 Prompting method and device for operation information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410128315.4A CN104978168B (en) 2014-04-01 2014-04-01 Prompting method and device for operation information

Publications (2)

Publication Number Publication Date
CN104978168A CN104978168A (en) 2015-10-14
CN104978168B true CN104978168B (en) 2020-07-10

Family

ID=54274709

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410128315.4A Active CN104978168B (en) 2014-04-01 2014-04-01 Prompting method and device for operation information

Country Status (1)

Country Link
CN (1) CN104978168B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111344672A (en) * 2017-09-07 2020-06-26 深圳传音通讯有限公司 Operation prompting method and operation prompting device for intelligent terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101419546A (en) * 2007-10-26 2009-04-29 英业达股份有限公司 Graphic user interface speech prompting system and method
CN101599159A (en) * 2009-07-14 2009-12-09 武汉大学 A kind of asynchronous interactive method of network shopping cart
CN101943997A (en) * 2010-09-13 2011-01-12 中兴通讯股份有限公司 Method and terminal for realizing operation prompt tone from touch-screen terminal

Also Published As

Publication number Publication date
CN104978168A (en) 2015-10-14

Similar Documents

Publication Publication Date Title
CN106775637B (en) Page display method and device for application program
CN108287739A (en) A kind of guiding method of operating and mobile terminal
CN105208056B (en) Information interaction method and terminal
US20140365892A1 (en) Method, apparatus and computer readable storage medium for displaying video preview picture
CN108287918B (en) Music playing method and device based on application page, storage medium and electronic equipment
WO2015000429A1 (en) Intelligent word selection method and device
US9921735B2 (en) Apparatuses and methods for inputting a uniform resource locator
WO2020001165A1 (en) Voice control method and apparatus, and storage medium and electronic device
US20140359413A1 (en) Apparatuses and methods for webpage content processing
CN107368298B (en) Text control simulation touch method, terminal and computer readable storage medium
CN109032491B (en) Data processing method and device and mobile terminal
WO2015000430A1 (en) Intelligent word selection method and device
WO2014194713A1 (en) Method,apparatus and computer readable storage medium for displaying video preview picture
CN105606117A (en) Navigation prompting method and navigation prompting apparatus
CN107229618B (en) Method and device for displaying page
EP2743816A2 (en) Method and apparatus for scrolling screen of display device
CN104281568B (en) Paraphrasing display method and paraphrasing display device
CN109189258A (en) Record the method and device of notes
CN107885718B (en) Semantic determination method and device
TW201512987A (en) Method and device for controlling start-up of application and computer-readable storage medium
WO2019007414A1 (en) Method for realizing support of application for multiple languages, storage device, and mobile terminal
WO2015027909A1 (en) Method and apparatus for obtaining hot-topic information
US10140265B2 (en) Apparatuses and methods for phone number processing
CN103336838A (en) Method and device for processing webpage and terminal equipment
CN110335629B (en) Pitch recognition method and device of audio file and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant