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

Message sending method, storage medium and electronic device Download PDF

Info

Publication number
CN114866963A
CN114866963A CN202210259147.7A CN202210259147A CN114866963A CN 114866963 A CN114866963 A CN 114866963A CN 202210259147 A CN202210259147 A CN 202210259147A CN 114866963 A CN114866963 A CN 114866963A
Authority
CN
China
Prior art keywords
message
time period
sent
time
online
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.)
Granted
Application number
CN202210259147.7A
Other languages
Chinese (zh)
Other versions
CN114866963B (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

Images

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, which relate to the technical field of smart homes, and 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; 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 device, 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 by adopting the technical scheme, the problem of how to improve the information interaction efficiency in a voice interaction scene is solved.

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 era of the internet of things, along with the popularization of intelligent equipment, the home scene of the smart home is more and more intelligent. However, the intelligent level of the current intelligent device is still low, a single type of message can be provided for the 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 requirement 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 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, an effective solution is not provided.
Disclosure of Invention
The embodiment of the application provides a message sending method and device, a storage medium and an electronic device, so as to at least solve the problem of how to improve the information interaction efficiency in a voice interaction scene in the related art.
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; 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 device, 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 of the smart 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 time period, a second time period, and a third time period, wherein the first time period, the second time period, and the third time period each include a start time and an end time, the start time of the first time period and the start time of the second time period are each earlier than the start time of the third time period, the end time of the first time period is earlier than the start time of the second time period, and the end time of the second time period is earlier than the start time of the third time period; and acquiring all online messages in the first time period.
In an exemplary embodiment, selecting a message to be sent from the online messages, the message to be sent being consistent with a preset sending requirement, includes: under the condition that the 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 the weather information of the first date from the online message, determining a journey event to be executed for the first object according to the weather information of the first date, and taking the journey event to be executed determined for the first object as the message to be sent.
In an exemplary embodiment, selecting a message to be sent from the online messages, the message to be sent being consistent with a preset sending requirement, includes: under the condition that the 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 which accords with the first news type in the news information of the first date as the message to be sent; and/or determining the news information which accords with the second news type in the news information of the first date as the message to be sent; wherein the news information of the first news type includes news information with the highest viewing frequency in the news watching records of the first object, and the news information of the second news type includes news information which meets the preference of the first object in the news watching records of the first object.
In an exemplary embodiment, selecting a message to be sent from the online messages, the message to be sent being consistent with a preset sending requirement, includes: selecting music to be played from the online message according to the first time period to which the receiving moment belongs, and determining the music to be played as the message to be sent; the music playing method comprises the steps of determining music with a music tag in an online message as early music to be played when a first time period to which the receiving time belongs is determined as the first time period, determining music with the music tag in the online message as working music to be played when the first time period to which the receiving time belongs is determined as the second time period, and determining music with the music tag in the online message as rest music to be played when the first time period to which the receiving time belongs is determined as the third time period.
In an exemplary embodiment, sending the message to be sent to a first object includes: determining the current position of the first object, and acquiring broadcasting equipment located in a broadcasting range of the current position; determining the broadcasting equipment with the distance to the first object smaller than a first threshold value as target equipment; and under the condition that the target device is determined to support a sending mode corresponding to the message type of the message to be sent, broadcasting the message to be sent through the target device.
In one exemplary embodiment, after the message to be sent is sent to the first object, the method further comprises: determining whether a second voice message of the first object is received; under the condition that the second voice message of the first object is determined to be received, acquiring a second time period which passes after the message to be sent is sent to the first object; analyzing a 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 determined to be less 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 intelligent device comprises an analysis module, a first object and a second object, wherein the analysis module is used for analyzing a first voice message sent by the first object through the intelligent device and determining the receiving time of the first voice message and a first keyword of the first voice message; the acquisition module is used for acquiring the online messages corresponding to the receiving time of the intelligent device under the condition that the first keyword of the first voice message is determined to be consistent with the preset field, and selecting the messages to be sent which are consistent with the preset sending requirement from the online messages; and the sending module is used for sending the message to be sent to the first object.
According to another aspect of the embodiments of the present application, there is also provided a computer-readable storage medium, in which a computer program is stored, where the computer program is configured to execute the above-mentioned message sending method when running.
According to another aspect of the embodiments of the present application, there is also provided an electronic apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the 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; 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 device, 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 present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
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 flowchart of a message sending method according to an embodiment of the present application;
fig. 3 is a schematic diagram of a message sending method according to an embodiment of the present application;
fig. 4 is a block diagram (one) of a message sending apparatus according to an embodiment of the present application;
fig. 5 is a block diagram (ii) of a message sending apparatus according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but 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 application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Moreover, 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 Home equipment is widely applied to full-House intelligent digital control application scenes such as intelligent homes (Smart Home), intelligent homes, intelligent Home equipment ecology, intelligent House (Intelligent House) ecology and the like. Optionally, in this embodiment, the 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 configured to provide a service (e.g., an application service) for the terminal or a client installed on the terminal, set a database on the server or independent of the server, and provide a data storage service for the server 104, and configure a cloud computing and/or edge computing service on the server or independent of the server, and provide a data operation service for the server 104.
The network may include, but is not limited to, at least one of: wired networks, wireless networks. The wired network may include, but is not limited to, at least one of: wide area networks, metropolitan area networks, local area networks, which may include, but are not limited to, at least one of the following: WIFI (Wireless Fidelity), bluetooth. Terminal equipment 102 can be but not limited to be PC, the cell-phone, the panel computer, intelligent air conditioner, intelligent cigarette machine, intelligent refrigerator, intelligent oven, intelligent kitchen range, intelligent washing machine, intelligent water heater, intelligent washing equipment, intelligent dish washer, intelligent projection equipment, intelligent TV, intelligent clothes hanger, intelligent (window) curtain, intelligence audio-visual, smart jack, intelligent stereo set, intelligent audio amplifier, intelligent new trend equipment, intelligent kitchen guarding equipment, intelligent bathroom equipment, intelligence robot of sweeping the floor, intelligence robot of wiping the window, intelligence robot of mopping the ground, intelligent air purification equipment, intelligent steam ager, intelligent microwave oven, intelligent kitchen is precious, intelligent clarifier, intelligent water dispenser, intelligent lock etc..
In this embodiment, a message sending method is provided, and is applied to the above-mentioned computer terminal, and fig. 2 is a flowchart of a message sending method according to an embodiment of the present application, where the flowchart includes the following steps:
step S202, 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;
the first object may be understood as an object that performs voice interaction with the smart device, and may include a human being or a robot.
It should be noted that the first keyword may be freely set by a user (i.e., the first object), may also be preset by a background person, and may also 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 device, 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, the source of the virtual resource may include, but is not limited to, the internet, a cloud server, a hard disk, and other physical storage devices.
Step S206, sending the message to be sent to the first object.
Through the steps, the intelligent equipment analyzes the first voice message sent by the first object, and determines the receiving time of the first voice message and the first keyword of the first voice message; 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 device, 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 the information interaction efficiency in a voice interaction scene in the related technology 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 acquire the online message corresponding to the receiving time of the smart device in step S202, a technical solution is provided, and 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 time period, a second time period, and a third time period, wherein the first time period, the second time period, and the third time period each include a start time and an end time, the start time of the first time period and the start time of the second time period are each earlier than the start time of the third time period, the end time of the first time period is earlier than the start time of the second time period, and the end time of the second time period is earlier than the start time of the third time period; and acquiring all online messages in the first time period.
It should be noted that the time unit of the first time period may include year, month, day, hour, etc., and the present application is not limited thereto.
For example, in a case where the time unit of the first time period is an hour, the first time period is, for example, the morning, the second time period is, for example, the afternoon, and the third time period is, for example, the evening.
In one embodiment, in a case that the first time period includes a first time period, the first time period may include 6 o ' clock to 7 o ' clock, and if it is determined that the receiving time is 6 o ' clock to 10 minutes, the on-line message of the smart device between 6 o ' clock to 7 o ' clock is acquired at this time.
In one embodiment, in a case where the first time period includes a first time period and a second time period, the first time period includes, for example, 6 to 8 points, and the second time period includes, for example, 15 to 16 points, if it is determined that the receiving time is 15 to 30 minutes, the on-line message of the smart device between 6 to 15 and 30 minutes is acquired at this time.
In one embodiment, in a case where the first period includes a first period, a second period, and a third period, the first period includes 6 to 8 points, for example, the second period includes 15 to 16 points, for example, and the third period includes 21 to 22 points, for example. And if the receiving time is 21: 20 points, acquiring the online message of the intelligent device between 6: 21: 20 points.
In an exemplary embodiment, in order to better understand how to select a message to be sent that is consistent with a preset sending requirement from the online messages in step S204, a first date corresponding to the receiving time may be determined when the first time period to which the receiving time belongs is determined to be a first time period; and acquiring the weather information of the first date from the online message, determining a journey event to be executed for the first object according to the weather information of the first date, and taking the journey event to be executed determined for the first object as the message to be sent.
In an embodiment, a technical solution for determining a travel event to be executed for the first object according to the weather information on the first date is provided, specifically: when the weather information of the first date is rainy, indoor travel events can be provided for the first object; when the weather information on the first date is clear weather, the first object may be provided with an outdoor trip event.
It should be noted that the travel event may be set by the user in advance, for example, a work travel event, a travel event, or the like, or in the case that the user does not set the travel event in advance, the travel event recommended to the user according to the weather information and the holiday may be determined for the user. For example, in one embodiment, in the case that the first date is determined to be a national day 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 day festival is clear and the travel trip event is not set by the user, a trip event for mountain climbing may be recommended to the user.
In an exemplary embodiment, in order to better understand how to select a message to be sent that is consistent with a preset sending requirement from the online messages in step S204, a first date corresponding to the receiving time may be determined when the first time period to which the receiving time belongs is determined to be a first time period; acquiring news information of the first date from the online message; determining news information which accords with the first news type in the news information of the first date as the message to be sent; and/or determining the news information which accords with the second news type in the news information of the first date as the message to be sent; wherein the news information of the first news type includes news information with the highest viewing frequency in the news watching records of the first object, and the news information of the second news type includes news information which meets the preference of the first object in the news watching records of the first object.
In an exemplary embodiment, in order to better understand how to select a message to be sent that is consistent with a preset sending requirement from the online messages in 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; the method comprises the steps of determining music of which a music tag is a morning music in the online message as the music to be played when a first time period to which the receiving time belongs is determined as the first time period, determining music of which the music tag is a work music in the online message as the music to be played when the first time period to which the receiving time belongs is determined as the second time period, and determining music of which the music tag is a rest music in the online message as the music to be played when the first time period to which the receiving time belongs is determined as the third time period.
In an exemplary embodiment, in order to better understand how to send the message to be sent to the first object in step S206, a technical solution is proposed, which specifically includes: determining the current position of the first object, and acquiring broadcasting equipment located in a broadcasting range of the current position; determining the broadcasting equipment with the distance to the first object smaller than a first threshold value as target equipment; and under the condition that the target device is determined to support a sending mode corresponding to the message type of the message to be sent, broadcasting the message to be sent through the target device.
It should be noted that, the value range of the first threshold may include [0, 1km ]. For example, a first threshold value is set to 2m, and a broadcast device having a distance of less than 2m from the first object is set as a target device.
The broadcast range of the current position may include a coverage range that uses the current position of the first object as a circle center and uses a preset distance as a radius.
In an exemplary embodiment, it may be determined that the target device supports a sending method corresponding to a message type of the message to be sent according to the following method: determining the device type of the target device, and obtaining the message sending mode supported by the device type, such as voice, video, text and the like, if it is determined that the message sending mode supported by the device type of the target device is consistent with the message type of the message to be sent, determining that the target device supports the sending mode corresponding to the message type of the message to be sent.
The target device may be limited by self-definition to realize customized output of the target device when the target device supports multiple message sending modes, for example, the message sending mode of the target device may be set to be a video when the target device supports voice and 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; under the condition that the second voice message of the first object is determined to be received, acquiring a second time period which passes after the message to be sent is sent to the first object; analyzing a 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 determined to be less than a second threshold value and the second keyword is consistent with the preset field.
The value range of the second threshold may include [0, 30min ]. For example, setting the second threshold to 10min, setting the preset field to "good morning", if the first keyword of the first voice message is "good morning", selecting a message to be sent which is consistent with a preset sending requirement from the online messages by the intelligent device, sending the message to be sent to the first object, after the message to be sent is sent, determining that an elapsed second time period is 20min, and if the second keyword in the second voice message is "good morning", sending a preset reply message 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 has been sent, or may include a query for asking the user whether to enter voice interaction.
In an exemplary embodiment, when it is determined that the user has set the travel event in advance, the location of the travel event may be acquired, and weather information and news information where the location of the travel 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 intelligent device comprises an analysis module, a first object and a second object, wherein the analysis module is used for analyzing a first voice message sent by the first object through the intelligent device and determining the receiving time of the first voice message and a first keyword of the first voice message; the acquisition module is used for acquiring the online messages corresponding to the receiving time of the intelligent device under the condition that the first keyword of the first voice message is determined to be consistent with the preset field, and selecting the messages to be sent which are consistent with the preset sending requirement from the online messages; 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 describes a flow of the message sending implementation method with reference to an optional embodiment, but the flow 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 with friendly words through an intelligent device and broadcast information such as time, date, holidays, weather forecast, news early report, music related to early security and the like when the intelligent device speaks the language materials such as early morning in a scene of asking for good early security.
Fig. 3 is a schematic diagram of a message sending method according to an embodiment of the application, and as shown in fig. 3, the following steps are specifically performed:
step S301: acquiring the current time (equivalent 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 (which is equivalent to the first time period), if so, executing step S303, otherwise, executing step S310;
step S303: starting an early-safety question scene, and sending an early-safety question to a user;
step S304: determining a current date (corresponding to the first date) according to the current time, wherein the representation type of the date can comprise a lunar calendar, a solar calendar, a lunar calendar and the like;
step S305: determining whether the current date is a holiday, if so, executing a step S306, and if not, executing a step S307;
step S306: acquiring a weather condition corresponding to the current date, and determining a travel event of the user by combining the weather condition and the holiday;
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 broadcasted for the user in case the event location in the user's travel event is determined.
Step S308: the user is announced a musical splice field statement, such as "you music is played next".
Step S309: determining music to be played according to the current time, wherein the music to be played can be morning-safe music with a music tag of morning;
in one embodiment, the morning security music may be acquired according to a user's listening song record. If the user still requires to play the same song subsequently, the same song can be directly obtained in the redis cache and played to the user. Redis is a high-performance key-value database. The method supports the persistence of data, supports various data structures and supports the backup of data. The database pressure can be reduced, the overall performance is improved, and better user experience is brought.
Step S310: and not starting the early-security scene, prompting the user whether to enter other scenes corresponding to the current time, if so, sending a message to the user according to the other scenes, and if not, sending an end word of the early-security scene to the user, for example, "now noon/afternoon/evening, remember to find me in the morning".
In one embodiment, when the user does not place a call to the smart device with the "good morning" equi-query corpus during the morning hours, a friendly reply (corresponding to the preset reply content) is given to the user through the smart device.
Through the scheme, the real-time weather information, the news early newspaper and the early-security music are acquired in the early-security scene, the aggregate of the information (characters and voice) is provided for the user at one time, 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 message 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 the Dubbo and springboot framework. The Dubbo is a high-performance and light-weight open-source Java RPC framework, and provides interface-oriented remote method invocation, 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 a Spring framework. The Spring boot application development based on the Spring not only inherits the original excellent characteristics of a Spring framework, but also simplifies the whole construction and development process of the Spring application by simplifying configuration. In addition, the SpringBoot integrates a large number of frameworks to enable the problems of version conflict of the dependent packages, instability of citation and the like to be well solved. There are also two very important strategies in the SpringBoot framework: out-of-box use and restraint are preferred over deployment. A specific way is used to configure so that developers no longer need to define a templated configuration. In this way, Spring boots are dedicated to become the leader in the briskly developing field of rapid application development (rapid application development). The number of decisions required by developers is reduced, a large number of XML configurations are reduced, and the work of compiling, testing, packaging and the like of codes can be automated.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method of the embodiments of the present application.
Fig. 4 is a block diagram (a) of a message sending apparatus according to an embodiment of the present application. As shown in fig. 4, includes:
the analysis module 42 is configured to analyze, by the smart device, a first voice message sent by a 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 human being or a robot.
It should be noted that the first keyword may be freely set by a user (i.e., the first object), may be preset by a background person, and may also be determined according to a voice record of the user.
An obtaining module 44, configured to obtain, when it is determined that a first keyword of the first voice message is consistent with a preset field, an online message corresponding to the receiving time of the smart device, and select, from the online message, a message to be sent that is consistent with a preset sending requirement;
it should be noted that the above online message may be understood as information obtained from a virtual resource, for example, the source of the virtual resource may include, but is not limited to, the internet, a cloud server, a hard disk, and other physical storage devices.
A sending module 46, configured to send the message to be sent to the first object.
By the device, the intelligent equipment analyzes the first voice message sent by the first object, and determines the receiving time of the first voice message and the first keyword of the first voice message; 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 device, 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 the information interaction efficiency in a voice interaction scene in the related technology 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 time period to which the receiving time belongs, where the first time period includes at least one of: a first time period, a second time period, and a third time period, wherein the first time period, the second time period, and the third time period each include a start time and an end time, the start time of the first time period and the start time of the second time period are each earlier than the start time of the third time period, the end time of the first time period is earlier than the start time of the second time period, and the end time of the second time period is earlier than the start time of the third time period; and acquiring all online messages in the first time period.
It should be noted that the time unit of the first time period may include year, month, day, hour, etc., and the present application is not limited thereto.
For example, in a case where the time unit of the first time period is an hour, the first time period is, for example, the morning, the second time period is, for example, the afternoon, and the third time period is, for example, the evening.
In one embodiment, in a case that the first period of time includes a first period of time, the first period of time may include 6 to 7 points, and if it is determined that the receiving time is 6 to 10 minutes, the on-line message of the smart device between 6 to 7 points is acquired at the time.
In one embodiment, in a case where the first time period includes a first time period and a second time period, the first time period includes, for example, 6 to 8 points, and the second time period includes, for example, 15 to 16 points, if it is determined that the receiving time is 15 to 30 minutes, the on-line message of the smart device between 6 to 15 and 30 minutes is acquired at this time.
In one embodiment, in a case where the first period includes a first period, a second period, and a third period, the first period includes 6 to 8 points, for example, the second period includes 15 to 16 points, for example, and the third period includes 21 to 22 points, for example. If the receiving time is 21 o ' clock and 20 minutes, the online message of the intelligent device between 6 o ' clock and 21 o ' clock and 20 minutes is acquired.
In an exemplary embodiment, the obtaining module is further configured to, when it is determined that a first time period to which the receiving time belongs is a first time period, determine a first date corresponding to the receiving time; and acquiring the weather information of the first date from the online message, determining a journey event to be executed for the first object according to the weather information of the first date, and taking the journey event to be executed determined for the first object as the message to be sent.
In an embodiment, a technical solution for determining a travel event to be executed for the first object according to the weather information on the first date is provided, specifically: when the weather information of the first date is rainy, indoor travel events can be provided for the first object; when the weather information on the first date is clear weather, the first object may be provided with an outdoor trip event.
It should be noted that the travel event may be set by the user in advance, for example, a work travel event, a travel event, or the like, or in the case that the user does not set the travel event in advance, the travel event recommended to the user according to the weather information and the holiday may be determined for the user. For example, in one embodiment, in the case that the first date is determined to be a national day 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 day festival is clear and the travel trip event is not set by the user, a trip event for mountain climbing may be recommended to the user.
In an exemplary embodiment, the obtaining module is further configured to, when it is determined that a first time period to which the receiving time belongs is a first time period, determine a first date corresponding to the receiving time; acquiring news information of the first date from the online message; determining news information which accords with the first news type in the news information of the first date as the message to be sent; and/or determining the news information which accords with the second news type in the news information of the first date as the message to be sent; wherein the news information of the first news type includes news information with the highest viewing frequency in the news watching records of the first object, and the news information of the second news type includes news information which meets the preference of the first object in the news watching records of the first object.
In an exemplary embodiment, the obtaining module is further configured to select music to be played from the online message according to a first time period to which the receiving time belongs, and determine the music to be played as the message to be sent; the music playing method comprises the steps of determining music with a music tag in an online message as early music to be played when a first time period to which the receiving time belongs is determined as the first time period, determining music with the music tag in the online message as working music to be played when the first time period to which the receiving time belongs is determined as the second time period, and determining music with the music tag in the online message as rest music to be played when the first time period to which the receiving time belongs is determined as the third time period.
In an exemplary embodiment, the sending module is further configured to determine a current position of the first object, and acquire a broadcast device located in a broadcast range of the current position; determining the broadcasting equipment with the distance to the first object smaller than a first threshold value as target equipment; and under the condition that the target device is determined to support a sending mode corresponding to the message type of the message to be sent, broadcasting the message to be sent through the target device.
It should be noted that, the value range of the first threshold may include [0, 1km ]. For example, a first threshold value is set to 2m, and a broadcast device having a distance of less than 2m from the first object is set as a target device.
The broadcast range of the current position may include a coverage range that uses the current position of the first object as a circle center and uses a preset distance as a radius.
In an exemplary embodiment, it may be determined that the target device supports a sending method corresponding to a message type of the message to be sent according to the following method: determining the device type of the target device, and obtaining the message sending mode supported by the device type, such as voice, video, text and the like, if it is determined that the message sending mode supported by the device type of the target device is consistent with the message type of the message to be sent, determining that the target device supports the sending mode corresponding to the message type of the message to be sent.
The target device may be limited by self-definition to realize customized output of the target device when the target device supports multiple message sending modes, for example, the message sending mode of the target device may be set to be a video when the target device supports voice and video.
In an exemplary embodiment, as shown in fig. 5, the message sending apparatus further includes a determining module 52, wherein the determining module 52 is configured to determine whether a second voice message of the first object is received; under the condition that the second voice message of the first object is determined to be received, acquiring a second time period which passes after the message to be sent is sent to the first object; analyzing a 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 determined to be less than a second threshold value and the second keyword is consistent with the preset field.
The value range of the second threshold may include [0, 30min ]. For example, setting the second threshold to 10min, setting the preset field to "good morning", if the first keyword of the first voice message is "good morning", selecting a message to be sent which is consistent with a preset sending requirement from the online messages by the intelligent device, sending the message to be sent to the first object, after the message to be sent is sent, determining that an elapsed second time period is 20min, and if the second keyword in the second voice message is "good morning", sending a preset reply message 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 has been sent, or may include a query for asking the user whether to enter voice interaction.
In an exemplary embodiment, when it is determined that the user has set the travel event in advance, the location of the travel event may be acquired, and weather information and news information where the location of the travel event is located may be broadcasted to the user.
Embodiments of the present application also provide a storage medium including a stored program, where the program performs any one of the methods described above when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store program codes for performing the following steps:
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, acquiring the online message corresponding to the receiving moment of the intelligent device under the condition that the first keyword of the first voice message is determined to be consistent with a preset field, and selecting a message to be sent which is consistent with a preset sending requirement from the online message;
s3, the message to be sent is sent to the first object.
Embodiments of the present application further provide an electronic device comprising a memory having a computer program stored therein and a processor configured to execute the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the 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, acquiring the online message corresponding to the receiving moment of the intelligent device under the condition that the first keyword of the first voice message is determined to be consistent with a preset field, and selecting a message to be sent which is consistent with a preset sending requirement from the online message;
s3, the message to be sent is sent to the first object.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing program codes, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present application described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (10)

1. A method for sending 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;
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 device, 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.
2. The message sending method according to claim 1, wherein obtaining the online message corresponding to the receiving time of the smart device comprises:
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 time period, a second time period, and a third time period, wherein the first time period, the second time period, and the third time period each include a start time and an end time, the start time of the first time period and the start time of the second time period are each earlier than the start time of the third time period, the end time of the first time period is earlier than the start time of the second time period, and the end time of the second time period is earlier than the start time of the third time period;
and acquiring all online messages in the first time period, and taking all online messages as the online messages corresponding to the receiving time.
3. The method according to claim 2, wherein selecting the message to be sent from the online messages, the message to be sent being in accordance with a preset sending requirement, comprises:
under the condition that the 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 the weather information of the first date from the online message, determining a journey event to be executed for the first object according to the weather information of the first date, and taking the journey event to be executed determined for the first object as the message to be sent.
4. The method according to claim 2 or 3, wherein selecting the message to be sent from the online messages, which is consistent with a preset sending requirement, comprises:
under the condition that the 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 which accords with the first news type in the news information of the first date as the message to be sent; and/or determining the news information which accords with the second news type in the news information of the first date as the message to be sent;
wherein the news information of the first news type includes news information with the highest viewing frequency in the news watching records of the first object, and the news information of the second news type includes news information which meets the preference of the first object in the news watching records of the first object.
5. The method according to any one of claims 2 to 4, wherein selecting the message to be sent from the online messages, which is in accordance with a preset sending requirement, comprises:
selecting music to be played from the online message according to the first time period to which the receiving moment belongs, and determining the music to be played as the message to be sent;
wherein, when it is determined that the first time period to which the reception time belongs is the first time period, determining music in which a music tag in the online message is a morning as the music to be played,
determining the music with the music tag working in the online message as the music to be played under the condition that the first time period to which the receiving time belongs is determined as the second time period,
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 label at rest in the online message as the music to be played.
6. The method according to any one of claims 1 to 5, wherein sending the message to be sent to a first object comprises:
determining the current position of the first object, and acquiring broadcasting equipment located in a broadcasting range of the current position;
determining the broadcasting equipment with the distance to the first object smaller than a first threshold value as target equipment;
and under the condition that the target device is determined to support a sending mode corresponding to the message type of the message to be sent, broadcasting the message to be sent through the target device.
7. The method according to any one of claims 1 to 6, 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;
under the condition that the second voice message of the first object is determined to be received, acquiring a second time period which passes after the message to be sent is sent to the first object;
analyzing a 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 determined to be less than a second threshold value and the second keyword is consistent with the preset field.
8. A message transmission apparatus, comprising:
the intelligent device comprises an analysis module, a first object and a second object, wherein the analysis module is used for analyzing a first voice message sent by the first object through the intelligent device and determining the receiving time of the first voice message and a first keyword of the first voice message;
the acquisition module is used for acquiring the online messages corresponding to the receiving time of the intelligent device under the condition that the first keyword of the first voice message is determined to be consistent with the preset field, and selecting the messages to be sent which are consistent with the preset sending requirement from the online messages;
and the sending module is used for sending the message to be sent to the first object.
9. A computer-readable storage medium, comprising a stored program, wherein the program is operable to perform the method of any one of claims 1 to 7.
10. 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 of any of claims 1 to 7 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 true CN114866963A (en) 2022-08-05
CN114866963B 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 (11)

* 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
CN103001859A (en) * 2012-12-14 2013-03-27 上海量明科技发展有限公司 Method and system for replying streaming media messages 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
CN107465595A (en) * 2017-07-25 2017-12-12 腾讯科技(深圳)有限公司 Equipment message control method for playing back, device, message playback equipment and storage medium
CN109150692A (en) * 2018-07-28 2019-01-04 北京旺马科技有限公司 Message automatic broadcasting method, system, car-mounted terminal and handheld device
CN110149392A (en) * 2019-05-17 2019-08-20 优信拍(北京)信息科技有限公司 A kind of management method and device of PUSH message
CN110768895A (en) * 2019-10-09 2020-02-07 北京达佳互联信息技术有限公司 Message prompting method and device, electronic equipment and storage medium
CN110930999A (en) * 2018-09-19 2020-03-27 上海博泰悦臻电子设备制造有限公司 Voice interaction method and device and vehicle
JP2021148974A (en) * 2020-03-19 2021-09-27 本田技研工業株式会社 Voice interactive device, voice interactive system, program, and voice interactive method
CN113900832A (en) * 2021-09-10 2022-01-07 深圳市龙慧网络技术有限公司 Property message broadcasting method and device, terminal equipment and medium

Patent Citations (11)

* 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
CN103001859A (en) * 2012-12-14 2013-03-27 上海量明科技发展有限公司 Method and system for replying streaming media messages 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
CN107465595A (en) * 2017-07-25 2017-12-12 腾讯科技(深圳)有限公司 Equipment message control method for playing back, device, message playback equipment and storage medium
CN109150692A (en) * 2018-07-28 2019-01-04 北京旺马科技有限公司 Message automatic broadcasting method, system, car-mounted terminal and handheld device
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
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
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
CN114866963B (en) 2024-06-25

Similar Documents

Publication Publication Date Title
CN110659121B (en) Task data acquisition method and device, task configuration method and device and server
CN109313901A (en) Information processing unit, reception device and information processing method
CN110262264B (en) Household equipment control method and device for simplifying user operation and household equipment
CN109275005A (en) Combined key remote control method, device, equipment and storage medium
CN111163076A (en) Live broadcast message pushing method and related equipment for network live broadcast
CN115167164A (en) Method and device for determining equipment scene, storage medium and electronic device
CN114697150A (en) Command issuing method and device, storage medium and electronic device
CN114866963A (en) Message sending method, storage medium and electronic device
CN114783156A (en) Reminding item broadcasting method, storage medium and electronic device
CN104822075A (en) Information pushing method and device thereof
CN103455340A (en) Application program loading method and system of Android systems
CN116165931A (en) Control method and system of intelligent equipment, device, storage medium and electronic device
CN107527608A (en) The preset singing Qu Fangfa and terminal of self-service jukebox
CN115048392A (en) Data deletion method and device, storage medium and electronic device
CN111082882B (en) Method for shoe cabinet to display promotion information and intelligent shoe cabinet
CN114915514A (en) Intention processing method and device, storage medium and electronic device
CN113993122A (en) NB-IOT terminal, communication method and communication system
CN114553890A (en) System message processing method and device, computer equipment and storage medium
CN115190018B (en) Method and device for playing upgrade prompt information, storage medium and electronic device
CN114697298B (en) Method and device for acquiring multimedia resources, storage medium and electronic device
CN115658178A (en) Method and device for acquiring user behavior dynamic buried point data and storage medium
CN114999494A (en) Voice interaction function testing method and device, storage medium and electronic device
CN111190668B (en) User Interface (UI) event response method and device, electronic equipment and storage medium
CN114595117A (en) Buried point data acquisition method and device, medium and electronic equipment
CN116389436A (en) Broadcasting method and device of processing result, 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