CN114866963B - Message sending method, storage medium and electronic device - Google Patents

Message sending method, storage medium and electronic device Download PDF

Info

Publication number
CN114866963B
CN114866963B CN202210259147.7A CN202210259147A CN114866963B CN 114866963 B CN114866963 B CN 114866963B CN 202210259147 A CN202210259147 A CN 202210259147A CN 114866963 B CN114866963 B CN 114866963B
Authority
CN
China
Prior art keywords
message
period
time
sent
determining
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
CN202210259147.7A
Other languages
Chinese (zh)
Other versions
CN114866963A (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.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home 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 Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202210259147.7A priority Critical patent/CN114866963B/en
Publication of CN114866963A publication Critical patent/CN114866963A/en
Application granted granted Critical
Publication of CN114866963B publication Critical patent/CN114866963B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/043Real-time or near real-time messaging, e.g. instant messaging [IM] using or handling presence information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/10Multimedia information
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Automation & Control Theory (AREA)
  • Telephonic Communication Services (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a message sending method, a storage medium and an electronic device, and relates to the technical field of smart families, wherein the message sending method comprises the following steps: analyzing a first voice message sent by a first object through intelligent equipment, and determining the receiving time of the first voice message and a first keyword of the first voice message; acquiring an online message corresponding to the receiving moment of the intelligent equipment under the condition that the first keyword of the first voice message is consistent with a preset field, and selecting a message to be sent, which is consistent with a preset sending requirement, from the online message; the message to be sent is sent to the first object, and the problem of how to improve information interaction efficiency in a voice interaction scene is solved by adopting the technical scheme.

Description

Message sending method, storage medium and electronic device
Technical Field
The present application relates to the field of communications, and in particular, to a message sending method, a storage medium, and an electronic device.
Background
At present, in the Internet of things era, along with popularization of intelligent equipment, a home scene of an intelligent home is more and more intelligent. However, the intelligent level of the current intelligent device is still low, a single type of information can be provided for a user only according to a single question and answer of the user, and multiple types of information can not be provided for the user according to the requirements of the user, so that the experience of the user is greatly reduced, and the interaction efficiency of the information is also reduced.
In the related art, in a voice interaction scene, there is a problem of how to improve information interaction efficiency.
Aiming at the problem of how to improve the information interaction efficiency in the voice interaction scene in the related technology, no effective solution has been proposed yet.
Disclosure of Invention
The embodiment of the application provides a message sending method and device, a storage medium and an electronic device, which at least solve the problem of how to improve the information interaction efficiency in a voice interaction scene in the related technology.
According to an embodiment of the present application, there is provided a message sending method including: analyzing a first voice message sent by a first object through intelligent equipment, and determining the receiving time of the first voice message and a first keyword of the first voice message; acquiring an online message corresponding to the receiving moment of the intelligent equipment under the condition that the first keyword of the first voice message is consistent with a preset field, and selecting a message to be sent, which is consistent with a preset sending requirement, from the online message; and sending the message to be sent to the first object.
In an exemplary embodiment, obtaining the online message corresponding to the receiving time by the intelligent device includes: determining a first time period to which the receiving time belongs, wherein the first time period at least comprises one of the following: a first period, a second period, and a third period, wherein the first period, the second period, and the third period each include a start time and an end time, the start time of the first period and the start time of the second period are both earlier than the start time of the third period, the end time of the first period is earlier than the start time of the second period, and the end time of the second period is earlier than the start time of the third period; and acquiring all online messages in the first time period.
In an exemplary embodiment, selecting a message to be transmitted consistent with a preset transmission requirement from the online messages includes: under the condition that a first time period to which the receiving time belongs is determined to be a first time period, determining a first date corresponding to the receiving time; and acquiring weather information of the first date from the online message, determining a travel event to be executed for the first object according to the weather information of the first date, and taking the travel event to be executed determined for the first object as the message to be sent.
In an exemplary embodiment, selecting a message to be transmitted consistent with a preset transmission requirement from the online messages includes: under the condition that a first time period to which the receiving time belongs is determined to be a first time period, determining a first date corresponding to the receiving time; acquiring news information of the first date from the online message; determining news information conforming to the first news type in the news information of the first date as the message to be sent; and/or determining news information conforming to the second news type in the news information of the first date as the message to be sent; the news information of the first news type comprises news information with highest watching frequency in a news watching record of the first object, and the news information of the second news type comprises news information conforming to the preference of the first object in the news watching record of the first object.
In an exemplary embodiment, selecting a message to be transmitted consistent with a preset transmission requirement from the online messages includes: selecting music to be played from the online message according to a first time period to which the receiving moment belongs, and determining the music to be played as the message to be sent; and when the first time period to which the receiving time belongs is determined to be the first time period, determining that music with a music tag in the online message as early as the music to be played, when the first time period to which the receiving time belongs is determined to be the second time period, determining that the music with a music tag in the online message as working is the music to be played, and when the first time period to which the receiving time belongs is determined to be the third time period, determining that the music with a music tag in the online message as rest is the music to be played.
In an exemplary embodiment, sending the message to be sent to the first object includes: determining the current position of the first object, and acquiring broadcasting equipment positioned in a broadcasting range of the current position; determining a broadcasting device with a distance from the first object smaller than a first threshold value as a target device; and under the condition that the target equipment supports the sending mode corresponding to the message type of the message to be sent, broadcasting the message to be sent through the target equipment.
In an exemplary embodiment, after the message to be sent is sent to the first object, the method further includes: determining whether a second voice message of the first object is received; acquiring a second time period which passes after the message to be sent is sent to the first object under the condition that the second voice message of the first object is received; analyzing the second voice message of the first object to determine a second keyword in the second voice message; and sending a preset reply message to the first object under the condition that the second time period is smaller than a second threshold value and the second keyword is consistent with the preset field.
According to another embodiment of the present application, there is also provided a message transmitting apparatus including: the analyzing module is used for analyzing the first voice message sent by the first object through the intelligent equipment and determining the receiving time of the first voice message and the first keyword of the first voice message; the acquisition module is used for acquiring the online message corresponding to the receiving moment of the intelligent equipment and selecting the message to be transmitted, which is consistent with the preset transmission requirement, from the online message under the condition that the first keyword of the first voice message is consistent with the preset field; and the sending module is used for sending the message to be sent to the first object.
According to a further aspect of embodiments of the present application, there is also provided a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the above-described message sending method when run.
According to still another aspect of the embodiments of the present application, there is further provided an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the above-mentioned message sending method through the computer program.
In the embodiment of the application, a first voice message sent by a first object is analyzed through intelligent equipment, and the receiving time of the first voice message and a first keyword of the first voice message are determined; acquiring an online message corresponding to the receiving moment of the intelligent equipment under the condition that the first keyword of the first voice message is consistent with a preset field, and selecting a message to be sent, which is consistent with a preset sending requirement, from the online message; sending the message to be sent to the first object; by adopting the technical scheme, the problem of how to improve the information interaction efficiency in the voice interaction scene is solved, and the information interaction efficiency in the voice interaction scene is further improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the application or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic diagram of a hardware environment of a message sending method according to an embodiment of the present application;
FIG. 2 is a flow chart of a messaging method according to an embodiment of the application;
Fig. 3 is a schematic diagram of a message transmission method according to an embodiment of the present application;
Fig. 4 is a block diagram (a) of a message transmission apparatus according to an embodiment of the present application;
fig. 5 is a block diagram (two) of a message transmitting apparatus according to an embodiment of the present application.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to one aspect of the embodiment of the application, an interaction method of intelligent household equipment is provided. The interaction method of the intelligent household equipment is widely applied to full-house intelligent digital control application scenes such as intelligent Home (Smart Home), intelligent Home, intelligent household equipment ecology, intelligent Home (INTELLIGENCE HOUSE) ecology and the like. Alternatively, in this embodiment, the above-mentioned interaction method of the smart home device may be applied to a hardware environment formed by the terminal device 102 and the server 104 as shown in fig. 1. As shown in fig. 1, the server 104 is connected to the terminal device 102 through a network, and may be used to provide services (such as application services and the like) for a terminal or a client installed on the terminal, a database may be set on the server or independent of the server, for providing data storage services for the server 104, and cloud computing and/or edge computing services may be configured on the server or independent of the server, for providing data computing services for the server 104.
The network may include, but is not limited to, at least one of: wired network, wireless network. The wired network may include, but is not limited to, at least one of: a wide area network, a metropolitan area network, a local area network, and the wireless network may include, but is not limited to, at least one of: WIFI (WIRELESS FIDELITY ), bluetooth. The terminal device 102 may not be limited to a PC, a mobile phone, a tablet computer, an intelligent air conditioner, an intelligent smoke machine, an intelligent refrigerator, an intelligent oven, an intelligent cooking range, an intelligent washing machine, an intelligent water heater, an intelligent washing device, an intelligent dish washer, an intelligent projection device, an intelligent television, an intelligent clothes hanger, an intelligent curtain, an intelligent video, an intelligent socket, an intelligent sound box, an intelligent fresh air device, an intelligent kitchen and toilet device, an intelligent bathroom device, an intelligent sweeping robot, an intelligent window cleaning robot, an intelligent mopping robot, an intelligent air purifying device, an intelligent steam box, an intelligent microwave oven, an intelligent kitchen appliance, an intelligent purifier, an intelligent water dispenser, an intelligent door lock, and the like.
In this embodiment, a message sending method is provided and applied to the computer terminal, and fig. 2 is a flowchart of the message sending method according to an embodiment of the present application, where the flowchart includes the following steps:
Step S202, analyzing a first voice message sent by a first object through intelligent equipment, and determining the receiving time of the first voice message and a first keyword of the first voice message;
the first object may be understood as an object that performs voice interaction with the smart device, and may include a person or a robot.
It should be noted that, the first keyword may be set freely by the user (i.e., the first object), or may be preset by a background person, or may be determined according to a voice record of the user.
Step S204, under the condition that the first keyword of the first voice message is determined to be consistent with a preset field, acquiring an online message corresponding to the receiving moment of the intelligent equipment, and selecting a message to be sent, which is consistent with a preset sending requirement, from the online message;
It should be noted that the above online message may be understood as information obtained from a virtual resource, for example, a virtual resource may be a source including, but not limited to, an internet, a cloud server, a physical storage device such as a hard disk, and the like.
Step S206, sending the message to be sent to the first object.
Through the steps, the first voice message sent by the first object is analyzed through the intelligent equipment, and the receiving time of the first voice message and the first keyword of the first voice message are determined; acquiring an online message corresponding to the receiving moment of the intelligent equipment under the condition that the first keyword of the first voice message is consistent with a preset field, and selecting a message to be sent, which is consistent with a preset sending requirement, from the online message; the message to be sent is sent to the first object, so that the problem of how to improve information interaction efficiency in a voice interaction scene in the related art is solved, and the information interaction efficiency in the voice interaction scene is further improved.
In an exemplary embodiment, in order to better understand how to obtain the online message corresponding to the receiving time of the smart device in the step S202, a technical solution is provided, where the specific steps include: determining a first time period to which the receiving time belongs, wherein the first time period at least comprises one of the following: a first period, a second period, and a third period, wherein the first period, the second period, and the third period each include a start time and an end time, the start time of the first period and the start time of the second period are both earlier than the start time of the third period, the end time of the first period is earlier than the start time of the second period, and the end time of the second period is earlier than the start time of the third period; and acquiring all online messages in the first time period.
It should be noted that, the time unit of the first period may include year, month, day, hour, and the like, which is not limited by the present application.
For example, in the case where the time unit of the first period is hours, the first period is, for example, am, the second period is, for example, pm, and the third period is, for example, evening.
In one embodiment, in a case where the first period includes a first period, the first period may include 6 points to 7 points, and if it is determined that the reception time is 6 points and 10 minutes, an online message of the smart device between 6 points to 7 points is acquired.
In one embodiment, in the case that the first period includes a first period and a second period, the first period includes, for example, 6 to 8 points, the second period includes, for example, 15 to 16 points, and if it is determined that the reception time is 15 to 30 minutes, an online message of the smart device between 6 to 15 to 30 minutes is acquired.
In one embodiment, in the case where the above-described first period includes a first period including, for example, 6 to 8 points, a second period including, for example, 15 to 16 points, and a third period including, for example, 21 to 22 points. If the receiving time is determined to be 21 points and 20 minutes, the intelligent device acquires the online message between 6 points and 21 points and 20 minutes.
In an exemplary embodiment, in order to better understand how to select the message to be transmitted, which is consistent with the preset transmission requirement, from the online messages in the above step S204, a first date corresponding to the receiving time may be determined when it is determined that the first period to which the receiving time belongs is the first period; and acquiring weather information of the first date from the online message, determining a travel event to be executed for the first object according to the weather information of the first date, and taking the travel event to be executed determined for the first object as the message to be sent.
In one embodiment, a technical solution for determining a trip event to be executed for the first object according to weather information of the first date is provided, specifically: when the weather information of the first date is overcast and rainy weather, an indoor journey event can be provided for a first object; when the weather information of the first date is clear weather, an outdoor trip event can be provided for the first object.
It should be noted that, the travel event may be set in advance by the user, for example, a working travel event, a travel event, or may be determined for the user according to weather information and a travel event recommended for the user on the condition that the user does not set the travel event in advance. For example, in one embodiment, in the case that the first date is determined to be a national festival, the trip information may be directly sent to the user according to the travel trip event set by the user, and if it is determined that the weather of the national festival is clear and the travel trip event is not set by the user, the trip event of climbing mountain may be recommended to the user.
In an exemplary embodiment, to better understand how to select the message to be sent consistent with the preset sending requirement from the online messages in the step S204, the first date corresponding to the receiving time may also be determined if the first period to which the receiving time belongs is determined to be the first period; acquiring news information of the first date from the online message; determining news information conforming to the first news type in the news information of the first date as the message to be sent; and/or determining news information conforming to the second news type in the news information of the first date as the message to be sent; the news information of the first news type comprises news information with highest watching frequency in a news watching record of the first object, and the news information of the second news type comprises news information conforming to the preference of the first object in the news watching record of the first object.
In an exemplary embodiment, to better understand how to select the message to be sent, which is consistent with the preset sending requirement, from the online messages in the step S204, music to be played can be selected from the online messages according to the first time period to which the receiving time belongs, and the music to be played is determined as the message to be sent; and when the first time period to which the receiving time belongs is determined to be the first time period, determining that music with a music tag in the online message as early as the music to be played, when the first time period to which the receiving time belongs is determined to be the second time period, determining that the music with a music tag in the online message as working is the music to be played, and when the first time period to which the receiving time belongs is determined to be the third time period, determining that the music with a music tag in the online message as rest is the music to be played.
In an exemplary embodiment, in order to better understand how to send the message to be sent to the first object in the step S206, a technical solution is provided, which specifically includes: determining the current position of the first object, and acquiring broadcasting equipment positioned in a broadcasting range of the current position; determining a broadcasting device with a distance from the first object smaller than a first threshold value as a target device; and under the condition that the target equipment supports the sending mode corresponding to the message type of the message to be sent, broadcasting the message to be sent through the target equipment.
The range of values of the first threshold may include [0,1km ]. For example, a first threshold is set to 2m, and a broadcasting device with a distance from the first object smaller than 2m is used as a target device.
The broadcasting range of the current position may include a coverage area with the current position of the first object as a center and a preset distance as a radius.
In an exemplary embodiment, the target device may determine that the target device supports a transmission manner corresponding to the message type of the message to be transmitted according to the following manner: determining the equipment type of the target equipment and obtaining the message sending mode supported by the equipment type, such as voice, video, text and the like, and if the message sending mode supported by the equipment type of the target equipment is consistent with the message type of the message to be sent, determining that the target equipment supports the sending mode corresponding to the message type of the message to be sent.
Under the condition that the target equipment supports multiple message sending modes, the target equipment can be subjected to custom limitation, customized output of the target equipment is achieved, for example, under the condition that the target equipment supports voice and video, the message sending mode of the target equipment can be set to be video.
In an exemplary embodiment, after the message to be sent is sent to the first object, a technical solution is further provided, and the specific steps include: determining whether a second voice message of the first object is received; acquiring a second time period which passes after the message to be sent is sent to the first object under the condition that the second voice message of the first object is received; analyzing the second voice message of the first object to determine a second keyword in the second voice message; and sending a preset reply message to the first object under the condition that the second time period is smaller than a second threshold value and the second keyword is consistent with the preset field.
The range of values of the second threshold may include [0, 30min ]. For example, the second threshold is set to 10min, the preset field is "good in the morning", if the first keyword of the first voice message is "good in the morning", the message to be sent, which is consistent with the preset sending requirement, is selected from the online messages by the intelligent device to send the message to the first object, after the message to be sent is sent, the second time period which passes is determined to be 20min, and if the second keyword in the second voice message is "good in the morning", the preset reply message is sent to the first object.
It should be noted that, the preset reply message may include a prompt for prompting the user that the message to be sent is sent, or may include an inquiry for asking the user whether to enter voice interaction.
In an exemplary embodiment, in the case that it is determined that the user sets the trip event in advance, the location of the trip event may also be acquired, and weather information and news information where the location of the trip event is located may be broadcasted to the user.
According to another embodiment of the present application, there is also provided a message transmitting apparatus including: the analyzing module is used for analyzing the first voice message sent by the first object through the intelligent equipment and determining the receiving time of the first voice message and the first keyword of the first voice message; the acquisition module is used for acquiring the online message corresponding to the receiving moment of the intelligent equipment and selecting the message to be transmitted, which is consistent with the preset transmission requirement, from the online message under the condition that the first keyword of the first voice message is consistent with the preset field; and the sending module is used for sending the message to be sent to the first object.
In order to better understand the process of the message sending method, the following description is provided with reference to the optional embodiment to describe the flow of the implementation method of the message sending, but the implementation method is not limited to the technical solution of the embodiment of the present application.
The embodiment provides a message sending method, which can call a user through friendly words by the intelligent equipment when the intelligent equipment is speaking corpus such as morning in a breakfast question scene, and report information such as time, date, holiday, weather forecast, news breakfast, breakfast related music and the like.
Fig. 3 is a schematic diagram of a message sending method according to an embodiment of the present application, as shown in fig. 3, specifically including the following steps:
step S301: acquiring the current time (corresponding to the receiving time) when the user speaks "good morning";
step S302: judging whether the current time belongs to a time period from 6 am to 12 am (corresponding to the first time period), if so, executing the step S303, otherwise, executing the step S310;
Step S303: starting an early-safety questioning scene and sending an early-safety questioning good language to a user;
step S304: determining a current date (corresponding to the first date) according to the current time, wherein the date representation type can comprise lunar calendar, solar calendar, lunar calendar, solar calendar and the like;
Step S305: determining whether the current date is a holiday, if so, executing step S306, and if not, executing step S307;
step S306: acquiring weather conditions corresponding to the current date, and determining a travel event of a user by combining the weather conditions and holidays;
Step S307: broadcasting news information of the current date to a user;
In one embodiment, news information of the event location at the current date may also be broadcast to the user in the event location in the travel event of the user is determined.
Step S308: a music engagement special show statement, such as "play next as your music" is broadcasted to the user.
Step S309: determining music to be played according to the current time, wherein the music to be played can be breakfast music with a music tag as breakfast;
in one embodiment, the early-safety music may be obtained from a user's listening to a song recording. If the user still requires the same song to be played later, the same song can be directly obtained from the redis cache and played to the user. Redis is a high-performance key-value database. The method supports persistence of data, supports various data structures and supports backup of the data. The database pressure can be reduced, the overall performance is improved, and better user experience is brought.
Step S310: and if not, sending an ending language of the breakfast scene to the user, for example, "the noon/afternoon/evening now has remembered that the tomorrow is in the morning to find me" for example.
In one embodiment, when the user does not call the smart device with a "good early morning" corpus, etc., a friendly reply (equivalent to the preset reply content described above) is given to the user through the smart device.
Through the scheme, real-time weather information, news breakfast and breakfast music are acquired in the breakfast scene, and the aggregate of the information (characters and voices) is provided for the user at one time, so that the convenience is high, the execution rate is high, and good experience is provided for the user in a continuous broadcasting mode. Meanwhile, the high available frequency of the redis middleware matched with the information is introduced, the information to be sent is directly cached in the redis after the information to be sent is obtained for the first time, the data obtaining speed can be improved in the subsequent interaction process, the interaction response time is shortened, and the interaction efficiency is improved.
In one embodiment, the voice interaction process between the smart device and the user may be implemented through Dubbo and springboot frameworks. Dubbo is a high-performance and lightweight open source Java RPC framework, which provides remote method call, intelligent fault tolerance and load balancing, and automatic service registration and discovery. The application can realize the output and input functions of the service through the high-performance RPC, support the functions of load balancing, disaster recovery and clustering, and can be seamlessly integrated with the Spring framework. SpringBoot Spring-based application development not only inherits the original excellent characteristics of a Spring framework, but also simplifies the whole construction and development process of Spring application by simplifying configuration. In addition SpringBoot, by integrating a large number of frameworks, the problems of version conflict of dependent packages, instability of references and the like are well solved. There are two very important strategies in SpringBoot framework: the method is convenient to use after opening the box and has better definition than configuration. Specific ways are used to configure so that developers no longer need to define a templated configuration. In this way, spring Boot is dedicated to be the leader in the rapidly developing field of rapid application development (rapid application development). The number of decisions that a developer needs to make is reduced, a large number of XML configurations are reduced, and code compilation, testing, packaging, and the like can be automated.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method of the various embodiments of the present application.
Fig. 4 is a block diagram (a) of a message transmitting apparatus according to an embodiment of the present application. As shown in fig. 4, includes:
The parsing module 42 is configured to parse, by using the smart device, a first voice message sent by the first object, and determine a receiving time of the first voice message and a first keyword of the first voice message;
the first object may be understood as an object that performs voice interaction with the smart device, and may include a person or a robot.
It should be noted that, the first keyword may be set freely by the user (i.e., the first object), or may be preset by a background person, or may be determined according to a voice record of the user.
An obtaining module 44, configured to obtain an online message corresponding to the receiving time of the intelligent device when it is determined that the first keyword of the first voice message is consistent with a preset field, and select a message to be sent, which is consistent with a preset sending requirement, from the online messages;
It should be noted that the above online message may be understood as information obtained from a virtual resource, for example, a virtual resource may be a source including, but not limited to, an internet, a cloud server, a physical storage device such as a hard disk, and the like.
A sending module 46, configured to send the message to be sent to the first object.
Through the device, the first voice message sent by the first object is analyzed through the intelligent equipment, and the receiving time of the first voice message and the first keyword of the first voice message are determined; acquiring an online message corresponding to the receiving moment of the intelligent equipment under the condition that the first keyword of the first voice message is consistent with a preset field, and selecting a message to be sent, which is consistent with a preset sending requirement, from the online message; the message to be sent is sent to the first object, so that the problem of how to improve information interaction efficiency in a voice interaction scene in the related art is solved, and the information interaction efficiency in the voice interaction scene is further improved.
In an exemplary embodiment, the parsing module is further configured to determine a first period of time to which the receiving time belongs, where the first period of time includes at least one of: a first period, a second period, and a third period, wherein the first period, the second period, and the third period each include a start time and an end time, the start time of the first period and the start time of the second period are both earlier than the start time of the third period, the end time of the first period is earlier than the start time of the second period, and the end time of the second period is earlier than the start time of the third period; and acquiring all online messages in the first time period.
It should be noted that, the time unit of the first period may include year, month, day, hour, and the like, which is not limited by the present application.
For example, in the case where the time unit of the first period is hours, the first period is, for example, am, the second period is, for example, pm, and the third period is, for example, evening.
In one embodiment, in a case where the first period includes a first period, the first period may include 6 points to 7 points, and if it is determined that the reception time is 6 points and 10 minutes, an online message of the smart device between 6 points to 7 points is acquired.
In one embodiment, in the case that the first period includes a first period and a second period, the first period includes, for example, 6 to 8 points, the second period includes, for example, 15 to 16 points, and if it is determined that the reception time is 15 to 30 minutes, an online message of the smart device between 6 to 15 to 30 minutes is acquired.
In one embodiment, in the case where the above-described first period includes a first period including, for example, 6 to 8 points, a second period including, for example, 15 to 16 points, and a third period including, for example, 21 to 22 points. If the receiving time is determined to be 21 points and 20 minutes, the intelligent device acquires the online message between 6 points and 21 points and 20 minutes.
In an exemplary embodiment, the obtaining module is further configured to determine a first date corresponding to the receiving time when determining that a first period of time to which the receiving time belongs is a first period of time; and acquiring weather information of the first date from the online message, determining a travel event to be executed for the first object according to the weather information of the first date, and taking the travel event to be executed determined for the first object as the message to be sent.
In one embodiment, a technical solution for determining a trip event to be executed for the first object according to weather information of the first date is provided, specifically: when the weather information of the first date is overcast and rainy weather, an indoor journey event can be provided for a first object; when the weather information of the first date is clear weather, an outdoor trip event can be provided for the first object.
It should be noted that, the travel event may be set in advance by the user, for example, a working travel event, a travel event, or may be determined for the user according to weather information and a travel event recommended for the user on the condition that the user does not set the travel event in advance. For example, in one embodiment, in the case that the first date is determined to be a national festival, the trip information may be directly sent to the user according to the travel trip event set by the user, and if it is determined that the weather of the national festival is clear and the travel trip event is not set by the user, the trip event of climbing mountain may be recommended to the user.
In an exemplary embodiment, the obtaining module is further configured to determine a first date corresponding to the receiving time when determining that a first period of time to which the receiving time belongs is a first period of time; acquiring news information of the first date from the online message; determining news information conforming to the first news type in the news information of the first date as the message to be sent; and/or determining news information conforming to the second news type in the news information of the first date as the message to be sent; the news information of the first news type comprises news information with highest watching frequency in a news watching record of the first object, and the news information of the second news type comprises news information conforming to the preference of the first object in the news watching record of the first object.
In an exemplary embodiment, the obtaining module is further configured to select music to be played from the online messages according to a first period of time to which the receiving time belongs, and determine the music to be played as the message to be sent; and when the first time period to which the receiving time belongs is determined to be the first time period, determining that music with a music tag in the online message as early as the music to be played, when the first time period to which the receiving time belongs is determined to be the second time period, determining that the music with a music tag in the online message as working is the music to be played, and when the first time period to which the receiving time belongs is determined to be the third time period, determining that the music with a music tag in the online message as rest is the music to be played.
In an exemplary embodiment, the sending module is further configured to determine a current position of the first object, and obtain a broadcasting device located in a broadcasting range of the current position; determining a broadcasting device with a distance from the first object smaller than a first threshold value as a target device; and under the condition that the target equipment supports the sending mode corresponding to the message type of the message to be sent, broadcasting the message to be sent through the target equipment.
The range of values of the first threshold may include [0,1km ]. For example, a first threshold is set to 2m, and a broadcasting device with a distance from the first object smaller than 2m is used as a target device.
The broadcasting range of the current position may include a coverage area with the current position of the first object as a center and a preset distance as a radius.
In an exemplary embodiment, the target device may determine that the target device supports a transmission manner corresponding to the message type of the message to be transmitted according to the following manner: determining the equipment type of the target equipment and obtaining the message sending mode supported by the equipment type, such as voice, video, text and the like, and if the message sending mode supported by the equipment type of the target equipment is consistent with the message type of the message to be sent, determining that the target equipment supports the sending mode corresponding to the message type of the message to be sent.
Under the condition that the target equipment supports multiple message sending modes, the target equipment can be subjected to custom limitation, customized output of the target equipment is achieved, for example, under the condition that the target equipment supports voice and video, the message sending mode of the target equipment can be set to be video.
In an exemplary embodiment, as shown in fig. 5, the above-mentioned message sending apparatus further includes a determining module 52, where the determining module 52 is configured to determine whether a second voice message of the first object is received; acquiring a second time period which passes after the message to be sent is sent to the first object under the condition that the second voice message of the first object is received; analyzing the second voice message of the first object to determine a second keyword in the second voice message; and sending a preset reply message to the first object under the condition that the second time period is smaller than a second threshold value and the second keyword is consistent with the preset field.
The range of values of the second threshold may include [0, 30min ]. For example, the second threshold is set to 10min, the preset field is "good in the morning", if the first keyword of the first voice message is "good in the morning", the message to be sent, which is consistent with the preset sending requirement, is selected from the online messages by the intelligent device to send the message to the first object, after the message to be sent is sent, the second time period which passes is determined to be 20min, and if the second keyword in the second voice message is "good in the morning", the preset reply message is sent to the first object.
It should be noted that, the preset reply message may include a prompt for prompting the user that the message to be sent is sent, or may include an inquiry for asking the user whether to enter voice interaction.
In an exemplary embodiment, in the case that it is determined that the user sets the trip event in advance, the location of the trip event may also be acquired, and weather information and news information where the location of the trip event is located may be broadcasted to the user.
An embodiment of the present application also provides a storage medium including a stored program, wherein the program executes the method of any one of the above.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store program code for performing the steps of:
S1, analyzing a first voice message sent by a first object through intelligent equipment, and determining the receiving time of the first voice message and a first keyword of the first voice message;
S2, under the condition that the first keyword of the first voice message is determined to be consistent with a preset field, acquiring an online message corresponding to the receiving moment of the intelligent equipment, and selecting a message to be sent, which is consistent with a preset sending requirement, from the online message;
and S3, the message to be sent is sent to the first object.
An embodiment of the application also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
S1, analyzing a first voice message sent by a first object through intelligent equipment, and determining the receiving time of the first voice message and a first keyword of the first voice message;
S2, under the condition that the first keyword of the first voice message is determined to be consistent with a preset field, acquiring an online message corresponding to the receiving moment of the intelligent equipment, and selecting a message to be sent, which is consistent with a preset sending requirement, from the online message;
and S3, the message to be sent is sent to the first object.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory RAM), a removable hard disk, a magnetic disk, or an optical disk, etc., which can store program codes.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments and optional implementations, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the application described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may alternatively be implemented in program code executable by computing devices, so that they may be stored in a memory device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps within them may be fabricated into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application, which are intended to be comprehended within the scope of the present application.

Claims (8)

1. A method of transmitting a message, comprising:
analyzing a first voice message sent by a first object through intelligent equipment, and determining the receiving time of the first voice message and a first keyword of the first voice message;
Acquiring an online message corresponding to the receiving moment of the intelligent equipment under the condition that the first keyword of the first voice message is consistent with a preset field, and selecting a message to be sent, which is consistent with a preset sending requirement, from the online message;
Sending the message to be sent to the first object;
Wherein sending the message to be sent to the first object includes: determining the current position of the first object, and acquiring broadcasting equipment positioned in a broadcasting range of the current position; determining a broadcasting device with a distance from the first object smaller than a first threshold value as a target device; under the condition that the target equipment supports a sending mode corresponding to the message type of the message to be sent, the message to be sent is broadcasted through the target equipment;
The method comprises the following steps of determining that the target device supports a sending mode corresponding to the message type of the message to be sent: determining the equipment type of the target equipment and obtaining a message sending mode supported by the equipment type; under the condition that the message sending mode supported by the equipment type is consistent with the message type of the message to be sent, the target equipment is determined to support the sending mode corresponding to the message type of the message to be sent;
The selecting the message to be sent, which is consistent with the preset sending requirement, from the online messages comprises the following steps: under the condition that a first time period to which the receiving time belongs is determined to be a first time period, determining a first date corresponding to the receiving time; acquiring weather information of the first date from the online message, determining a travel event to be executed for the first object according to the weather information of the first date, and taking the travel event to be executed determined for the first object as the message to be sent;
wherein the first period of time includes at least: the device comprises a first period, a second period and a third period, wherein the first period, the second period and the third period comprise a starting time and an ending time, the starting time of the first period and the starting time of the second period are both earlier than the starting time of the third period, and the ending time of the first period is earlier than the starting time of the second period.
2. The method for sending a message according to claim 1, wherein obtaining an online message corresponding to the receiving time by the intelligent device includes: determining a first time period to which the receiving time belongs, wherein the first time period at least comprises one of the following: a first period, a second period, and a third period, wherein the first period, the second period, and the third period each include a start time and an end time, the start time of the first period and the start time of the second period are both earlier than the start time of the third period, the end time of the first period is earlier than the start time of the second period, and the end time of the second period is earlier than the start time of the third period; and acquiring all the online messages in the first time period, and taking all the online messages as online messages corresponding to the receiving time.
3. The message transmission method according to claim 1 or 2, characterized in that selecting a message to be transmitted, which is consistent with a preset transmission requirement, from the online messages, comprises:
Under the condition that a first time period to which the receiving time belongs is determined to be a first time period, determining a first date corresponding to the receiving time;
Acquiring news information of a first date from the online message;
Determining news information conforming to a first news type in the news information of the first date as the message to be sent; and/or determining news information conforming to a second news type in the news information of the first date as the message to be sent;
The news information of the first news type comprises news information with highest watching frequency in a news watching record of the first object, and the news information of the second news type comprises news information conforming to the preference of the first object in the news watching record of the first object.
4. The message transmission method according to claim 1, wherein selecting a message to be transmitted, which is consistent with a preset transmission requirement, from the online messages, comprises:
Selecting music to be played from the online message according to a first time period to which the receiving moment belongs, and determining the music to be played as the message to be sent;
Wherein when the first time period to which the receiving time belongs is determined to be the first time period, determining the music with the music tag of the online message as the early music as the music to be played,
In the case that the first time period to which the receiving time belongs is determined to be the second time period, determining the music with the music tag as working in the online message as the music to be played,
And under the condition that the first time period to which the receiving moment belongs is determined to be the third time period, determining the music with the music tag of rest in the online message as the music to be played.
5. The message transmission method according to claim 1, wherein after transmitting the message to be transmitted to the first object, the method further comprises:
Determining whether a second voice message of the first object is received;
acquiring a second time period which passes after the message to be sent is sent to the first object under the condition that the second voice message of the first object is received;
Analyzing the second voice message of the first object to determine a second keyword in the second voice message;
And sending a preset reply message to the first object under the condition that the second time period is smaller than a second threshold value and the second keyword is consistent with the preset field.
6. A message transmission apparatus, comprising:
The analyzing module is used for analyzing the first voice message sent by the first object through the intelligent equipment and determining the receiving time of the first voice message and the first keyword of the first voice message;
The acquisition module is used for acquiring the online message corresponding to the receiving moment of the intelligent equipment and selecting the message to be transmitted, which is consistent with the preset transmission requirement, from the online message under the condition that the first keyword of the first voice message is consistent with the preset field;
a sending module, configured to send the message to be sent to the first object;
the sending module is further used for determining the current position of the first object and acquiring broadcasting equipment located in a broadcasting range of the current position; determining a broadcasting device with a distance from the first object smaller than a first threshold value as a target device; under the condition that the target equipment supports a sending mode corresponding to the message type of the message to be sent, the message to be sent is broadcasted through the target equipment;
The sending module is further configured to determine a device type of the target device, and obtain a message sending manner supported by the device type; under the condition that the message sending mode supported by the equipment type is consistent with the message type of the message to be sent, the target equipment is determined to support the sending mode corresponding to the message type of the message to be sent;
The acquisition module is further configured to determine a first date corresponding to the receiving time when it is determined that a first time period to which the receiving time belongs is a first time period; acquiring weather information of the first date from the online message, determining a travel event to be executed for the first object according to the weather information of the first date, and taking the travel event to be executed determined for the first object as the message to be sent;
wherein the first period of time includes at least: the device comprises a first period, a second period and a third period, wherein the first period, the second period and the third period comprise a starting time and an ending time, the starting time of the first period and the starting time of the second period are both earlier than the starting time of the third period, and the ending time of the first period is earlier than the starting time of the second period.
7. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored program, wherein the program when run performs the method of any of the preceding claims 1 to 5.
8. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of the claims 1 to 5 by means of the computer program.
CN202210259147.7A 2022-03-16 2022-03-16 Message sending method, storage medium and electronic device Active CN114866963B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210259147.7A CN114866963B (en) 2022-03-16 2022-03-16 Message sending method, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210259147.7A CN114866963B (en) 2022-03-16 2022-03-16 Message sending method, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN114866963A CN114866963A (en) 2022-08-05
CN114866963B true CN114866963B (en) 2024-06-25

Family

ID=82627375

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210259147.7A Active CN114866963B (en) 2022-03-16 2022-03-16 Message sending method, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN114866963B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110149392A (en) * 2019-05-17 2019-08-20 优信拍(北京)信息科技有限公司 A kind of management method and device of PUSH message
CN110930999A (en) * 2018-09-19 2020-03-27 上海博泰悦臻电子设备制造有限公司 Voice interaction method and device and vehicle
CN113900832A (en) * 2021-09-10 2022-01-07 深圳市龙慧网络技术有限公司 Property message broadcasting method and device, terminal equipment and medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101552835A (en) * 2009-05-13 2009-10-07 北京中星微电子有限公司 Method of mobile phone information cue and mobile phones
CN103001859B (en) * 2012-12-14 2016-06-29 上海量明科技发展有限公司 The method and system of stream of reply media information in instant messaging
CN103095557A (en) * 2012-12-18 2013-05-08 上海量明科技发展有限公司 Instant messaging information voice output method and system
CN106488042A (en) * 2016-12-15 2017-03-08 卢春宁 A kind of intelligent adjusting method of mobile communication equipment contextual model
CN107465595B (en) * 2017-07-25 2021-01-12 腾讯科技(深圳)有限公司 Equipment message playing control method and device, message playing equipment and storage medium
CN109150692A (en) * 2018-07-28 2019-01-04 北京旺马科技有限公司 Message automatic broadcasting method, system, car-mounted terminal and handheld device
CN110768895A (en) * 2019-10-09 2020-02-07 北京达佳互联信息技术有限公司 Message prompting method and device, electronic equipment and storage medium
JP2021148974A (en) * 2020-03-19 2021-09-27 本田技研工業株式会社 Voice interactive device, voice interactive system, program, and voice interactive method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110930999A (en) * 2018-09-19 2020-03-27 上海博泰悦臻电子设备制造有限公司 Voice interaction method and device and vehicle
CN110149392A (en) * 2019-05-17 2019-08-20 优信拍(北京)信息科技有限公司 A kind of management method and device of PUSH message
CN113900832A (en) * 2021-09-10 2022-01-07 深圳市龙慧网络技术有限公司 Property message broadcasting method and device, terminal equipment and medium

Also Published As

Publication number Publication date
CN114866963A (en) 2022-08-05

Similar Documents

Publication Publication Date Title
DE69807750D1 (en) AN AUDIO VIDEO HOME NET
CN108922528B (en) Method and apparatus for processing speech
US20150355609A1 (en) Crowdsourcing automation rules
CN112738740B (en) Message pushing sending method and device, storage medium and electronic device
US9274754B2 (en) Program generating apparatus, program generation method and computer readable medium
CN114697150B (en) Command issuing method and device, storage medium and electronic device
CN114866963B (en) Message sending method, storage medium and electronic device
CN114884975B (en) Service message processing method and device, storage medium and electronic device
US11012977B2 (en) Method for providing information to and method for broadcasting to a communication terminal of a user, information manager and broadcaster
CN116165931A (en) Control method and system of intelligent equipment, device, storage medium and electronic device
CN116107975A (en) Control method and device of equipment, storage medium and electronic device
CN114783156A (en) Reminding item broadcasting method, storage medium and electronic device
CN114864047A (en) Recipe recommendation method, storage medium and electronic device
CN101785260A (en) Method of receiving/transmitting event message, controlled device, and control point
CN111082882B (en) Method for shoe cabinet to display promotion information and intelligent shoe cabinet
CN114553890A (en) System message processing method and device, computer equipment and storage medium
CN115314331B (en) Control method and device of intelligent terminal, storage medium and electronic device
CN115296947B (en) Control command response method and device, storage medium and electronic device
CN111142740A (en) Data updating method, device and storage medium
CN115190018B (en) Method and device for playing upgrade prompt information, storage medium and electronic device
CN116389436A (en) Broadcasting method and device of processing result, storage medium and electronic device
CN115766643A (en) Message pushing system
CN116339850A (en) Method and device for starting target application, storage medium and electronic device
CN115296944A (en) Scene execution system and method, storage medium, and electronic apparatus
CN114815642A (en) Control method and device of intelligent equipment, storage medium and electronic device

Legal Events

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