Disclosure of Invention
In view of this, embodiments of the present invention provide a monitoring method and apparatus based on a wearable device, and an electronic device, which can effectively improve the monitoring efficiency of a monitor.
In a first aspect, an embodiment of the present invention provides a monitoring method based on a wearable device, which is applied to a server, and the monitoring method includes: receiving a sound file uploaded by the wearable device; recognizing the voice in the sound file; generating a text file corresponding to the voice; wherein, the text file records a character language and a time stamp corresponding to the voice; sending the text file to terminal equipment held by a listener; the terminal equipment is used for cooperating with the server to monitor a user using the wearable equipment.
According to a specific implementation manner of the embodiment of the present invention, after generating the text file corresponding to the voice, before sending the text file to the terminal device held by the listener, the method further includes: traversing the character languages recorded in the text file, and judging whether preset keywords exist in the character languages recorded in the text file or not; and if the character language recorded in the text file has the preset keyword, the preset keyword is highlighted and displayed in the text file.
According to a specific implementation manner of the embodiment of the present invention, the sending the text file to the terminal device held by the listener includes: judging whether the text file has preset keywords in the current time period according to the timestamp recorded in the text file; and if the text file has the preset keywords in the current time period, sending the text file corresponding to the current time period to the terminal equipment held by the listener.
According to a specific implementation manner of the embodiment of the present invention, after sending the text file to the terminal device held by the listener, the listening method further includes: receiving a downloading request for downloading a sound file at a designated time; and sending the sound file of the designated time to the terminal equipment held by the listener according to the downloading request.
In a second aspect, an embodiment of the present invention provides a monitoring method based on a wearable device, which is applied to a terminal device, and the monitoring method includes: receiving a text file sent by a server; the server is used for cooperating with the terminal equipment to monitor a user using the wearable equipment; sending a downloading request for downloading the sound file at the appointed time to a server; and downloading or caching the sound file of the appointed time sent by the server to the local and then playing the sound file.
According to a specific implementation manner of the embodiment of the present invention, after receiving a text file sent by a server, before sending a download request for downloading a sound file at a specified time to the server, the monitoring method includes: and traversing the character language recorded in the text file, and automatically positioning the preset key words in the text file.
According to a specific implementation manner of the embodiment of the present invention, after the preset keywords are located in the text file, the method further includes: and highlighting the keyword, and automatically positioning a timestamp corresponding to the keyword.
In a third aspect, an embodiment of the present invention provides a monitoring apparatus based on a wearable device, which is applied to a server, and the monitoring apparatus includes: the first receiving module is used for receiving the sound file uploaded by the wearable device; the voice recognition module is used for recognizing the voice in the sound file; the voice conversion module is used for generating a text file corresponding to the voice; wherein, the text file records a character language and a time stamp corresponding to the voice; the first sending module is used for sending the text file to terminal equipment held by a listener; the terminal equipment is used for cooperating with the server to monitor a user using the wearable equipment.
According to a specific implementation manner of the embodiment of the present invention, the apparatus further includes: the first traversal module is used for traversing the character languages recorded in the text file and judging whether preset keywords exist in the character languages recorded in the text file or not; and the first highlighting module is used for highlighting the preset keyword in the text file if the preset keyword is in the character language recorded in the text file.
According to a specific implementation manner of the embodiment of the present invention, the first sending module includes: the keyword judgment sub-module is used for judging whether the text file has preset keywords in the current time period according to the timestamp recorded in the text file; and the first sending sub-module is used for sending the text file corresponding to the current time period to the terminal equipment held by the listener if the text file has the preset keywords in the current time period.
According to a specific implementation manner of the embodiment of the present invention, the monitoring apparatus further includes: the second receiving module is used for receiving a downloading request for downloading the sound file at the appointed time; and the second sending module is used for sending the sound file of the designated time to the terminal equipment held by the listener according to the downloading request.
In a fourth aspect, an embodiment of the present invention provides a monitoring apparatus based on a wearable device, which is applied to a terminal device, and the monitoring apparatus includes: the third receiving module is used for receiving the text file transmitted by the server; wherein, a text language and a time stamp corresponding to the sound around the wearable device are recorded in the text file; the third sending module is used for sending a downloading request for downloading the sound file at the appointed time to the server; and the first playing module is used for downloading or caching the sound file of the appointed time sent by the server to the local for playing.
According to a specific implementation manner of the embodiment of the present invention, the monitoring apparatus includes: and the first positioning module is used for traversing the character languages recorded in the text file and automatically positioning the preset keywords in the text file.
According to a specific implementation manner of the embodiment of the present invention, the apparatus further includes: a second highlighting module for highlighting the keyword; and the second positioning module is used for automatically positioning the timestamp corresponding to the keyword.
In a fifth aspect, an embodiment of the present invention provides an electronic device, where the electronic device includes: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; the processor executes the program corresponding to the executable program code by reading the executable program code stored in the memory, and is used for executing the method of any one of the foregoing implementation modes.
In a sixth aspect, embodiments of the present invention also provide a computer-readable storage medium storing one or more programs, which are executable by one or more processors to implement the method of any of the above embodiments.
According to the monitoring method and device based on the wearable device and the electronic device, the server receives the sound file uploaded by the wearable device, identifies the voice in the sound file, and generates the text file corresponding to the voice, wherein the text file records the word language and the timestamp corresponding to the voice; sending the text file to terminal equipment held by a listener; the terminal equipment receives the text file sent by the server, sends a downloading request for downloading the sound file at the appointed time to the server, and downloads or caches the sound file at the appointed time sent by the server to the local for playing. The embodiment can convert the sound file into the text file, and can obtain effective monitoring information without the need of the monitoring person to continuously monitor the monitored person, thereby effectively improving the monitoring efficiency of the monitoring person.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In a first aspect, the present invention provides a monitoring method based on a wearable device, which is applied to a server. Fig. 1 is a flowchart of a monitoring method based on a wearable device according to a first embodiment of the present invention, and as shown in fig. 1, the method of the present embodiment includes:
step 101, receiving a sound file uploaded by wearable equipment;
in this embodiment, the wearable device refers to a smart device with a communication function, such as a child phone watch. The wearable device starts a communication mode after receiving a monitoring instruction sent by the terminal device, opens the microphone, collects sound information around the wearable device and sends a sound file formed by the sound information to the server, and the server receives the sound file uploaded by the wearable device.
Step 102, identifying the voice in the sound file;
103, generating a text file corresponding to the voice; wherein, the text file records a character language and a time stamp corresponding to the voice;
in this embodiment, the text language and the timestamp recorded in the text file and corresponding to the speech are beneficial for the listener to view the speech recorded in the text language, which is sent at what time near the listener.
Step 104, sending the text file to a terminal device held by a listener; the terminal equipment is used for cooperating with the server to monitor a user using the wearable equipment.
In this embodiment, a server performs noise reduction on a received sound file, and converts the sound file into a text file by using a speech recognition technology, where a text language and a timestamp corresponding to the speech are recorded in the text file; and the server sends the text file to the terminal equipment held by the listener. The embodiment can convert the sound file into the text file, and can obtain effective monitoring information without the need of the monitoring person to continuously monitor the monitored person, thereby effectively improving the monitoring efficiency of the monitoring person.
As shown in fig. 2, as an optional implementation manner of this embodiment, after generating a text file corresponding to the voice, before sending the text file to a terminal device held by a listener, the method further includes:
step 1031, traversing the character languages recorded in the text file, and judging whether preset keywords exist in the character languages recorded in the text file;
step 1032, if the preset keyword exists in the character language recorded in the text file, the preset keyword is highlighted in the text file.
In this embodiment, the listener can reserve the keywords that he or she is interested in, for example: when parents monitor children, the game can be used as a preset keyword. After converting a sound file into a text file, the server traverses the character languages recorded in the text file, judges whether preset keywords exist in the character languages recorded in the text file, highlights the keywords if the preset keywords exist in the character languages recorded in the text file, and then sends the text file to a terminal device held by a listener; therefore, when the listener views the text file, the information which is concerned by the listener can be rapidly acquired.
As shown in fig. 3, as another optional implementation manner of this embodiment, the sending the text file to the terminal device held by the listener includes:
step 1041, judging whether the text file has a preset keyword in the current time period according to the timestamp recorded in the text file;
step 1042, if the text file has the preset keyword in the current time period, sending the text file corresponding to the current time period to the terminal device held by the listener.
In this embodiment, the listener can reserve the keywords that he or she is interested in, for example: when parents monitor children, the game can be used as a preset keyword. The listener may preset a time period to be listened to, where each time period is a time period, for example: when the parents monitor the children, 8:00-9:00 can be set as a first time period, 12:00-14:00 can be set as a second time period, and 17:00-19:00 can be set as a third time period. The time period may also be determined according to the text file, for example, by presetting a time period, and if the time stamp corresponding to the last sentence of the text language recorded in the text file at the current time interval is greater than the preset time period, determining the time from the start of recording to the current time as a time period. The server judges whether the text file has preset keywords in the current time period, and if the text file has the preset keywords in the current time period, the server sends the text file corresponding to the current time period to the terminal equipment held by the listener; so that the listener can timely acquire the information concerned by the listener.
As shown in fig. 4, as a further optional implementation manner of this embodiment, after sending the text file to a terminal device held by a listener, the listening method further includes:
105. receiving a downloading request for downloading a sound file at a designated time;
106. and sending the sound file of the designated time to the terminal equipment held by the listener according to the downloading request.
In this embodiment, after the listener views the text file, the listener can know in which time period the voice information recorded in the text language occurs according to the timestamp corresponding to the text language, so that the listener can send a request for downloading the sound file at the specified time according to the time period, and the server receives the request for downloading the sound file at the specified time and sends the sound file at the specified time to the terminal device held by the listener according to the download request; so that the listener can play the sound file at the specified time on the listening device, thereby further confirming the accuracy of the information recorded there by the text file.
In a second aspect, the present invention provides a monitoring method based on a wearable device, which is applied to a terminal device. Fig. 5 is a schematic flowchart of a monitoring method based on a wearable device according to a fourth embodiment of the present invention, and as shown in fig. 5, the method according to the present embodiment includes:
step 201, receiving a text file sent by a server; the server is used for cooperating with the terminal equipment to monitor a user using the wearable equipment;
step 202, sending a downloading request for downloading the sound file at the appointed time to a server;
and 203, downloading or caching the sound file of the appointed time sent by the server to the local and then playing the sound file.
In this embodiment, the terminal device receives a text file which is sent by the server and recorded with a text language and a timestamp corresponding to the sound around the wearable device, so that a listener can view the text file. After the listener views the text file, the listener can know the time period in which the voice information recorded by the text language occurs according to the timestamp corresponding to the text language, so that the listener can send a play request for playing the sound file at the specified time to the server according to the time period, the server receives the play request for playing the sound file at the specified time and sends the sound file at the specified time to the terminal device according to the play request, and the terminal device downloads or caches the sound file at the specified time to the local for playing, so that the listener can further confirm the accuracy of the information recorded by the text file at the position.
As shown in fig. 6, as an optional implementation manner of this embodiment, after receiving the text file sent by the server, before sending a download request for downloading the sound file at a specified time to the server, the listening method includes:
2011. and traversing the character language recorded in the text file, and automatically positioning the preset key words in the text file.
2012. And highlighting the keyword, and automatically positioning a timestamp corresponding to the keyword.
In this embodiment, the listener can reserve the keywords that he or she is interested in; after receiving a text file sent by a server, the terminal equipment traverses the literal language recorded in the text file, automatically positions preset keywords in the text file, then highlights the keywords, and automatically positions timestamps corresponding to the keywords, so that a listener can quickly acquire information which is concerned by the keywords when viewing the text file, and can know the time or the time period in which the information occurs.
In a third aspect, the invention provides a monitoring device based on a wearable device, which is applied to a server. Fig. 7 is a schematic structural diagram of a monitoring apparatus based on a wearable device according to a third embodiment of the present invention, as shown in fig. 7, the apparatus of the present embodiment includes: thefirst receiving module 301 is configured to receive a sound file uploaded by a wearable device; aspeech recognition module 302 for recognizing speech in the sound file; avoice conversion module 303, configured to generate a text file corresponding to the voice; wherein, the text file records a character language and a time stamp corresponding to the voice; afirst sending module 304, configured to send the text file to a terminal device held by a listener; the terminal equipment is used for cooperating with the server to monitor a user using the wearable equipment.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 1, and the implementation principle and the technical effect are similar, which are not described herein again.
As shown in fig. 8, as an optional implementation manner of this embodiment, the apparatus further includes: afirst traversal module 3031, configured to traverse the text languages recorded in the text file, and determine whether there is a preset keyword in the text languages recorded in the text file; a first highlightingmodule 3032, configured to highlight the preset keyword in the text file if the preset keyword is included in the text language recorded in the text file.
The apparatus of this embodiment may be used to implement the technical solutions of the method embodiments shown in fig. 1 or fig. 2, and the implementation principles and technical effects are similar, which are not described herein again.
As shown in fig. 9, as another optional implementation manner of this embodiment, thefirst sending module 304 includes: akeyword determining submodule 3041, configured to determine whether the text file has a preset keyword in a current time period according to the timestamp recorded in the text file; the first sending sub-module 3042 is configured to send the text file corresponding to the current time period to the terminal device held by the listener if the text file has the preset keyword in the current time period.
The apparatus of this embodiment may be used to implement the technical solutions of the method embodiments shown in fig. 1 or fig. 3, and the implementation principles and technical effects are similar, which are not described herein again.
As shown in fig. 10, as a further optional implementation manner of this embodiment, the monitoring apparatus further includes: asecond receiving module 305 for receiving a download request for downloading the sound file at a designated time; and thesecond sending module 306 is configured to send the sound file at the specified time to the terminal device held by the listener according to the download request.
The apparatus of this embodiment may be used to implement the technical solutions of the method embodiments shown in fig. 1 or fig. 4, and the implementation principles and technical effects are similar, which are not described herein again.
In a fourth aspect, the invention provides a monitoring device based on a wearable device, which is applied to a terminal device. Fig. 11 is a schematic structural diagram of a monitoring apparatus based on a wearable device according to a fourth embodiment of the present invention, and as shown in fig. 11, the apparatus of this embodiment includes: athird receiving module 401, configured to receive a text file transmitted by a server; the server is used for cooperating with the terminal equipment to monitor a user using the wearable equipment; athird sending module 402, configured to send a download request for downloading a sound file at a specified time to a server; thefirst playing module 403 is configured to download or cache the sound file at the specified time sent by the server to a local location, and then play the sound file.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 5, and the implementation principle and the technical effect are similar, which are not described herein again.
As shown in fig. 12, as an optional implementation manner of this embodiment, the monitoring apparatus further includes: afirst positioning module 404, configured to traverse the written languages recorded in the text file, and automatically position preset keywords in the text file; a second highlightingmodule 405 for highlighting the keyword; and asecond positioning module 406, configured to automatically position a timestamp corresponding to the keyword.
The apparatus of this embodiment may be used to implement the technical solutions of the method embodiments shown in fig. 5 or fig. 6, and the implementation principles and technical effects are similar, which are not described herein again.
In a fifth aspect, fig. 13 is a schematic structural diagram of an embodiment of an electronic device of the present invention, which can implement the flows of the embodiments shown in fig. 1 to 6 of the present invention, and as shown in fig. 13, the electronic device may include: the device comprises ashell 41, aprocessor 42, amemory 43, acircuit board 44 and apower circuit 45, wherein thecircuit board 44 is arranged inside a space enclosed by theshell 41, and theprocessor 42 and thememory 43 are arranged on thecircuit board 44; apower supply circuit 45 for supplying power to each circuit or device of the electronic apparatus; thememory 43 is used for storing executable program code; theprocessor 42 executes a program corresponding to the executable program code by reading the executable program code stored in thememory 43, so as to execute the wearable device based listening method according to any one of the foregoing embodiments.
The specific execution process of the above steps by theprocessor 42 and the steps further executed by theprocessor 42 by running the executable program code may refer to the description of the embodiment shown in fig. 1 to 5 of the present invention, and are not described herein again.
The electronic device exists in a variety of forms, including but not limited to:
(1) a mobile communication device: such devices are characterized by mobile communications capabilities and are primarily targeted at providing voice, data communications. Such terminals include: smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) Ultra mobile personal computer device: the equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include: PDA, MID, and UMPC devices, etc., such as ipads.
(3) A portable entertainment device: such devices can display and play multimedia content. This type of device comprises: audio, video players (e.g., ipods), handheld game consoles, electronic books, and smart toys and portable car navigation devices.
(4) A server: the device for providing the computing service comprises a processor, a hard disk, a memory, a system bus and the like, and the server is similar to a general computer architecture, but has higher requirements on processing capacity, stability, reliability, safety, expandability, manageability and the like because of the need of providing high-reliability service.
(5) And other electronic equipment with data interaction function.
In a sixth aspect, embodiments of the present invention also provide a computer-readable storage medium storing one or more programs, which are executable by one or more processors to implement the method of any of the above embodiments.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
For convenience of description, the above devices are described separately in terms of functional division into various units/modules. Of course, the functionality of the units/modules may be implemented in one or more software and/or hardware implementations of the invention.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.