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 disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments 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 noted that, for convenience of description, only the portions related to the related invention are shown in the drawings. The embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict.
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.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 is a schematic diagram of one application scenario of an information generation method according to some embodiments of the present disclosure. Electronic device 101 may receive a device access request from device 102. The electronic device 101 may then obtain the attribute information of the device 102 in a variety of ways. For example, the electronic device 101 may directly read the attribute information from the device 102, or a technician may transmit the attribute information of the device 102 to the electronic device 101 through a storage device. Thereafter, the electronic device 101 may build a target device database based on the attribute information and store the target device database locally. Finally, the electronic device 101 generates voice operation information corresponding to the target device database. In this way, the user can operate the device 102 in a voice mode, and convenience and efficiency of health check of the user are improved.
It should be understood that the number of electronic devices 101 and devices 102 in fig. 1 is merely illustrative. There may be any number of electronic devices 101 and devices 102, as desired for implementation.
With continued reference to fig. 2, fig. 2 illustrates a flow 200 of some embodiments of an information generation method according to the present disclosure. The information generation method comprises the following steps:
step 201, in response to detecting the device access request, obtaining attribute information of a device corresponding to the device access request.
In some embodiments, the executing entity of the information generating method (e.g., the electronic device 101 shown in fig. 1) may receive the device access request from the device 102 through a wired connection or a wireless connection. It should be noted that the wireless connection means may include, but is not limited to, a 3G/4G/5G connection, a WiFi connection, a bluetooth connection, a WiMAX connection, a Zigbee connection, a uwb (ultra wideband) connection, and other wireless connection means now known or developed in the future.
When the executing agent detects a device access request from the device 102, attribute information of the device 102 may be acquired. Wherein the attribute information is used to describe the above-mentioned device. For example, the attribute information may be a device name, a device number, and the like of the device 102.
Step 202, constructing a target device database based on the attribute information.
In some embodiments, the executive may query the device 102 for relevant data based on the attribute information, thereby building a target device database for the device 102.
Step 203, generating the voice operation information corresponding to the target device database.
After the target device database is obtained, the execution main body can convert the information in the target device database into voice operation information through technologies such as audio conversion and the like. The voice operation information is used for operating the target device. For example, the device corresponding to the device access request is a blood pressure meter, and the corresponding voice operation information may be "turn on the blood pressure meter", "measure the blood pressure", "check the blood pressure", and the like. It should be noted that the voice operation information may be various expressions including keywords of the corresponding device, so as to satisfy various possible voice communication needs of the user, and may be modified according to actual needs. It should be noted that, according to actual needs, the execution main body may establish a connection with multiple devices to implement voice operations on the multiple devices.
The information generation method disclosed by some embodiments of the disclosure improves the convenience and efficiency of device operation. Specifically, the inventors found that the reason why the user is not efficient in operating the device is that: the user cannot operate the device conveniently. Based on this, the information generating method of some embodiments of the present disclosure may generate a target device database based on the attribute information of the device, and then generate voice operation information corresponding to the target device database. And because the voice operation information of the target equipment database is generated, the user can accurately and effectively inquire the function of the equipment in a voice mode and execute the corresponding function of the equipment by voice. Therefore, convenience and efficiency of the user operation equipment are greatly improved.
With continued reference to fig. 3, fig. 3 illustrates a flow 300 of some embodiments of an information generation method according to the present disclosure. The information generation method comprises the following steps:
step 301, in response to detecting the device access request, obtaining attribute information of a device corresponding to the device access request.
The content of step 301 is the same as that of step 201, and is not described in detail here.
Step 302, in response to that the attribute information does not exist in the local database, obtaining the operation information of the device.
When the above attribute information does not exist in the local database of the execution subject, it indicates that the device 102 accesses the execution subject for the first time. At this time, the execution main body may acquire operation information of the above-described apparatus. The operation information is used for the device 02, and the operation information may be various operation options, for example.
Step 303, constructing a target device database based on the operation information, and storing the target device database in the local database.
After the operation information is obtained, the execution main body may construct a target device database according to the operation information, and store the target device database in the local database.
Step 304, generating voice operation information corresponding to the target device database,
the content of step 304 is the same as that of step 203, and is not described in detail here.
In some optional implementations of some embodiments, the operation information may include at least one functional instruction; and, the constructing the target device database based on the operation information may include: and constructing at least one audio operation instruction based on at least one functional instruction contained in the operation information.
The operation information may include at least one function instruction, and the execution subject may convert the function instruction into an audio operation instruction and then construct the target device database according to the audio operation instruction. The audio operation instruction may be used to trigger a corresponding function instruction. The audio operation instruction can be obtained by directly converting the function instruction into voice.
In some optional implementation manners of some embodiments, the building a target device database based on the operation information may include: and for the audio operation instruction in the at least one audio operation instruction, extracting at least one keyword of the audio operation instruction, and constructing audio prompt information according to the at least one keyword.
In practice, users often cannot give professional operation instruction information. In order to improve the convenience of the user in operating the device 102, after the execution main body obtains the audio operation instruction, at least one keyword of the audio operation instruction may be extracted, and the audio prompt information may be constructed according to the at least one keyword. For example, the audio operation instruction may be "start an air pump to collect blood pressure data", the keyword may be "blood pressure", and the corresponding audio prompt information may be: "is blood pressure detected? ". The audio prompt information may be regarded as operation inquiry information constructed on the basis of the audio operation instruction. The voice operation information may be a more spoken expression than the audio prompt information to further accommodate the user's daily communication needs.
In some optional implementation manners of some embodiments, the building of the target device database based on the operation information may include the following steps:
in a first step, a hierarchical relationship between the at least one functional instruction is determined.
In order to facilitate the user to select the required function, the execution body can also construct an information operation interface. To this end, the execution entity may first determine a hierarchical relationship between the at least one functional instruction. The hierarchical relationship may be understood as the order of appearance between the functional instructions when the device 102 is operated. The hierarchical relationship may be represented by a tree diagram or the like.
And secondly, constructing an information operation interface based on the hierarchical relationship.
After the hierarchical relationship is obtained, the execution subject can construct an information operation interface according to the hierarchical relationship. The information operation interface can contain a plurality of options, and the options can be constructed according to the hierarchical relationship. Therefore, each function instruction of the device 102 is converted into a visual interface, so that the convenience of operating the device 102 is improved, and the efficiency of operating the device 102 is improved.
In some optional implementation manners of some embodiments, the building an information operation interface based on the hierarchical relationship may include the following steps:
firstly, establishing at least one corresponding interface operation item according to the at least one function instruction.
When the information operation interface is constructed, the execution main body may establish an interface operation item for each function instruction, where the interface operation item may include an operation key and an operation link corresponding to the function instruction. The operation link may be used to execute a corresponding function command through the operation key.
And secondly, constructing an information operation interface based on the hierarchical relationship and the operation keys.
After the interface operation item is obtained, the execution main body can construct an information operation interface according to the hierarchical relationship and the operation key of the interface operation item.
With further reference to fig. 4, a flow 400 of further embodiments of an information generation method is illustrated. The process 400 of the information generating method includes the following steps:
step 401, in response to detecting the device access request, obtaining attribute information of a device corresponding to the device access request.
Step 402, constructing a target device database based on the attribute information.
Step 403, generating voice operation information corresponding to the target device database.
The contents of steps 401 to 403 are the same as those of steps 201 to 203, and are not described in detail here.
Step 404, in response to detecting a voice signal containing a preset first keyword, recognizing the voice signal, and determining a function instruction corresponding to the voice signal according to a recognition result.
When the user operates the device 102 by the executing agent, a voice signal may be transmitted to the executing agent. When the execution subject detects that the voice signal contains the first keyword, it may be considered that the user needs to execute the execution subject to operate the device 102. In this case, the execution body may recognize the voice signal and determine a function command corresponding to the voice signal according to a recognition result. Wherein, the first keyword may include at least one of the following: starting and starting the computer.
In some optional implementation manners of some embodiments, the recognizing the voice signal and determining a functional instruction corresponding to the voice signal according to a recognition result may include:
and step one, responding to the matching of the voice signal and the voice operation information, and inquiring and playing the audio prompt information corresponding to the voice operation information.
In practice, a user will typically only know the approximate information of the device 102 when they want to use the device 102. For example, the speech signal may be: "give me to detect the blood pressure. At this time, the execution body may match the voice signal with the voice operation information. When the voice operation information 'blood pressure measurement' is matched with the voice signal, the execution main body can further inquire and play the audio prompt information corresponding to the voice operation information. For example, the audio prompt information may be: "is blood pressure detected? ".
And secondly, responding to the detected confirmation signal corresponding to the audio prompt information, and executing the audio operation instruction corresponding to the audio prompt information.
When the execution main body detects the confirmation signal corresponding to the audio prompt information, the audio operation instruction corresponding to the audio prompt information can be executed. In this manner, operation of the device 102 by way of speech is enabled. In this manner, ease of use and ease of operation of the device 102 are improved.
In some optional implementation manners of some embodiments, the recognizing the voice signal and determining the functional instruction corresponding to the voice signal according to the recognition result may include the following steps:
and step one, responding to the voice signal containing a second keyword, and displaying the information operation interface.
As can be seen from the above description, the execution body also constructs an information operation interface. When the voice signal contains the second keyword, it indicates that the user wants to operate the device 102 through the form of an interface. At this time, the execution main body may display the above information operation interface. Wherein, the second keyword may include at least one of the following: opening a menu and displaying an interface.
And step two, responding to the detected selection signal corresponding to the operation key in the information operation interface, and executing the corresponding function instruction according to the selection signal.
When the selection signal of the operation key is detected, the execution main body can execute the corresponding function instruction according to the selection signal.
With further reference to fig. 5, as an implementation of the methods illustrated in the above figures, the present disclosure provides some embodiments of an information generating apparatus, which correspond to those illustrated in fig. 2, and which may be particularly applied in various electronic devices.
As shown in fig. 5, the information generating apparatus 500 of some embodiments may include: an attribute information acquisition unit 501, a target device database construction unit 502, and a voice operation information generation unit 503. The attribute information acquiring unit 501 is configured to, in response to detecting a device access request, acquire attribute information of a device corresponding to the device access request, where the attribute information is used to describe the device; a target device database construction unit 502 configured to construct a target device database based on the attribute information; a voice operation information generating unit 503 configured to generate voice operation information corresponding to the target device database, the voice operation information being used for operating the device.
In an optional implementation manner of some embodiments, the target device database building unit 502 may include: an operation information acquisition subunit (not shown in the figure) and a target device database construction subunit (not shown in the figure). The operation information acquisition subunit is configured to respond to the absence of the attribute information in a local database and acquire operation information of the equipment; and a target device database construction subunit configured to construct a target device database based on the operation information, and store the target device database in the local database.
In an optional implementation manner of some embodiments, the operation information includes at least one functional instruction; and, the target device database construction subunit may include: and an audio operation instruction construction module (not shown in the figure) configured to construct at least one audio operation instruction based on at least one function instruction included in the operation information, where the audio operation instruction is used to trigger a corresponding function instruction.
In an optional implementation manner of some embodiments, the target device database building subunit may include: and an audio prompt information construction module (not shown in the figure) configured to, for an audio operation instruction in the at least one audio operation instruction, extract at least one keyword of the audio operation instruction, and construct an audio prompt information according to the at least one keyword.
In an optional implementation manner of some embodiments, the target device database building subunit may include: a hierarchical relation determining module (not shown in the figure) and an information operation interface constructing module (not shown in the figure). The hierarchical relation determining module is configured to determine the hierarchical relation between the at least one functional instruction; and the information operation interface construction module is configured to construct an information operation interface based on the hierarchical relationship.
In an optional implementation manner of some embodiments, the information operation interface construction module may include: an interface operation item construction sub-module (not shown in the figure) and an information operation interface construction sub-module (not shown in the figure). The interface operation item construction submodule is configured to establish at least one corresponding interface operation item according to the at least one function instruction, the interface operation item comprises an operation key corresponding to the function instruction and an operation link, and the operation link is used for executing the corresponding function instruction through the operation key; and the information operation interface construction submodule is configured to construct an information operation interface based on the hierarchical relationship and the operation keys.
In an optional implementation manner of some embodiments, the information generating apparatus 500 may further include a voice operation unit (not shown in the figure) configured to, in response to detecting a voice signal containing a preset first keyword, recognize the voice signal, and determine a function instruction corresponding to the voice signal according to a recognition result, where the first keyword includes at least one of: starting and starting the computer.
In an optional implementation manner of some embodiments, the voice operation unit may include: an audio prompt information inquiry subunit (not shown in the figure) and a first voice operation subunit (not shown in the figure). The voice operation information inquiry subunit is configured to, in response to the voice signal being successfully matched with the voice operation information, inquire and play the voice operation information corresponding to the voice operation information; and the first voice operation subunit is configured to respond to the detection of the confirmation signal corresponding to the audio prompt information and execute the audio operation instruction corresponding to the audio prompt information.
In an optional implementation manner of some embodiments, the voice operation unit may include: an information operation interface display subunit (not shown in the figure) and a second voice operation subunit (not shown in the figure). Wherein, the information operation interface display subunit is configured to respond to that the voice signal contains a second keyword, and display the information operation interface, and the second keyword comprises at least one of the following items: opening a menu and displaying an interface; and the second voice operation subunit is configured to respond to the detection of a selection signal corresponding to the operation key in the information operation interface and execute a corresponding function instruction according to the selection signal.
It will be understood that the elements described in the apparatus 500 correspond to various steps in the method described with reference to fig. 2. Thus, the operations, features and resulting advantages described above with respect to the method are also applicable to the apparatus 500 and the units included therein, and are not described herein again.
As shown in fig. 6, electronic device 600 may include a processing means (e.g., central processing unit, graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM603, various programs and data necessary for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 illustrates an electronic device 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 6 may represent one device or may represent multiple devices as desired.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In some such embodiments, the computer program may be downloaded and installed from a network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of some embodiments of the present disclosure.
It should be noted that the computer readable medium described above in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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. In some embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: in response to detecting a device access request, obtaining attribute information of a device corresponding to the device access request, wherein the attribute information is used for describing the device; constructing a target equipment database based on the attribute information; and generating voice operation information corresponding to the target equipment database, wherein the voice operation information is used for operating the equipment.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including 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).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by software, and may also be implemented by hardware. The described units may also be provided in a processor, and may be described as: a processor includes an attribute information acquisition unit, a target device database construction unit, and a voice operation information generation unit. Where the names of these units do not in some cases constitute a limitation on the unit itself, for example, the voice operation information generation unit may also be described as a "unit that converts information into audio".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
The foregoing description is only exemplary of the preferred embodiments of the disclosure 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 invention in the embodiments of the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is made without departing from the inventive concept as defined above. For example, the above features and (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure are mutually replaced to form the technical solution.