Method and device for playing alarm information and storage medium
By automatically searching and generating voice alarm information from the network through the first device, the problem of complex and inefficient playback of alarm information in the prior art is solved, automatic playback is realized, and efficiency is improved.
Patent Information
- Application Number
- CN202311450653.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-02
- Publication Date
- 2025-05-06
AI Technical Summary
The process of playing alarm information in disasters or emergency situations is complicated and inefficient. It requires the alarm platform to actively make calls and wait for the user to pick up the receiver.
The first device automatically searches for notification information from the network, generates voice alarm information, and sends the information to the playback device through the telephone interface, and the playback device automatically plays voice alarm information.
It realizes automatic playback of voice alarm information, simplifies the playback process, improves playback efficiency, and reduces the steps of user participation.
Smart Images

Figure CN119946599A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communications, and in particular to a method, device and storage medium for playing alarm information. Background Art
[0002] When a disaster or emergency occurs, if an alert message about the disaster or emergency can be generated and played to the user, the user may have sufficient time to prevent or deal with the disaster or emergency, which will protect the user's life safety, or avoid or reduce the user's property loss.
[0003] In the related art, when a disaster or emergency occurs, the alarm platform calls the telephones of each household. For each household, if there is someone in the household, they can pick up the handset of the telephone to answer the call made by the alarm platform, and then the alarm platform sends the alarm information about the disaster or emergency to the telephone. The telephone receives the alarm information and plays the alarm information in the form of voice.
[0004] In the related art, the alarm platform needs to actively dial a phone, and the user needs to pick up the receiver of the phone to play the alarm information. The process of playing the alarm information is complicated and the playing efficiency is low. Summary of the invention
[0005] The present application provides a method, device and storage medium for playing alarm information to improve the efficiency of playing alarm information. The technical solution is as follows:
[0006] In a first aspect, the present application provides a method for playing an alarm message, the method being applied to a first device, the first device including a telephone interface, and the first device communicating with a playback device through the telephone interface. In the method, notification information is searched from a network, the notification information including one or more of the following information: disaster notification information or emergency notification information. Voice alarm information is generated based on the notification information. The voice alarm information is sent to a playback device through the telephone interface, and the playback device is used to play the voice alarm information.
[0007] Since the first device automatically searches for notification information from the network, generates voice warning information based on the notification information, sends the voice warning information to the playback device through the telephone interface, and the playback device automatically plays the voice warning information. In this way, the automatic playback of voice warning information requires user participation, simplifies the process of playing the warning information, and improves the efficiency of playing the warning information.
[0008] In a possible implementation, the playback device includes a telephone. A hands-free activation signal is sent to the telephone through a telephone interface, and the hands-free activation signal is used to instruct the telephone to enter a hands-free mode. An off-hook notification message sent by the telephone after entering the hands-free mode is received through the telephone interface. Based on the off-hook notification message, the voice alarm information is sent to the telephone through the telephone interface. In this way, the voice alarm information is played in the hands-free mode, so that the user can hear the voice alarm information.
[0009] In another possible implementation, an alarm ringing signal is sent to the telephone through the telephone interface, and the alarm ringing signal is used to instruct the telephone to play an alarm whistle. When the length of time the telephone plays the alarm whistle reaches a time threshold, a hands-free start signal is sent to the telephone through the telephone interface. In this way, the telephone can play the alarm whistle to remind the user to prepare to listen to the voice alarm information.
[0010] In another possible implementation, the playback device includes a speaker device.
[0011] In another possible implementation manner, the speaker device is integrated into the first device.
[0012] In another possible implementation, the first device is a telephone switch or a home gateway.
[0013] In a second aspect, the present application provides a device for playing warning information, which is used to execute the method in the first aspect or any possible implementation of the first aspect. Specifically, the device includes a unit for executing the method in the first aspect or any possible implementation of the first aspect.
[0014] In a third aspect, the present application provides a device for playing alarm information, comprising at least one processor and a memory, wherein the at least one processor is used to couple with the memory, read and execute instructions in the memory to implement the method in the first aspect or any possible implementation method of the first aspect.
[0015] In a fourth aspect, the present application provides a computer program product, which includes a computer program stored in a computer-readable storage medium, and the computer program is loaded by a processor to implement the method of the above-mentioned first aspect or any possible implementation method of the first aspect.
[0016] In a fifth aspect, the present application provides a computer-readable storage medium for storing a computer program, wherein the computer program is loaded by a processor to execute the method of the above-mentioned first aspect or any possible implementation manner of the first aspect.
[0017] In a sixth aspect, the present application provides a chip comprising a memory and a processor, wherein the memory is used to store computer instructions, and the processor is used to call and run the computer instructions from the memory to execute the method of the above-mentioned first aspect or any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 It is a schematic diagram of a network architecture structure provided by an embodiment of the present application;
[0019] Figure 2 This is another schematic diagram of a network architecture structure provided by an embodiment of the present application;
[0020] Figure 3 This is another schematic diagram of a network architecture structure provided by an embodiment of the present application;
[0021] Figure 4 This is another schematic diagram of a network architecture structure provided by an embodiment of the present application;
[0022] Figure 5 This is another schematic diagram of a network architecture structure provided by an embodiment of the present application;
[0023] Figure 6 This is a flow chart of a method for playing alarm information provided by an embodiment of the present application;
[0024] Figure 7 is a flow chart of another method for playing alarm information provided by an embodiment of the present application;
[0025] Figure 8 is a flow chart of another method for playing alarm information provided by an embodiment of the present application;
[0026] Fig. 9 It is a schematic diagram of the structure of a device for playing alarm information provided by an embodiment of the present application;
[0027] Fig.10 It is a schematic diagram of the structure of another device for playing alarm information provided in an embodiment of the present application. DETAILED DESCRIPTION
[0028] See also Figure 1 An embodiment of the present application provides a network architecture 100, which includes a first device 101 and a playback device 102, wherein the first device 101 includes a telephone interface 1011, and the first device 101 communicates with the playback device 102 through the telephone interface 1011.
[0029] For example, the first device 101 may search for notification information in the network, and the notification information includes one or more of the following information: disaster notification information or emergency notification information. Voice warning information is generated based on the notification information. The voice warning information is sent to the playback device 102 through the telephone interface 1011. The playback device 102 receives the voice warning information and plays the voice warning information. Thus, the warning information is automatically played to the user, so that the user can make necessary preparations or handle the situation when a disaster or emergency occurs.
[0030] Optionally, the notification information may be news and / or emergency notifications about disasters published on the network, or the notification information may be news and / or emergency notifications about emergencies published on the network. The first device 101 includes a network interface such as a passive optical network (PON), a digital subscriber line (DSL) or an Ethernet port, and the first device 101 can connect to the network through the network interface and search for notification information in the network.
[0031] In some embodiments, see Figure 1 The first device 101 also includes a processor 1012, which can search for notification information in the network, generate voice alarm information based on the notification information, and send the voice alarm information to the playback device 102 through the telephone interface 1011.
[0032] Optionally, the first device 101 may also include an upper-layer application (APP) 1013, and the processor 1012 runs the upper-layer APP 1013, so that the processor 1012 has the function of searching for notification information in the network and the function of generating voice alarm information based on the notification information.
[0033] In some embodiments, the telephone interface 1011 in the first device 101 is a telephone line interface (COSLIC) or the like, and the processor 1012 in the first device 101 is a system on chip (SOC) or the like.
[0034] In some embodiments. Figure 2 The first device 101 is a home gateway 101a , the playback device 102 includes a telephone 102a , the telephone 102a includes a ringing circuit 1021 , and the home gateway 101a communicates with the ringing circuit 1021 included in the telephone 102a through a telephone interface 1011 .
[0035] Before sending the voice alarm information to the telephone 102a, the home gateway 101a can control the ringing circuit 1021 of the telephone 102a to play the alarm whistle sound. When the length of time that the ringing circuit 1021 of the telephone 102a plays the alarm whistle sound reaches the duration threshold, the telephone 102a is controlled to enter the hands-free mode. After the telephone 102a enters the hands-free mode, the home gateway 101a sends the voice alarm information to the telephone 102a through the telephone interface 1011. The telephone 102a receives the voice alarm information and plays the voice alarm information in the hands-free mode.
[0036] In some embodiments. Figure 3 The first device 101 is a home gateway 101a, the playback device 102 includes a speaker device 102b, the speaker device 102b includes an amplifier circuit 1022 and a speaker 1023, the home gateway 101a communicates with the amplifier circuit 1022 included in the speaker device 102b through the telephone interface 1011, and the amplifier circuit 1022 is electrically connected to the speaker 1023.
[0037] The home gateway 101a sends the voice alarm information to the power amplifier circuit 1022 included in the speaker device 102b through the telephone interface 1011. The power amplifier circuit 1022 included in the speaker device 102b receives the voice alarm information, amplifies the power of the voice alarm information, and sends the amplified voice alarm information to the speaker 1023 included in the speaker device 102b. The speaker 1023 included in the speaker device 102b plays the amplified voice alarm information.
[0038] Optionally, the home gateway 101a and the speaker device 102b may be integrated together, that is, the home gateway 101a and the speaker device 102b may be integrated into one device. Alternatively, the home gateway 101a and the speaker device 102b are two different devices.
[0039] In some embodiments. Figure 4 The first device 101 is a home gateway 101a, the playback device 102 includes a telephone 102a and a speaker device 102b, the telephone interface 1011 in the home gateway 101a includes a first telephone interface 1011a and a second telephone interface 1011b, the home gateway 101a communicates with the telephone 102a through the first telephone interface 1011a, and the home gateway 101a communicates with the speaker device 102b through the second telephone interface 1011b.
[0040] The home gateway 101a may select the telephone 102a or the speaker device 102b to play the voice alarm information, or may select the telephone 102a and the speaker device 102b to play the voice alarm information together.
[0041] In some embodiments. Figure 5 , the first device 101 is a telephone exchange 101b, and the playback device 102 includes at least one telephone 102a. The telephone exchange 101b is located on the network side and includes at least one telephone interface 1011. The telephone exchange 101b communicates with the at least one telephone 102a through the at least one telephone interface 1011. For example, Figure 5 As shown, the telephone exchange 101b communicates with a telephone 102a via a telephone interface 1011. The at least one telephone 102a may be a telephone belonging to a different household.
[0042] The telephone exchange 101b can send the voice alarm information to the at least one telephone 102a through the at least one telephone interface 1011. In implementation: before sending the voice alarm information to the telephone 102a, the telephone exchange 101b can control the ringing circuit 1021 of each telephone 102a to play the alarm whistle sound. When the duration of playing the alarm whistle sound reaches a duration threshold, each telephone 102a is controlled to enter the hands-free mode, and then the voice alarm information is sent to each telephone 102a through each telephone interface 1011. Each telephone 102a receives the voice alarm information and plays the voice alarm information in the hands-free mode.
[0043] See also Figure 6 The present application embodiment provides a method 600 for playing alarm information, the method 600 is applied to Figure 1 , Figure 2 or Figure 3 In the network architecture 100 shown, the first device is a home gateway, which communicates with a playback device through a telephone interface, and the home gateway can automatically control the playback device to play voice alarm information. The method 600 includes the following process.
[0044] Step 601: The home gateway searches for notification information from the network, where the notification information includes one or more of the following information: disaster notification information or emergency notification information, etc.
[0045] The home gateway includes a network interface, through which the home gateway is connected to a network, and can search for notification information in the network. Optionally, the notification information may be news and / or emergency notifications about disasters published in the network, or the notification information may be news and / or emergency notifications about emergencies published in the network.
[0046] Step 602: The home gateway generates voice warning information based on the notification information.
[0047] The voice warning information is a voice information, and the content of the voice warning information is content related to the disaster and / or emergency. In step 602, the notification information may be a text message, and the notification information is converted into a voice message to obtain the voice warning information.
[0048] Step 603: The home gateway checks the device type of the playback device. When the device type is a telephone, the home gateway executes step 604. When the device type is a speaker device, the home gateway executes step 610.
[0049] The telephone interface included in the home gateway can check the device type of the playback device by checking the circuit communicating with the telephone interface.
[0050] In step 603, the home gateway checks the type of circuit that communicates with the telephone interface through the telephone interface. When it is checked that the type of circuit that communicates with the telephone interface is a ringing circuit, the home gateway determines that the device type of the playback device is a telephone, and the telephone includes a ringing circuit that communicates with the telephone interface. When it is checked that the type of circuit that communicates with the telephone interface is a power amplifier circuit, the home gateway determines that the device type of the playback device is a speaker device, and the speaker device includes a power amplifier circuit that communicates with the telephone interface.
[0051] Step 604: The home gateway sends an alarm ringing signal to the telephone through the telephone interface. The alarm ringing signal is used to instruct the telephone to play an alarm whistle.
[0052] The alarm ringing signal is a signal simulating an alarm sound and can be stored locally in the home gateway in advance.
[0053] In step 604, the home gateway obtains the alarm ringing signal stored locally in the home gateway, and sends the alarm ringing signal to the telephone through the telephone interface.
[0054] Step 605: The telephone receives the alarm ringing signal and plays an alarm whistle sound based on the alarm ringing signal.
[0055] In step 605, the ringing circuit of the telephone receives the alarm ringing signal and plays an alarm whistle sound based on the alarm ringing signal.
[0056] Step 606: When the duration of the alarm siren played by the telephone reaches a duration threshold, the home gateway sends a hands-free start signal to the telephone through the telephone interface.
[0057] In step 606, when the home gateway sends an alarm ringing signal to the phone, the home gateway starts a timer to start timing. When the time length of the timer reaches the duration threshold, the home gateway determines that the duration of the alarm siren sound played by the phone reaches the duration threshold, and sends a hands-free start signal to the phone through the phone interface.
[0058] Step 607: The telephone receives the hands-free start signal, enters the hands-free mode based on the hands-free start signal, and sends an off-hook notification message to the home gateway.
[0059] The off-hook notification message is used to notify the home gateway that the phone has entered the hands-free mode. When the phone sends the off-hook notification message, the ringing circuit included in the phone stops playing the alarm whistle sound based on the alarm ringing signal.
[0060] Step 608: The home gateway receives the off-hook notification message through the telephone interface, and based on the off-hook notification message, sends a voice alarm message to the telephone through the telephone interface.
[0061] In step 608, the home gateway receives the off-hook notification message through the telephone interface, and based on the off-hook notification message, determines that the phone has entered the hands-free mode and that the phone can be used to play the voice alarm information. Therefore, the home gateway sends the voice alarm information to the phone through the telephone interface.
[0062] Step 609: The phone receives the voice warning information, plays the voice warning information, and ends.
[0063] In addition to the ringing circuit, the telephone also includes a speaker. In step 609, the telephone receives the voice warning information and plays the voice warning information through the speaker, so that after hearing the voice warning information, the user can make necessary preparations or take actions such as handling when a disaster or emergency occurs.
[0064] Step 610: The home gateway sends a voice alarm message to the speaker device through the telephone interface.
[0065] The home gateway communicates with the speaker device via the telephone interface. In step 610, the home gateway sends voice alarm information to the speaker device via the telephone interface.
[0066] Step 611: The speaker device receives the voice warning information and plays the voice warning information.
[0067] The speaker device includes a power amplifier circuit and a speaker. In step 611, the power amplifier circuit included in the speaker device receives the voice warning information, amplifies the power of the voice warning information, and sends the amplified voice warning information to the speaker included in the speaker device. Then, the amplified voice warning information is played through the speaker included in the speaker device, so that after hearing the voice warning information, the user can make necessary preparations or take actions when a disaster or emergency occurs.
[0068] In an embodiment of the present application, the home gateway searches for notification information related to disasters or emergencies from the network, and generates voice alarm information based on the notification information. When the playback device communicating with the home gateway is a telephone, the home gateway sends an alarm ringing signal to the telephone so that the telephone plays an alarm whistle to simulate the alarm sound. When the length of time the telephone plays the alarm whistle reaches a duration threshold, the home gateway sends a hands-free start signal to the telephone so that the telephone enters the hands-free mode, and then sends a voice alarm message to the telephone so that the telephone plays the voice alarm message in the hands-free mode. In this way, the telephone automatically plays the voice alarm message hands-free, thereby improving the playback efficiency. Alternatively, when the playback device communicating with the home gateway is a speaker device, the voice alarm message is sent to the speaker device so that the speaker device plays the voice alarm message. In this way, the voice alarm message is automatically played, thereby improving the playback efficiency.
[0069] See also Figure 7 The present application embodiment provides a method 700 for playing alarm information, wherein the method 700 is applied to Figure 4 The network architecture 100 shown in the figure, in which the first device is a home gateway, the playback device communicating with the home gateway includes a telephone and a speaker device, the home gateway communicates with the telephone through a first telephone interface, and communicates with the speaker device through a second telephone interface. The home gateway can select a playback device and automatically control the selected playback device to play the voice alarm information. The method 700 includes the following process.
[0070] Step 701-702: The same as step 601-step 602, and will not be described in detail here.
[0071] Step 703: The home gateway selects a playback device. When the selected playback device includes a telephone, the following step 704 is executed. When the selected playback device includes a speaker device, step 710 is executed.
[0072] The home gateway can select a currently idle playback device.
[0073] Optionally, when both the telephone and the speaker are idle, the telephone or the speaker may be selected first; or, the telephone and the speaker may be selected.
[0074] When the phone is idle and the speaker device is busy, the phone can be selected. For example, when the phone is idle and the speaker device is playing music or other audio information, the home gateway can select the phone. Or,
[0075] When the speaker device is idle and the phone is busy, the speaker device can be selected. For example, when the speaker device is idle and the phone is on a call, the home gateway can select the speaker device.
[0076] Step 704: The home gateway sends an alarm ringing signal to the telephone through the first telephone interface. The alarm ringing signal is used to instruct the telephone to play an alarm whistle.
[0077] The alarm ringing signal is a signal simulating an alarm sound and can be stored locally in the home gateway in advance.
[0078] In step 704, the home gateway obtains the alarm ringing signal stored locally in the home gateway, and sends the alarm ringing signal to the telephone through the first telephone interface.
[0079] Step 705: The telephone receives the alarm ringing signal and plays an alarm whistle sound based on the alarm ringing signal.
[0080] In step 705, the ringing circuit of the telephone receives the alarm ringing signal and plays an alarm whistle sound based on the alarm ringing signal.
[0081] Step 706: When the duration of the alarm siren played by the telephone reaches a duration threshold, the home gateway sends a hands-free start signal to the telephone through the first telephone interface.
[0082] In step 706, when the home gateway sends an alarm ringing signal to the telephone, the home gateway starts a timer to start timing. When the time length of the timer reaches the duration threshold, the home gateway determines that the duration of the alarm siren sound played by the telephone reaches the duration threshold, and sends a hands-free start signal to the telephone through the first telephone interface.
[0083] Step 707: The telephone receives the hands-free start signal, enters the hands-free mode based on the hands-free start signal, and sends an off-hook notification message to the home gateway.
[0084] The off-hook notification message is used to notify the home gateway that the telephone has entered the hands-free mode. When the telephone sends the off-hook notification message, the ringing circuit included in the telephone stops playing the alarm whistle sound based on the alarm ringing signal.
[0085] Step 708: The home gateway receives the off-hook notification message through the first telephone interface, and based on the off-hook notification message, sends a voice alarm message to the telephone through the first telephone interface.
[0086] In step 708, the home gateway receives the off-hook notification message through the first telephone interface, and based on the off-hook notification message, determines that the phone has entered the hands-free mode and the phone can be used to play the voice alarm information. Therefore, the home gateway sends the voice alarm information to the phone through the first telephone interface.
[0087] Step 709: The phone receives the voice warning information, plays the voice warning information, and ends.
[0088] In addition to the ringing circuit, the telephone also includes a speaker. In step 709, the telephone receives the voice warning information and plays the voice warning information through the speaker, so that after hearing the voice warning information, the user can make necessary preparations or take actions such as handling when a disaster or emergency occurs.
[0089] Step 710: The home gateway sends a voice alarm message to the speaker device through the second telephone interface.
[0090] The home gateway communicates with the speaker device via the second telephone interface. In step 710, the home gateway sends voice alarm information to the speaker device via the second telephone interface.
[0091] Step 711: The speaker device receives the voice warning information and plays the voice warning information.
[0092] The speaker device includes a power amplifier circuit and a speaker. In step 711, the power amplifier circuit included in the speaker device receives the voice warning information, amplifies the voice warning information, and sends the amplified voice warning information to the speaker included in the speaker device. Then, the amplified voice warning information is played through the speaker included in the speaker device, so that after hearing the voice warning information, the user can make necessary preparations or take actions when a disaster or emergency occurs.
[0093] When the playback devices selected by the home gateway include a telephone and a speaker device, the home network immediately executes the above-mentioned process of step 704 to step 709, and also executes the above-mentioned process of step 710 and step 711.
[0094] In an embodiment of the present application, the home gateway searches for notification information related to disasters or emergencies from the network, and generates voice alarm information based on the notification information. When a telephone is selected to alarm, the home gateway sends an alarm ringing signal to the telephone so that the telephone plays an alarm whistle to simulate the alarm sound. When the length of time the telephone plays the alarm whistle reaches a duration threshold, the home gateway sends a hands-free start signal to the telephone so that the telephone enters the hands-free mode, and then sends a voice alarm message to the telephone so that the telephone plays the voice alarm message in the hands-free mode. In this way, the telephone automatically plays the voice alarm message hands-free, thereby improving the playback efficiency. Alternatively, when a speaker device is selected to alarm, a voice alarm message is sent to the speaker device so that the speaker device plays the voice alarm message. In this way, the voice alarm message is automatically played, thereby improving the playback efficiency.
[0095] See also Figure 8 The present application embodiment provides a method 800 for playing alarm information, wherein the method 800 is applied to Figure 5In the network architecture 100 shown, the first device is a telephone switch, which communicates with at least one telephone through at least one telephone interface, and the home gateway can automatically control the at least one telephone to play voice alarm information. The method 800 includes the following process.
[0096] Step 801: The telephone exchange searches for notification information from the network, where the notification information includes one or more of the following information: disaster notification information or emergency notification information, etc.
[0097] The telephone exchange includes a network interface, through which the telephone exchange is connected to a network, and can search for notification information in the network. Optionally, the notification information may be news and / or emergency notifications about disasters, etc., published in the network, or the notification information may be news and / or emergency notifications, etc., published in the network about emergencies.
[0098] Step 802: The telephone exchange generates voice warning information based on the notification information.
[0099] The voice warning information is a voice information, and the content of the voice warning information is the content related to the disaster and / or emergency. In step 802, the notification information may be a text message, and the telephone exchange converts the notification information into a voice message to obtain the voice warning information.
[0100] Step 803: The telephone exchange sends an alarm ringing signal to the at least one telephone through the at least one telephone interface, wherein the alarm ringing signal is used to instruct the at least one telephone to play an alarm whistle sound, and the at least one telephone includes a first telephone.
[0101] The alarm ringing signal is a signal simulating an alarm sound and can be stored locally in the telephone exchange in advance.
[0102] In step 803, the telephone exchange obtains the alarm ringing signal stored locally in the telephone exchange, and sends the alarm ringing signal to the at least one telephone through the at least one telephone interface.
[0103] For the convenience of explanation, for any one of the at least one telephone, the telephone is referred to as a first telephone, and the telephone interface in the telephone exchange that communicates with the first telephone is referred to as a first telephone interface. For the first telephone, the telephone exchange sends the alarm ringing signal to the first telephone through the first telephone interface.
[0104] Step 804: The first telephone receives the alarm ringing signal and plays an alarm whistle sound based on the alarm ringing signal.
[0105] In step 804, the ringing circuit of the first telephone receives the alarm ringing signal and plays an alarm whistle sound based on the alarm ringing signal.
[0106] For each of the other telephones, like the first telephone, after receiving the alarm ringing signal, each of the other telephones plays the alarm whistle sound based on the alarm ringing signal.
[0107] Step 805: When the time length for which the at least one telephone plays the alarm siren sound reaches a time length threshold, the telephone switch sends a hands-free start signal to the at least one telephone through the at least one telephone interface.
[0108] In step 805, when the telephone exchange sends the alarm ringing signal to the at least one telephone, the telephone exchange starts a timer to start timing. When the time length of the timer reaches a time length threshold, the telephone exchange determines that the time length of the at least one telephone playing the alarm whistle sound reaches the time length threshold, and sends a hands-free start signal to the at least one telephone through the at least one telephone interface.
[0109] Step 806: The first telephone receives the hands-free activation signal, enters the hands-free mode based on the hands-free activation signal, and sends an off-hook notification message to the telephone switch.
[0110] The off-hook notification message is used to notify the telephone exchange that the first telephone has entered the hands-free mode. When the first telephone sends the off-hook notification message, the ringing circuit included in the first telephone stops playing the alarm whistle sound based on the alarm ringing signal.
[0111] For each of the other telephones, like the first telephone, when receiving the hands-free activation signal, each of the other telephones enters the hands-free mode based on the hands-free activation signal and sends an off-hook notification message to the telephone switch.
[0112] Step 807: The telephone exchange receives at least one off-hook notification message sent by the at least one telephone through the at least one telephone interface, and based on the at least one off-hook notification message, sends voice alarm information to the at least one telephone through the at least one telephone interface.
[0113] In step 807, the telephone exchange receives the off-hook notification message sent by the first telephone through the first telephone interface, and based on the off-hook notification message, determines that the first telephone has entered the hands-free mode and that the first telephone can be used to play the voice alarm information. Therefore, the telephone exchange sends the voice alarm information to the first telephone through the first telephone interface.
[0114] For each other phone, like the first phone, the telephone switch determines that each other phone has entered the hands-free mode and each other phone can be used to play the voice alarm message based on the off-hook notification message sent by each other phone, and then sends the voice alarm message to each other phone.
[0115] Step 808: The first telephone receives the voice warning information and plays the voice warning information.
[0116] In addition to the ringing circuit, the first telephone also includes a speaker. In step 808, the first telephone receives the voice warning information and plays the voice warning information through the speaker, so that after hearing the voice warning information, the user can make necessary preparations or take actions when a disaster or emergency occurs.
[0117] For each of the other telephones, like the first telephone, when receiving the voice alarm information, each of the other telephones plays the voice alarm information.
[0118] In an embodiment of the present application, the telephone exchange searches for notification information related to disasters or emergencies from the network, and generates voice alarm information based on the notification information. The telephone sends an alarm ringing signal to each telephone so that each telephone plays an alarm whistle to simulate the alarm sound. When the length of time each telephone plays the alarm whistle reaches a time threshold, the telephone exchange sends a hands-free start signal to each telephone so that each telephone enters the hands-free mode, and then sends a voice alarm information to each telephone so that each telephone plays the voice alarm information in the hands-free mode. In this way, the automatic hands-free playback of voice alarm information by telephones is realized in batches, thereby improving the playback efficiency.
[0119] See also Fig. 9 The present application embodiment provides a device 900 for playing alarm information, the device 900 includes a telephone interface, and the device 900 communicates with the playback device through the telephone interface. The device 900 can be deployed on the first device in any of the above embodiments, for example, the device 900 can be deployed on Figure 1 The first device in the network architecture 100 shown in FIG. 1 , or the apparatus 900 may be deployed on Figure 2-Figure 4 The home gateway in the network architecture 100 shown in FIG. 1 , or the device 900 can be deployed on Figure 5 On the telephone switch in the network architecture 100 shown in the figure, or, the device 900 can be deployed on Figure 6 The home gateway or Figure 7 The home gateway in the method 700 shown in FIG. 7 is a home gateway in FIG. 700 , or the device 900 can be deployed on a home gateway in FIG. Figure 8On the telephone exchange in the method 800. The device 900 includes:
[0120] The processing unit 901 is configured to search for notification information from a network, where the notification information includes one or more of the following information: disaster notification information or emergency notification information;
[0121] The processing unit 901 is further configured to generate voice warning information based on the notification information;
[0122] The sending unit 902 is used to send the voice warning information to the playing device through the telephone interface, and the playing device is used to play the voice warning information.
[0123] Optionally, the detailed implementation process of the processing unit 901 searching for notification information from the network can be found in Figure 6 Step 601 of the method 600 shown, Figure 7 Step 701 of method 700 or Figure 8 The relevant contents in step 801 of the method 800 are not described in detail here.
[0124] Optionally, the detailed implementation process of the processing unit 901 generating the voice warning information based on the notification information is shown in Figure 6 In step 602 of method 600, Figure 7 Step 702 of method 700 or Figure 8 The relevant contents in step 802 of the method 800 are not described in detail here.
[0125] Optionally, the detailed implementation process of the sending unit 902 sending the voice alarm information to the playback device through the telephone interface is shown in Figure 6 Step 608 or step 610 of method 600 shown, Figure 7 Step 708 or 710 of method 700, or, Figure 8 The relevant contents in step 807 of the method 800 are not described in detail here.
[0126] Optionally, the playback device includes a telephone, and the apparatus 900 further includes: a receiving unit 903;
[0127] The sending unit 902 is further used to send a hands-free start signal to the telephone through the telephone interface, and the hands-free start signal is used to instruct the telephone to enter the hands-free mode;
[0128] The receiving unit 903 is used to receive, through the telephone interface, an off-hook notification message sent by the telephone after entering the hands-free mode;
[0129] The sending unit 902 is further configured to send the voice alarm information to the telephone through the telephone interface based on the off-hook notification message.
[0130] Optionally, the detailed implementation process of the sending unit 902 sending the hands-free start signal to the telephone through the telephone interface is shown in Figure 6 Step 606 of method 600 is shown, Figure 7 Step 706 of method 700, or, Figure 8 The relevant contents in step 805 of the method 800 are not described in detail here.
[0131] Optionally, the detailed implementation process of the receiving unit 903 receiving the off-hook notification message sent by the telephone after entering the hands-free mode is shown in Figure 6 Step 608 of method 600 is shown, Figure 7 Step 708 of method 700, or, Figure 8 The relevant contents in step 807 of the method 800 are not described in detail here.
[0132] Optionally, the detailed implementation process of the sending unit 902 sending the voice alarm information to the telephone set can be found in Figure 6 Step 608 of method 600 is shown, Figure 7 Step 708 of method 700, or, Figure 8 The relevant contents in step 807 of the method 800 are not described in detail here.
[0133] Optionally, the sending unit 902 is configured to:
[0134] Sending an alarm ringing signal to the telephone through the telephone interface, the alarm ringing signal is used to instruct the telephone to play an alarm whistle;
[0135] When the time length of the telephone playing the alarm whistle sound reaches a time length threshold, the hands-free start signal is sent to the telephone through the telephone interface.
[0136] Optionally, the sending unit 902 sends the alarm ringing signal to the telephone through the telephone interface. Figure 6 Step 604 of method 600 is shown, Figure 7 Step 704 of method 700, or, Figure 8 The relevant contents in step 803 of the method 800 are not described in detail here.
[0137] Optionally, when the length of time for which the telephone plays the alarm siren reaches a time threshold, the sending unit 902 sends the hands-free start signal to the telephone through the telephone interface. Figure 6 Step 606 of method 600 is shown, Figure 7 Step 706 of method 700, or, Figure 8The relevant contents in step 805 of the method 800 are not described in detail here.
[0138] Optionally, the playback device includes a speaker device.
[0139] Optionally, a speaker device is integrated into the apparatus 900 .
[0140] Optionally, the device 900 is a telephone switch or a home gateway.
[0141] In the embodiment of the present application, since the processing unit automatically searches for notification information from the network and generates voice warning information based on the notification information, the sending unit sends the voice warning information to the playback device through the telephone interface, and the playback device automatically plays the voice warning information. In this way, the automatic playback of voice warning information requires no user participation, simplifies the process of playing the warning information, and improves the efficiency of playing the warning information.
[0142] See also Fig.10 , the present application embodiment provides a schematic diagram of a device 1000 for playing alarm information. The device 1000 may be the first device provided by any of the above embodiments. For example, the device 1000 may be Figure 1 The first device in the network architecture 100 shown, or the apparatus 1000 may be Figure 2-Figure 4 The home gateway in the network architecture 100 shown, or the device 1000 may be Figure 5 The telephone switch in the network architecture 100 shown, or the device 1000 may be Figure 6 The home gateway or Figure 7 The home gateway in the method 700 shown, or the device 1000 may be Figure 8 The telephone exchange in the method 800 is shown. The apparatus 1000 comprises at least one processor 1001 , an internal connection 1002 , a memory 1003 and at least one transceiver 1004 .
[0143] The device 1000 is a hardware structure device that can be used to implement Fig. 9 The functional modules in the device 900 are described.
[0144] For example, a person skilled in the art would think of Fig. 9 The processing unit 901 in the device 900 shown can be implemented by the at least one processor 1001 calling the code in the memory 1003. Fig. 9 The sending unit 902 and the receiving unit 903 in the device 900 shown may be implemented by the at least one transceiver 1004 .
[0145] The apparatus 1000 may also be used to implement the function of the first device (home gateway or telephone switch) in any of the above embodiments.
[0146] The processor 1001 may be a general-purpose central processing unit (CPU), a network processor (NP), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application.
[0147] The internal connection 1002 may include a path to transmit information between the components. The internal connection 1002 may be a single board or a bus.
[0148] The at least one transceiver 1004 is used to communicate with other devices or communication networks.
[0149] The memory 1003 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory may exist independently and be connected to the processor via a bus. The memory may also be integrated with the processor.
[0150] The memory 1003 is used to store the application code for executing the solution of the present application, and the execution is controlled by the processor 1001. The processor 1001 is used to execute the application code stored in the memory 1003, and cooperate with at least one transceiver 1004, so that the device 1000 implements the functions of the method of the present patent.
[0151] In a specific implementation, as an embodiment, the processor 1001 may include one or more CPUs, such as Fig.10 CPU0 and CPU1 in.
[0152] In a specific implementation, as an embodiment, the apparatus 1000 may include multiple processors, for example Fig.10 1001 and 1007 in the embodiment of the present invention. Each of these processors may be a single-CPU processor or a multi-CPU processor. The processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).
[0153] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0154] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for playing warning information, characterized in that: The method is applied to a first device, the first device includes a telephone interface, the first device communicates with a playback device through the telephone interface, and the method includes: Searching for notification information from a network, the notification information including one or more of the following information: disaster notification information or emergency notification information; generating a voice warning message based on the notification message; The voice warning information is sent to the playback device through the telephone interface, and the playback device is used to play the voice warning information.
2. The method according to claim 1, characterized in that The playback device includes a telephone, and before sending the voice alarm information to the playback device through the telephone interface, the method further includes: Sending a hands-free start signal to the telephone through the telephone interface, wherein the hands-free start signal is used to instruct the telephone to enter a hands-free mode; The sending the voice warning information to the playback device through the telephone interface includes: Receiving, through the telephone interface, an off-hook notification message sent by the telephone after entering a hands-free mode; Based on the off-hook notification message, the voice alarm information is sent to the telephone through the telephone interface.
3. The method according to claim 2, characterized in that Before sending the hands-free start signal to the telephone through the telephone interface, the method further comprises: Sending an alarm ringing signal to the telephone through the telephone interface, wherein the alarm ringing signal is used to instruct the telephone to play an alarm whistle; The sending of a hands-free start signal to the telephone through the telephone interface comprises: When the length of time for which the telephone plays the alarm whistle sound reaches a time threshold, the hands-free start signal is sent to the telephone through the telephone interface.
4. The method according to any one of claims 1 to 3, characterized in that: The playback device includes a speaker device.
5. The method according to claim 4, characterized in that The speaker device is integrated in the first device.
6. The method according to any one of claims 1 to 5, characterized in that: The first device is a telephone switch or a home gateway.
7. A device for playing warning information, characterized in that: The device comprises a telephone interface, and the device communicates with the playback device through the telephone interface, and the device comprises: A processing unit, configured to search for notification information from a network, wherein the notification information includes one or more of the following information: disaster notification information or emergency notification information; The processing unit is further configured to generate voice warning information based on the notification information; The sending unit is used to send the voice warning information to the playing device through the telephone interface, and the playing device is used to play the voice warning information.
8. The device according to claim 7, characterized in that The playback device includes a telephone, and the apparatus further includes: a receiving unit; The sending unit is further used to send a hands-free start signal to the telephone through the telephone interface, wherein the hands-free start signal is used to instruct the telephone to enter a hands-free mode; The receiving unit is used to receive, through the telephone interface, an off-hook notification message sent by the telephone after entering the hands-free mode; The sending unit is further configured to send the voice warning information to the telephone through the telephone interface based on the off-hook notification message.
9. The device according to claim 8, characterized in that The sending unit is used for: Sending an alarm ringing signal to the telephone through the telephone interface, wherein the alarm ringing signal is used to instruct the telephone to play an alarm whistle; When the length of time for which the telephone plays the alarm whistle sound reaches a time threshold, the hands-free start signal is sent to the telephone through the telephone interface.
10. The device according to any one of claims 7 to 9, characterized in that: The playback device includes a speaker device.
11. The device according to claim 10, characterized in that The speaker device is integrated in the apparatus.
12. The device according to any one of claims 7 to 11, characterized in that: The device is a telephone exchange or a home gateway.
13. A device for playing warning information, characterized in that: The system comprises at least one processor and at least one memory, wherein the at least one memory stores computer-readable instructions; the at least one processor executes the computer-readable instructions so that the cluster executes the method according to any one of claims 1 to 6.
14. A computer storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.