CN110602152A - Voice broadcasting method and device, server, storage medium and household appliance - Google Patents

Voice broadcasting method and device, server, storage medium and household appliance Download PDF

Info

Publication number
CN110602152A
CN110602152A CN201810600403.8A CN201810600403A CN110602152A CN 110602152 A CN110602152 A CN 110602152A CN 201810600403 A CN201810600403 A CN 201810600403A CN 110602152 A CN110602152 A CN 110602152A
Authority
CN
China
Prior art keywords
audio file
server
preset event
voice
response message
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.)
Pending
Application number
CN201810600403.8A
Other languages
Chinese (zh)
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.)
Foshan Shunde Midea Electrical Heating Appliances Manufacturing Co Ltd
Original Assignee
Foshan Shunde Midea Electrical Heating Appliances Manufacturing 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 Foshan Shunde Midea Electrical Heating Appliances Manufacturing Co Ltd filed Critical Foshan Shunde Midea Electrical Heating Appliances Manufacturing Co Ltd
Priority to CN201810600403.8A priority Critical patent/CN110602152A/en
Publication of CN110602152A publication Critical patent/CN110602152A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B3/00Audible signalling systems; Audible personal calling systems
    • G08B3/10Audible signalling systems; Audible personal calling systems using electric transmission; using electromagnetic transmission
    • 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
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • 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
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a voice broadcasting method and device, a server, a storage medium and household appliances, wherein the method comprises the following steps: receiving a notification message sent by a first microprocessor and triggered by a preset event; responding to the notification message, and sending a first request message for acquiring an audio file to a server, wherein the first request message carries an identifier of the preset event; receiving and analyzing a first response message sent by a server, and acquiring an audio file carried in the first response message; and playing the audio file.

Description

Voice broadcasting method and device, server, storage medium and household appliance
Technical Field
The invention relates to the technical field of household appliances, in particular to a voice broadcasting method and device, a server, a storage medium and household appliance equipment.
Background
With the development of computer technology and network technology, the intellectualization and the networking of household electrical appliances are the development direction of future household electrical appliances. The current interaction mode of intelligent household appliances is mostly in a display interface interaction mode, some existing intelligent household appliances can carry out voice broadcast at present, but the current voice broadcast mostly adopts an off-line voice scheme, an audio file is called in a memory of a product, but in the mode, when the voice broadcast content of the product needs to be changed, burning of each product needs to be carried out again, the development difficulty is increased, and the change and maintenance of the sold product are not facilitated. And the voice broadcast module and the wireless communication module of the intelligent household electrical appliances that can carry out voice broadcast at present are two independent modules, and the function is single, and are controlled by microprocessor respectively, if in fact when acquireing the audio file through wireless communication module, all need carry out the analysis with the audio file through microprocessor at every turn and control the play of voice broadcast module, and the module integration rate is low.
Disclosure of Invention
In view of this, embodiments of the present invention provide a voice broadcasting method and apparatus, a server, a storage medium, and a home appliance device to solve at least one problem in the prior art, where an audio file of voice broadcasting is placed in the server, and when the audio file needs to be modified, the audio file at the server end can be modified, so as to facilitate modification and maintenance of the audio file in the processes of development and after-sale of the home appliance device, and the voice broadcasting apparatus completes acquisition and broadcasting of the audio file, thereby improving the module integration rate.
The technical scheme of the embodiment of the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a voice broadcast method, where the method includes:
receiving a notification message sent by a first microprocessor and triggered by a preset event;
responding to the notification message, and sending a first request message for acquiring an audio file to a server, wherein the first request message carries an identifier of the preset event;
receiving and analyzing a first response message sent by a server, and acquiring an audio file carried in the first response message;
and playing the audio file.
In a second aspect, an embodiment of the present invention provides a voice broadcast method, where the method includes:
receiving a first request message for acquiring an audio file, wherein the first request message carries an identifier of a preset event;
and if the audio file corresponding to the preset event is stored, sending a first response message carrying the audio file to a voice broadcasting device.
In a third aspect, an embodiment of the present invention provides a voice broadcast device, where the device at least includes: communication module, voice broadcast module, storage module and second microprocessor, wherein
The communication module is used for communicating with a server;
the voice broadcasting module is used for broadcasting the decoded audio file;
the storage module is used for storing a voice broadcasting program;
the second microprocessor is used for executing the voice broadcast program stored in the storage module so as to realize the following steps:
receiving a notification message sent by a first microprocessor and triggered by a preset event;
responding to the notification message, and sending a first request message for acquiring an audio file to a server, wherein the notification message is sent by a first microprocessor, and the first request message carries an identifier of the preset event;
receiving and analyzing a first response message sent by a server, and acquiring an audio file carried in the first response message;
and playing the audio file.
In a fourth aspect, an embodiment of the present invention provides a server, where the server at least includes: a memory and a processor, wherein:
the memory is used for storing a voice broadcasting program;
the processor is used for executing the voice broadcast program stored in the storage module so as to realize the following steps:
receiving a first request message for acquiring an audio file, wherein the first request message carries an identifier of a preset event;
and if the audio file corresponding to the preset event is stored, sending a first response message carrying the audio file to a voice broadcasting device.
In a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a voice broadcast program is stored on the computer-readable storage medium, and the voice broadcast program, when executed by a processor, implements the steps of the voice broadcast method described above.
In a sixth aspect, an embodiment of the present invention provides a home appliance, where the home appliance at least includes a first microprocessor and the voice broadcast device.
The embodiment of the invention provides a voice broadcasting method and device, a server, a storage medium and household appliances, which firstly receive a notification message sent by a first microprocessor and triggered by a preset event; responding to the notification message, and sending a first request message for acquiring an audio file to a server, wherein the first request message carries an identifier of the preset event; then receiving and analyzing a first response message sent by a server, and acquiring an audio file carried in the first response message; and finally, playing the audio file. Therefore, the audio file with the voice broadcast is placed on the server, the audio file at the server end can be modified when the audio file is required to be modified, so that the audio file can be conveniently changed and maintained in the process of development and after-sale of household appliances, the voice broadcast device is used for acquiring and broadcasting the audio file, and the module integration rate is improved.
Drawings
Fig. 1 is a schematic view of an implementation flow of a voice broadcasting method according to an embodiment of the present invention;
fig. 2 is a schematic view of an implementation flow of a voice broadcast method according to a second embodiment of the present invention;
fig. 3 is a schematic diagram of a structure of a voice broadcast device according to a third embodiment of the present invention;
fig. 4 is a schematic view of an application scenario of a third voice broadcast method according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating a correspondence relationship between a third scene and an audio file according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a composition structure of a four-voice broadcasting device according to an embodiment of the present invention.
Detailed Description
The technical solution of the present invention is further elaborated below with reference to the drawings and the specific embodiments.
Example one
The embodiment of the invention provides a voice broadcasting method which is applied to a voice broadcasting device, and the voice broadcasting device is arranged in household electrical appliance equipment. The functions realized by the voice broadcasting method can be realized by calling a program code through a processor in the voice broadcasting device, and the program code can be saved in a computer storage medium. Fig. 1 is a schematic diagram of an implementation flow of a voice broadcasting method according to an embodiment of the present invention, and as shown in fig. 1, the method includes the following steps:
and step S101, receiving a notification message that a preset event is triggered and sent by the first microprocessor.
Here, the first microprocessor is a microprocessor in the household appliance, and is configured to monitor whether a preset event is triggered and control the voice broadcasting device, and in some cases, the first microprocessor may be also configured as a microcontroller.
When the household appliance is a cooking appliance, the preset event may be that cooking is completed; may be a malfunction of the cooking appliance, e.g. a failure of the temperature sensor; it may also be some non-compliant operation by the user, for example, the user forgets to place the pot in. When the household appliance is an air conditioner, the preset event may be that the temperature is higher than a certain threshold, or that the temperature is lower than a certain threshold, or the like.
When monitoring that a preset event is triggered, the first microprocessor sends a notification message to the voice broadcast device, where the notification message carries an identifier of the preset event, and in other embodiments, the notification message may also carry subject information of the preset event, where the subject information is used to simply and clearly illustrate a condition of the preset event.
Step S102, responding to the notification message, and sending a first request message for acquiring the audio file to the server.
Here, the first request message carries an identifier of the preset event; the identifier of the preset event is preset by a developer of the voice broadcasting method, and the identifier of the preset event can be a character or a character string. For example, the indication that cooking is completed may be 1, the indication that the temperature sensor fails may be E1, and the indication that the user forgets to put the pot into the pot may be E2.
Step S103, receiving and analyzing a first response message sent by the server, and acquiring an audio file carried in the first response message.
Here, the first response message carries an audio file, and after receiving the first response message, the voice broadcast device parses the first response message to obtain the audio file. The audio file is an audio file corresponding to a preset event. It should be noted that the audio file may be a standard audio file set in advance by a developer of the voice broadcasting method provided in this embodiment, or may also be a personalized audio file customized by the user according to the own requirement, for example, the audio file may be a voice recorded by the user, or may also be an audio file downloaded over the network.
And step S104, playing the audio file.
Here, playing the audio file may be achieved by:
step S1041, decoding the audio file to obtain a decoded audio file;
step S1042, controlling the voice playing module to play the decoded audio file.
Here, in this embodiment, the audio file is a digital audio file, and decoding means converting a read digital audio signal into an analog audio signal for output, or decoding and restoring multi-channel audio information encoded during recording. And the decoded audio file is an analog audio file, that is, a sound heard at ordinary times.
The audio playing module can only play analog audio files, so that the digital audio files need to be decoded, and then the decoded audio files are played through the audio playing module.
In this embodiment, the voice broadcast device collects the function in an organic whole of communication module and voice broadcast module, accomplish again with the data communication between the server, need not send the audio file again after obtaining the audio file and decode for first microprocessor, then play the audio file by first microprocessor control audio playback module, but the process of decoding and broadcast audio file just can be accomplished to self, has not only improved the integrated rate of module, and simplified the broadcast process, improved broadcast efficiency.
In the voice broadcasting method provided by the embodiment of the invention, firstly, a notification message sent by a first microprocessor and triggered by a preset event is received, and a first request message for acquiring an audio file is sent to a server in response to the notification message, wherein the first request message carries an identifier of the preset event; then receiving and analyzing a first response message sent by a server, and acquiring an audio file carried in the first response message; and finally, playing the audio file. Therefore, the audio file with the voice broadcast is placed on the server, the audio file at the server end can be modified when the audio file is required to be modified, so that the audio file can be conveniently changed and maintained in the process of development and after-sale of household appliances, the voice broadcast device is used for acquiring and broadcasting the audio file, and the module integration rate is improved.
Example two
Based on the foregoing embodiment, an embodiment of the present invention further provides a voice broadcast method, which is applied to a voice broadcast system, where the voice broadcast system at least includes: server, first microprocessor and voice broadcast device. Fig. 2 is a schematic view of an implementation flow of a voice broadcast method according to an embodiment of the present invention, and as shown in fig. 2, the method includes the following steps:
in step S201, the first microprocessor determines whether it is detected that a preset event is triggered.
Here, if the first microprocessor monitors that a preset event is triggered, it goes to step S202; and if the first microprocessor does not monitor that the preset event is triggered, ending the process.
Step S202, the first microprocessor sends a notification message to the voice broadcast device.
Here, the notification message carries the identifier of the preset event and the subject information of the preset event.
Step S203, the voice broadcasting device determines whether an audio file corresponding to the preset event is stored in the voice broadcasting device.
Here, if an audio file corresponding to the preset event is stored in the voice broadcasting device, go to step S204; if the voice broadcasting device does not store the audio file corresponding to the preset event, the process proceeds to step S205.
And step S204, the voice broadcasting device plays the audio file stored by the voice broadcasting device.
In step S205, the voice broadcasting device sends a first request message for acquiring an audio file to a server.
Here, the first request message carries an identifier of the preset event, and in this embodiment, the first request message also carries subject information of the preset event.
In step S206, the server determines whether an audio file corresponding to the preset event is stored.
Here, the server first receives a first request message for acquiring an audio file, and parses the first request message to acquire an identifier of a preset event carried in the first request message.
If the server stores the audio file corresponding to the preset event, step S207 is performed; and if the server does not store the audio file corresponding to the preset event, entering step 31.
Step S207, the server sends the first response message carrying the audio file to a voice broadcast device.
In step S208, the voice broadcast device determines whether the first response message sent by the server is received within a preset time period.
Here, the preset duration may be preset by a developer of the voice playing method, or may be set by a user according to a requirement of the user. For example, the preset time period may be 1 minute, 30 seconds, or the like.
If the voice broadcasting device receives the first response message within a preset time, the step S209 is performed; if the voice broadcast device does not receive the first response message within the preset time, step S211 is performed.
Step S209, the voice broadcasting device parses the first response message sent by the server, and acquires the audio file carried in the first response message.
Here, the Audio file acquired by the voice broadcasting apparatus is a digital Audio file, and the format may be a Compact Disc (CD) format, a Waveform (WAVE) format, a motion picture Experts Group Audio Layer III (MP 3) format, an Audio Video Interleaved (AVI) format, and so on, and since the Audio quality requirement of the home appliance device is often not very high when performing voice broadcasting, the Audio file is not usually in a CD format, but in a WAVE or MP3 format.
And step S210, the voice broadcasting device plays the audio file.
Here, when the audio file is played by the voice playing apparatus, the audio file is decoded to obtain an analog audio file, and then the analog audio file is played by the voice playing module.
In step S211, the voice broadcast apparatus acquires a preset default audio file.
Here, the preset default audio file is generally set in advance by a developer of the voice broadcasting method of the present embodiment, and the user cannot change the preset default audio file.
In step S212, the voice broadcasting device plays the default audio file.
In other embodiments, after the step S206, the method further includes:
and step 31, if the audio file corresponding to the preset event is not stored, the server sends a second request message for recording the audio data to the user terminal.
Here, the second request message carries subject information of the preset event; the theme information facilitates the user to understand what the preset event is, to select an appropriate audio file.
And step 32, after receiving the second request message, the user terminal generates and outputs prompt information for prompting the user to select the user-defined audio file.
Here, format requirements for the custom audio file, such as file type, audio duration, etc., may be included in the prompt message. The user can record the self-defined audio file according to the preset event, and can adjust the audio file stored in the user terminal to obtain the self-defined audio file meeting the format requirement, and certainly can download the individual audio file from the network.
And step 33, the user terminal acquires the user-defined audio file selected by the user, and sends the user-defined audio file to the server in a second response message.
And step 34, the server receives and analyzes a second response message sent by the user terminal, and obtains a custom audio file carried in the second response message.
And step 35, the server establishes a corresponding relation between the preset event and the user-defined audio file.
And step 36, the server sends a first response message carrying the custom audio file to the voice broadcasting device.
In the voice playing method provided by the embodiment of the invention, firstly, when the voice broadcasting device receives a notification message that a preset event is triggered and sent by a first microprocessor, the voice broadcasting device judges whether an audio file corresponding to the preset event is stored in the voice broadcasting device; if the voice broadcasting device stores the audio file corresponding to the preset event, the voice broadcasting device plays the audio file; if the audio file corresponding to the preset event is not stored in the server, sending a first request message for acquiring the audio file to the server; if the server stores the audio file corresponding to the preset event, the server sends a first response message carrying the audio file to a voice broadcasting device, and if the voice broadcasting device receives the first response message, the audio file is acquired and played; if the first response message is not received, the voice broadcasting device acquires and plays a preset default audio file; therefore, the audio file is placed in the server, the audio file at the server end can be modified when the audio file needs to be modified, so that the audio file can be conveniently changed and maintained in the process of developing and after-sale of the household appliance, and the user-defined audio file can be obtained through the user terminal when the server does not have the audio file corresponding to the preset event, so that the interest of man-machine interaction is increased.
EXAMPLE III
The embodiment of the invention provides a voice broadcasting device and a method for a cooking appliance, fig. 3 is a schematic view of a composition structure of a third voice broadcasting device in the embodiment of the invention, and as shown in fig. 3, the device 300 at least includes: Wi-Fi transceiver module 301, microcontroller 302, voice driver module 303 and loudspeaker 304, wherein:
the Wi-Fi transceiver module 301 is configured to perform data communication with a server through a network middle layer to obtain an audio file.
The microcontroller 302 is configured to decode the audio file acquired by the Wi-Fi transceiver module, and control the voice driver module 303 to play the decoded audio file by using the speaker 304.
The voice driving module 303 is configured to drive the speaker 304 to generate sound.
The speaker 304 is configured to play the decoded audio file.
Fig. 4 is a schematic view of an application scenario of a third voice broadcast method according to an embodiment of the present invention, and as shown in fig. 4, the application scenario includes: cooking product 401, network intermediary 402, and server 403, wherein: culinary product 401 further includes: a cooking product microcontroller 4011 and a Wi-Fi voice announcement device 4012.
As shown in fig. 4, a Wi-Fi voice announcement device is placed on a cooking product 401, and as one of components of the cooking product 401, a microcontroller 4011 of the cooking product may control the Wi-Fi voice announcement device 4012 to perform voice announcement and data communication with the outside (server 403) through Wi-Fi (network middle layer 402).
In this embodiment, the microcontroller of the Wi-Fi voice playing apparatus may receive an external audio file (such as a server) through the Wi-Fi transceiver module, and after decoding, control the voice driving module to drive the speaker to make a sound, so as to play the audio file, thereby implementing a voice broadcasting function.
It should be noted that the microcontroller 4011 of the cooking product in this embodiment has the same function as the first microprocessor in the other embodiments, and the microcontroller of the Wi-Fi voice playing device has the same function as the second microprocessor in the other embodiments.
As shown in fig. 3 and 4, the voice broadcasting device provided by the embodiment of the present invention integrates the voice broadcasting module on the basis of the Wi-Fi transceiver module, that is, the voice broadcasting device integrates the Wi-Fi transceiver module and the voice broadcasting module, and has both a Wi-Fi function and a voice broadcasting function. After the Wi-Fi receiving and sending module acquires the audio file sent by the server, the microcontroller in the voice broadcasting device analyzes the audio file and controls the voice driving module to drive the loudspeaker to play the audio file, namely, the process of acquiring and playing the audio file is completed by the voice broadcasting device, the audio file is not required to be sent to the microcontroller of the cooking product for decoding after the audio file is acquired, and then the microcontroller of the cooking product controls the voice driving module to drive the loudspeaker to play the audio file, but the process of decoding and playing the audio file can be completed by the microcontroller of the cooking product.
The voice broadcast contents are transmitted to the cooking appliance through the Wi-Fi, so that only the update is needed on the server when the broadcast contents are changed.
In the embodiment, the audio file (voice broadcast content) is preferably and completely placed at a server end (or at least partially placed inside the voice playing module), the audio file is acquired from the server end through a Wi-Fi transceiver module and is transmitted to a cooking appliance for decoding, and then the audio file is played by driving a loudspeaker through a voice driving module; because the audio file is placed at the server end, when the audio file needs to be modified or updated, only the audio file at the server end needs to be modified or updated, and each product does not need to be modified or updated, so that the audio file can be conveniently modified and maintained in the product development and after-sale processes.
It should be noted that, in this embodiment, a scene requiring voice broadcast in a cooking product corresponds to a server-side audio file, and fig. 5 is a schematic diagram illustrating a correspondence relationship between three scenes and an audio file according to an embodiment of the present invention, as shown in fig. 5, a scene 1 corresponds to a scene 1 audio file, a scene 2 corresponds to a scene 2 audio file, a scene 3 corresponds to a scene 3 audio file, and a scene 4 corresponds to a scene 4 audio file. When a microcontroller of a cooking product judges that a certain scene needing audio broadcasting is triggered, the microcontroller applies for an audio file corresponding to the scene to a server through a Wi-Fi receiving and sending module in a Wi-Fi voice broadcasting device, the server sends the audio file to the cooking product, and the cooking product controls a Wi-Fi voice broadcasting device to drive a loudspeaker to perform voice broadcasting.
In addition, Wi-Fi voice broadcast device in this embodiment is mainly used for carrying out cooking utensil's operation suggestion and trouble report on the cooking utensil, if the electric rice cooker temperature sensor reports the trouble reason through voice broadcast after damaging, reminds the user to place the pan etc. when the user forgets to put the pot. The cooking appliances mentioned in the embodiment include, but are not limited to, electric cookers, electric pressure cookers, automatic cooking machines, wall breaking machines, and soybean milk machines.
Example four
An embodiment of the present invention provides a voice broadcast device, fig. 6 is a schematic diagram of a composition structure of a fourth voice broadcast device according to an embodiment of the present invention, and as shown in the drawing, the voice broadcast device 600 includes: communication module 601, voice broadcast module 602, storage module 603 and second microprocessor 604, wherein:
the communication module 601 is configured to communicate with a server;
the voice broadcasting module 602 is configured to play the decoded audio file;
the storage module 603 is configured to store a voice broadcast program;
the second microprocessor 604 is configured to execute the voice broadcast program stored in the storage module, so as to implement the following steps:
receiving a notification message sent by a first microprocessor and triggered by a preset event;
responding to the notification message, and sending a first request message for acquiring an audio file to a server, wherein the notification message is sent by a first microprocessor, and the first request message carries an identifier of the preset event;
receiving and analyzing a first response message sent by a server, and acquiring an audio file carried in the first response message;
and playing the audio file.
In other embodiments, the playing the audio file comprises:
decoding the audio file to obtain a decoded audio file;
and controlling a voice playing module to play the decoded audio file.
In other embodiments, the second microprocessor 404 is further configured to execute a voice broadcast program stored in a storage module, so as to implement the following steps:
when a notification message that a preset event is triggered and sent by a first microprocessor is received, judging whether an audio file corresponding to the preset event is stored in the first microprocessor or not;
and if the audio file corresponding to the preset event is stored in the device, playing the audio file.
In other embodiments, the second microprocessor 404 is further configured to execute a voice broadcast program stored in a storage module, so as to implement the following steps:
if the audio file corresponding to the preset event is not stored in the server, sending a first request message for acquiring the audio file to the server;
judging whether a first response message sent by the server is received within a preset time length;
if the first response message is not received, acquiring a preset default audio file;
and playing the default audio file.
Accordingly, an embodiment of the present invention provides a computer-readable storage medium, where a voice broadcast program is stored on the computer-readable storage medium, and the voice broadcast program, when executed by a processor, implements the steps of the voice broadcast method in the other embodiments.
The embodiment of the invention further provides household electrical appliance, which at least comprises a first microprocessor and the voice broadcasting device.
Here, it should be noted that: the above description of the embodiment of the voice broadcasting device is similar to that of the above embodiment of the method, and has similar beneficial effects to the embodiment of the method. For technical details not disclosed in the embodiment of the voice broadcasting device of the present invention, please refer to the description of the embodiment of the method of the present invention for understanding.
EXAMPLE five
An embodiment of the present invention provides a server, where the server at least includes: a memory and a processor, wherein:
the memory is used for storing a voice broadcasting program;
the processor is used for executing the voice broadcast program stored in the storage module so as to realize the following steps:
receiving a first request message for acquiring an audio file, wherein the first request message carries an identifier of a preset event;
and if the audio file corresponding to the preset event is stored, sending a first response message carrying the audio file to a voice broadcasting device.
In other embodiments, the processor is further configured to execute a voice broadcast program stored in the storage module, so as to implement the following steps:
if the audio file corresponding to the preset event is not stored, sending a second request message for recording audio data to the user terminal, wherein the second request message carries the subject information of the preset event;
receiving and analyzing a second response message sent by a user terminal, and acquiring a user-defined audio file carried in the second response message;
establishing a corresponding relation between the preset event and the user-defined audio file;
and sending a first response message carrying the user-defined audio file to the voice broadcasting device.
Accordingly, an embodiment of the present invention provides a computer-readable storage medium, where a voice broadcast program is stored on the computer-readable storage medium, and the voice broadcast program, when executed by a processor, implements the steps of the voice broadcast method in the other embodiments.
Here, it should be noted that: the above description of the server embodiment is similar to the above description of the method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the server embodiment of the present invention, reference is made to the description of the method embodiment of the present invention for understanding.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in various embodiments of the present invention, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention. The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a magnetic or optical disk, or other various media that can store program code.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. A voice broadcast method, the method comprising:
receiving a notification message sent by a first microprocessor and triggered by a preset event;
responding to the notification message, and sending a first request message for acquiring an audio file to a server, wherein the first request message carries an identifier of the preset event;
receiving and analyzing a first response message sent by a server, and acquiring an audio file carried in the first response message;
and playing the audio file.
2. The method of claim 1, wherein said playing said audio file comprises:
decoding the audio file to obtain a decoded audio file;
and controlling a voice playing module to play the decoded audio file.
3. The method of claim 1, further comprising:
when a notification message that a preset event is triggered and sent by a first microprocessor is received, judging whether an audio file corresponding to the preset event is stored in the first microprocessor or not;
and if the audio file corresponding to the preset event is stored in the device, playing the audio file.
4. The method of claim 3, further comprising:
if the audio file corresponding to the preset event is not stored in the server, sending a first request message for acquiring the audio file to the server;
judging whether a first response message sent by the server is received within a preset time length;
if the first response message is not received, acquiring a preset default audio file;
and playing the default audio file.
5. A voice broadcast method, the method comprising:
receiving a first request message for acquiring an audio file, wherein the first request message carries an identifier of a preset event;
and if the audio file corresponding to the preset event is stored, sending a first response message carrying the audio file to a voice broadcasting device.
6. The method of claim 5, further comprising:
if the audio file corresponding to the preset event is not stored, sending a second request message for recording audio data to the user terminal, wherein the second request message carries the subject information of the preset event;
receiving and analyzing a second response message sent by a user terminal, and acquiring a user-defined audio file carried in the second response message;
establishing a corresponding relation between the preset event and the user-defined audio file;
and sending a first response message carrying the user-defined audio file to the voice broadcasting device.
7. A voice broadcast device, characterized in that the device comprises at least: communication module, voice broadcast module, storage module and second microprocessor, wherein:
the communication module is used for communicating with a server;
the voice broadcasting module is used for broadcasting the decoded audio file;
the storage module is used for storing a voice broadcasting program;
the second microprocessor is used for executing the voice broadcast program stored in the storage module so as to realize the following steps:
receiving a notification message sent by a first microprocessor and triggered by a preset event;
responding to the notification message, and sending a first request message for acquiring an audio file to a server, wherein the notification message is sent by a first microprocessor, and the first request message carries an identifier of the preset event;
receiving and analyzing a first response message sent by a server, and acquiring an audio file carried in the first response message;
and playing the audio file.
8. A server, characterized in that the server comprises at least: a memory and a processor, wherein:
the memory is used for storing a voice broadcasting program;
the processor is used for executing the voice broadcast program stored in the storage module so as to realize the following steps:
receiving a first request message for acquiring an audio file, wherein the first request message carries an identifier of a preset event;
and if the audio file corresponding to the preset event is stored, sending a first response message carrying the audio file to a voice broadcasting device.
9. A computer-readable storage medium having a voice broadcasting program stored thereon, which when executed by a processor, implements the steps of the voice broadcasting method as claimed in claims 1-4 or 5-6.
10. A home appliance comprising at least a first microprocessor and the voice announcement device of claim 7.
CN201810600403.8A 2018-06-12 2018-06-12 Voice broadcasting method and device, server, storage medium and household appliance Pending CN110602152A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810600403.8A CN110602152A (en) 2018-06-12 2018-06-12 Voice broadcasting method and device, server, storage medium and household appliance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810600403.8A CN110602152A (en) 2018-06-12 2018-06-12 Voice broadcasting method and device, server, storage medium and household appliance

Publications (1)

Publication Number Publication Date
CN110602152A true CN110602152A (en) 2019-12-20

Family

ID=68848773

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810600403.8A Pending CN110602152A (en) 2018-06-12 2018-06-12 Voice broadcasting method and device, server, storage medium and household appliance

Country Status (1)

Country Link
CN (1) CN110602152A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111381901A (en) * 2020-03-05 2020-07-07 支付宝实验室(新加坡)有限公司 Voice broadcasting method and system
CN114124602A (en) * 2021-11-17 2022-03-01 珠海格力电器股份有限公司 Intelligent household electrical appliance networking broadcasting system and method
CN114664032A (en) * 2022-03-18 2022-06-24 上海商汤智能科技有限公司 Voice broadcasting method, system, device and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103869759A (en) * 2012-12-12 2014-06-18 蒋超 Intelligent home system based on Internet of Things
US20140169274A1 (en) * 2012-12-12 2014-06-19 Samsung Electronics Co., Ltd. Apparatus and method for playing contents in home network system
CN105897534A (en) * 2016-06-30 2016-08-24 广东美的制冷设备有限公司 Binding method, binding device, equipment, intelligent terminal and binding system
CN107968828A (en) * 2017-11-30 2018-04-27 美的集团股份有限公司 Home appliance voice broadcasting method, device and equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103869759A (en) * 2012-12-12 2014-06-18 蒋超 Intelligent home system based on Internet of Things
US20140169274A1 (en) * 2012-12-12 2014-06-19 Samsung Electronics Co., Ltd. Apparatus and method for playing contents in home network system
CN105897534A (en) * 2016-06-30 2016-08-24 广东美的制冷设备有限公司 Binding method, binding device, equipment, intelligent terminal and binding system
CN107968828A (en) * 2017-11-30 2018-04-27 美的集团股份有限公司 Home appliance voice broadcasting method, device and equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111381901A (en) * 2020-03-05 2020-07-07 支付宝实验室(新加坡)有限公司 Voice broadcasting method and system
CN114124602A (en) * 2021-11-17 2022-03-01 珠海格力电器股份有限公司 Intelligent household electrical appliance networking broadcasting system and method
CN114664032A (en) * 2022-03-18 2022-06-24 上海商汤智能科技有限公司 Voice broadcasting method, system, device and readable storage medium

Similar Documents

Publication Publication Date Title
CA3111322C (en) Audio notifications
US11563842B2 (en) Do not disturb feature for audio notifications
CN110740376B (en) Improved content streaming device and method
US10386809B2 (en) Remote command learning
US10013857B2 (en) Using haptic technologies to provide enhanced media experiences
JP6290394B2 (en) System and method for playing / pausing content
JP6081489B2 (en) Networked music playback system and method
CN110602152A (en) Voice broadcasting method and device, server, storage medium and household appliance
CN106452990B (en) Method and device for controlling voice broadcast of household appliance and household appliance
JP2005537738A (en) Apparatus and method for overriding DO-NOT-DISTURB mode
EP2795846A1 (en) Wireless network configuration system and method
TW201034456A (en) System and method for entertainment system reconfiguration
CN101674446A (en) Multimedia file sharing device and method
CN103974118A (en) Method and apparatus for reproducing content
US20240022777A1 (en) Priority Media Content
JP4330143B2 (en) Content data playback apparatus, content data playback system, and content data playback program
EP3435680B1 (en) Technique for selecting a path of a multipath audio and/or video stream
JPWO2010087153A1 (en) Sensory effect information data structure, sensory effect information output device, sensory effect information output method, sensory effect information generation device, control device, system, program, and recording medium
JP2009177428A (en) Remote control system, and remote control method
JP2021081146A (en) Water heater
CN117008865A (en) Play setting method and device, storage medium and electronic device
WO2020047086A1 (en) Audio notifications
CN109582272A (en) A kind of control method, terminal device and storage medium
JP2017069705A (en) Reception device, reception method, broadcast system, and program
JP2011109195A (en) Electronic appliance

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191220