CN112735414B - Online and offline dual-mode voice control method, system and storage medium - Google Patents

Online and offline dual-mode voice control method, system and storage medium Download PDF

Info

Publication number
CN112735414B
CN112735414B CN202011567368.8A CN202011567368A CN112735414B CN 112735414 B CN112735414 B CN 112735414B CN 202011567368 A CN202011567368 A CN 202011567368A CN 112735414 B CN112735414 B CN 112735414B
Authority
CN
China
Prior art keywords
voice
network
mode
equipment
voice control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011567368.8A
Other languages
Chinese (zh)
Other versions
CN112735414A (en
Inventor
陈胜森
尹金鸣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Cotell Intelligent Technology Shenzhen Co ltd
Original Assignee
Cotell Intelligent Technology Shenzhen 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 Cotell Intelligent Technology Shenzhen Co ltd filed Critical Cotell Intelligent Technology Shenzhen Co ltd
Priority to CN202011567368.8A priority Critical patent/CN112735414B/en
Publication of CN112735414A publication Critical patent/CN112735414A/en
Application granted granted Critical
Publication of CN112735414B publication Critical patent/CN112735414B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • G10L2015/223Execution procedure of a spoken command

Landscapes

  • Engineering & Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application relates to an online-offline dual-mode voice control method, a system and a storage medium, which relate to the technical field of voice recognition and solve the problem that a pure online control mode cannot control related equipment through voice recognition under the condition of poor network, and comprise switching a voice control mode according to the network connection state of equipment receiving voice instructions, wherein the voice control mode comprises an online mode and an offline mode; the online mode is used for obtaining a voice control instruction through voice recognition by a voice search engine; the offline mode obtains a voice control instruction by inquiring and comparing a preset first database which stores voice information and a management and control instruction corresponding to related voice information; the control equipment executes according to the voice control instruction and performs voice broadcasting. The application can flexibly switch between different voice control modes according to the network connection condition of the equipment, and does not influence the voice recognition control equipment for users when the network state is poor or offline.

Description

Online and offline dual-mode voice control method, system and storage medium
Technical Field
The application relates to the technical field of voice recognition, in particular to an online and offline dual-mode voice control method, system and storage medium.
Background
With the continuous progress of technology, speech recognition technology is increasingly applied to fields such as industry, home appliances, communication, automotive electronics, medical treatment, home services, consumer electronics, etc.
The current voice recognition technology is mainly an online voice control scheme, the online voice control scheme performs voice recognition through a voice search engine at a cloud end, the network is required to work, the response speed is generally 2-5 seconds, the volume is relatively large, the cost is relatively high, the length and the number of voice command words are not limited, semantic understanding recognition can be supported, but when the states of poor network state, online connection and the like occur, an air conditioner is taken as an example, once the network has a problem, the voice function cannot be used by the pure online mode voice recognition air conditioner, and the mode of remote control panel control is required to be returned.
With respect to the related art described above, the inventors consider that there is a disadvantage in that the pure online control mode cannot control the related devices through voice recognition in case of network failure.
Disclosure of Invention
In order to solve the problem that the pure online control mode cannot control related equipment through voice recognition under the condition of poor network, the application provides an online-offline dual-mode voice control method, an online-offline dual-mode voice control system and a storage medium.
In a first aspect, the present application provides an online offline dual-mode voice control method, which adopts the following technical scheme:
acquiring a voice instruction;
switching a voice control mode according to the network connection state of the received voice instruction equipment, wherein the voice control mode comprises an online mode and an offline mode; the online mode is used for obtaining a voice control instruction through voice recognition by a voice search engine; the offline mode obtains a voice control instruction by inquiring and comparing a preset first database which stores voice information and a management and control instruction corresponding to related voice information;
the control equipment executes according to the voice control instruction and performs voice broadcasting.
By adopting the technical scheme, the switching of the timely voice control mode can be performed based on the network condition of the equipment for receiving the voice command, so that the voice command is timely identified, the equipment is effectively and timely controlled, and a user can timely know the equipment in time when the equipment is controlled.
Optionally, the step of switching the voice control mode according to the network connection state of the device receiving the voice command is as follows:
when a voice instruction is sent out, a section of message header is synchronously sent to a server;
If the server responds to completion within the preset time and returns the message data to the terminal, the equipment receiving the voice command is judged to be in a state without network or unstable network, and the voice control mode is set to be an offline mode; otherwise, the equipment receiving the voice command is judged to be in a network connection stable state, and the voice control mode is set to be an on-line mode.
By adopting the technical scheme, the on-line or off-line mode is dynamically switched by detecting the return time of the sent message; the method has the effects of low delay, dynamic balance, dynamic regulation and quick response.
The method can simply and effectively test whether the voice command receiving equipment is in the state of the voice command receiving equipment, thereby facilitating the subsequent switching of more accurate and effective control voice control modes.
Optionally, the step of switching the voice control mode according to the network connection state of the device receiving the voice command is as follows:
acquiring a network connection state of equipment receiving voice instructions;
Inquiring and acquiring the history of the voice command receiving equipment, wherein the history has no network connection or the condition of unstable network and the time period and duration of the network;
If the number of times that the history of the equipment receiving the voice instruction has no network connection or network instability is larger than or equal to the preset number of times, and the equipment receiving the voice instruction is in a state without network connection or network instability at present, the time consumption of the equipment recovering to the network stable connection is predicted, the time consumption is compared with the predicted tolerance waiting time of the personnel sending the voice instruction, and the voice control mode is switched based on the comparison result;
If the number of times that no network connection or network instability occurs in the history of the equipment is found to be smaller than the preset number of times, when the current network connection state of the equipment receiving the voice instruction is that the network connection is unstable or no network exists, switching the voice control mode into an offline mode; otherwise, when the current network connection state of the voice command receiving equipment is stable connection, the voice control mode is switched to the online mode.
By adopting the technical scheme, the network condition of the equipment for receiving the voice instruction is considered not only singly, but also the condition of human waiting is considered, so that the voice control mode can better meet the expectations of the personnel sending the voice instruction.
Optionally, the step of switching the voice control mode based on the comparison result is specifically as follows:
If the time consumption for the equipment to recover to the stable network connection is less than or equal to the predicted tolerance waiting time of the person sending the voice instruction, setting the voice control mode to be an online mode;
Otherwise, if the time taken for the device to resume the network stable connection exceeds the predicted tolerance waiting time of the person issuing the voice instruction, the voice control mode is set to the off-line mode.
By adopting the technical scheme, the method particularly discloses how to switch the relevant voice control modes based on the comparison condition of the time consumption of the equipment to restore to the stable network connection and the predicted tolerance waiting time of the voice command issuing personnel, so that the method better accords with the expectations of the voice command issuing personnel.
Optionally, the time-consuming acquisition step for the device to revert to the network stable connection is as follows:
The method comprises the steps that from a second database which is preset and stores equipment numbers and has no time period and duration of network connection or network instability condition of corresponding equipment history each time, the corresponding equipment history is obtained by inquiring the numbers of voice command equipment;
acquiring the duration of each occurrence of no network connection or network instability condition in the same time period as the voice command sending time, taking the average value as a weight parameter I, and taking the duration of the last no network connection or network instability condition in the same time period as a weight parameter II;
And analyzing and calculating the total consumption time of the equipment from the unstable network to the stable network based on the first weight parameter, the second weight parameter and a pre-constructed total consumption time prediction formula, wherein the pre-constructed total consumption time prediction formula is specifically as follows: z=a+b+p, q+p=1, a is a weight parameter one, q is a weight proportion occupied by the weight parameter one, B is a weight parameter two, p is a weight proportion occupied by the weight parameter two, and Z is a total consumption time for the device to recover from network instability to network stability;
the half of the total time spent on restoring a device from network instability to network stability is taken as the time spent on restoring the device to a network stable connection.
By adopting the technical scheme, the average value of the duration time of no network connection or network instability condition each time appears in the history of the same time period with the voice command sending time and the duration time of no network connection or network instability condition last time in the same time period are combined, the total consumption time of the equipment from network instability to network stability in the time period is effectively analyzed through a pre-built total consumption time prediction formula, and in addition, the fact that the sending time of the voice control command is often not when the network instability happens to the equipment is further considered, therefore, half of the total consumption time of the equipment from network instability to network stability is taken as the time-consuming setting of the equipment to network stability connection, and the time-consuming more accurate prediction of the equipment to network stability connection is realized.
Optionally, the step of obtaining the predicted tolerance waiting time of the person who sends the voice instruction is as follows:
extracting tone information from the voice command;
Comparing the extracted tone color information one by one from a preset third database storing the tone color information of personnel and corresponding personnel, and analyzing personnel information corresponding to the extracted tone color information;
Inquiring and acquiring the tolerating waiting time of the personnel corresponding to the tone color information in the current time period from a preset second database storing the tolerating waiting time of the personnel and the corresponding personnel in different time periods.
By adopting the technical scheme, the waiting time of the personnel corresponding to the tone color information in the current period can be better analyzed by extracting the tone color information from the voice command and inquiring in the second database.
In a second aspect, the present application provides an online offline dual-mode voice control system, which adopts the following technical scheme:
An on-line off-line dual mode voice control system comprising a memory, a processor and a program stored on the memory and executable on the processor, the program being capable of implementing the on-line off-line dual mode voice control method as claimed in any one of the preceding claims when loaded and executed by the processor
Through adopting above-mentioned technical scheme, through the calling of procedure, can make the switching of timely voice control mode based on the network condition of receiving voice command equipment to ensure that voice control command in time translates into management and control command, realize the effective timely management and control to equipment, compare in single use online voice control scheme must have the network just can work and react slowly with high costs, and single use local voice control scheme discernment accuracy is lower defect relatively, this scheme has realized the integration of online off-line bimodulus voice control system.
In a third aspect, the present application provides a computer storage medium, which adopts the following technical scheme:
a computer storage medium comprising a program capable of implementing an online offline dual-mode speech control method according to any of the preceding claims when loaded and executed by a processor.
Through adopting above-mentioned technical scheme, through the calling of procedure, can make the switching of timely voice control mode based on the network condition of receiving voice command equipment to ensure that voice control command in time translates into management and control command, realize the effective timely management and control to equipment, compare in single use online voice control scheme must have the network just can work and react slowly with high costs, and single use local voice control scheme discernment accuracy is lower defect relatively, this scheme has realized the integration of online off-line bimodulus voice control system.
In summary, the beneficial technical effects of the application are as follows: the voice control device is flexibly switched between different voice control modes according to the network connection condition of the device, and the voice recognition control device for a user is not affected when the network state is poor or offline.
Drawings
FIG. 1 is a schematic diagram of overall steps of an online-offline dual-mode voice control method according to an embodiment of the present application.
Fig. 2 is a schematic diagram of steps for switching voice control modes according to the network connection status of the device receiving voice command in embodiment 1 of the present application.
FIG. 3 is a logic block diagram of an on-line and off-line dual mode voice control method according to embodiment 1 of the present application.
Fig. 4 is a schematic diagram of a step of switching a voice control mode according to a network connection status of a device receiving voice command according to embodiment 2 of the present application.
Fig. 5 is a schematic diagram of the time-consuming acquisition steps of the device mentioned in fig. 4 to revert to a network stable connection.
Fig. 6 is a schematic diagram of the acquisition steps of the estimated tolerance waiting time of the person issuing the voice command mentioned in fig. 4.
Detailed Description
The present application will be described in further detail with reference to the accompanying drawings.
The embodiment of the application discloses an online and offline dual-mode voice control method.
Example 1
Referring to fig. 1, an online-offline dual-mode voice control method includes steps S100 to S300.
In step S100, a voice instruction is acquired.
The voice command mentioned in step S100 is issued in a speaking form by the user.
In step S200, switching a voice control mode according to a network connection state of the device receiving the voice instruction, the voice control mode including an online mode and an offline mode; the online mode is used for obtaining a voice control instruction through voice recognition by a voice search engine; the offline mode obtains a voice control instruction by inquiring and comparing a preset first database which stores voice information and a management and control instruction corresponding to related voice information.
Referring to fig. 2, the step of switching the voice control mode according to the network connection state of the device receiving the voice command mentioned in step S200 may be divided into steps S2a0 to S2b0.
In step S2a0, when the voice command is issued, the client synchronously sends a segment of message header to the server.
Regarding the header mentioned in step S2a0, firstly, a message is explained, where the message is a unit of network transmission, and in the transmission process, the message is continuously encapsulated into packets, and frames for transmission, and the encapsulation is to add some information segments, and those are the header.
The server mentioned in step S2a0 is one of computers, which runs faster, is more loaded and is more expensive than a normal computer. The server provides computing or application services to other clients in the network (e.g., terminals such as PCs, smartphones, ATM, and even large devices such as train systems). The server has high-speed CPU operation capability, long-time reliable operation, strong I/O external data throughput capability and better expansibility. In general, a server has the ability to afford to respond to a service request, to afford to service, and to secure service, depending on the service provided by the server. The server is used as electronic equipment, and the internal structure of the server is quite complex, but is not quite different from the internal structure of a common computer, such as: cpu, hard disk, memory, system bus, etc.
In step S2b0, if the server responds to completion within a preset time and returns the message data to the terminal, the voice command receiving device is determined to be in a state without network or unstable network, and the voice control mode is set to be an offline mode; otherwise, the equipment receiving the voice command is judged to be in a network connection stable state, and the voice control mode is set to be an on-line mode.
The message data mentioned in step S2b0 may be preset, the terminal to which the return message data mentioned in step S2b0 is given may be a device having input and output, here may be a device receiving a voice command, and the preset time mentioned in step S2b0 may be 0.5 seconds or other times.
In step S300, the control device executes according to the voice control instruction acquired after the voice recognition, and performs voice broadcasting.
Referring to fig. 3, the implementation principle of the present embodiment is as follows: after the voice control instruction is sent out, the client sends a message header to the server, and the time for the server to return the result is less than the preset time, then the voice control instruction is executed, the control result (which is equivalent to the execution of the equipment according to the voice control instruction) is returned, and simultaneously, voice broadcasting is performed to enable the user to know that the equipment is executed according to the voice control instruction; when the time for waiting for the server to return the result exceeds the preset time, the voice control mode is changed into the off-line mode, the voice command can acquire the voice control command through the off-line mode voice recognition, then the control result is returned, and finally the voice broadcast can be performed under the condition that the user knows that the equipment is executed according to the voice control command.
Example 2
Referring to fig. 4, the difference between the present embodiment and the embodiment is that the voice control mode is switched according to the network connection status of the voice command receiving device, and the voice control mode is switched according to the network connection status of the voice command receiving device in embodiment 2, which is divided into steps S2A0, S2B0, S2C0, and S2D0 according to steps, wherein the steps S2C0 and S2D0 are parallel steps.
In step S2A0, the network connection state of the device that receives the voice instruction is acquired.
The step S2A0 may be implemented by using the step S2A0 and the step S2b0 applied in embodiment 1 to indirectly detect the network connection state of the device receiving the voice command, but is not limited thereto, and may be implemented by other ways in which the network connection state of the device receiving the voice command may be directly or indirectly detected.
In step S2B0, the inquiry acquires the history of the received voice instruction device every time there is no network connection or the period and duration in which the network unstable condition is present.
Wherein, the period and duration of time during which the history of the acquired device mentioned in step S2B0 appears to be no network connection or a network unstable condition can be acquired by means of database query.
In step S2C0, if the number of times that the history of the device receiving the voice command has no network connection or is not less than the preset number of times, and the device receiving the voice command is currently in a state of no network connection or is not stable in network, the time consumed by the prediction device to recover to the network stable connection is compared with the predicted tolerance waiting time of the person sending the voice command, and the voice control mode is switched based on the comparison result.
The step of switching the voice control mode based on the comparison result mentioned in step S2C0 is specifically as follows: if the time consumption for the equipment to recover to the stable network connection is less than or equal to the predicted tolerance waiting time of the person sending the voice instruction, setting the voice control mode to be an online mode; otherwise, if the time taken for the device to resume the network stable connection exceeds the predicted tolerance waiting time of the person issuing the voice instruction, the voice control mode is set to the off-line mode.
For example, assuming that the time taken for the device to resume a network stable connection is 10 seconds and the expected tolerance waiting time for the voice command personnel is 12 seconds, then the voice control mode is an online mode.
Referring to fig. 5, the time taken for the device mentioned in step S2C0 to resume the network stable connection may be divided into steps Sa00 to Sd00.
In step Sa00, from a second database stored with device numbers and corresponding number device histories, each time a period and duration of no network connection or network instability condition exists, the number inquiry of the receiving voice command device is used for obtaining the period and duration of no network connection or network instability condition exists in the corresponding number device histories.
In step Sb00, the duration of each occurrence of the network connection-free or network-unstable condition in the same period as the voice command-out time is obtained and the average value is taken as the weight parameter one, and the duration of the last network connection-free or network-unstable condition in the same period is taken as the weight parameter two.
In step Sc00, the total consumption time of the device from the network instability to the network stability is calculated based on the weight parameter one, the weight parameter two and the pre-constructed total consumption time prediction formula, and the pre-constructed total consumption time prediction formula is specifically as follows: z=a+b+p, q+p=1, a is a weight parameter one, q is a weight proportion occupied by the weight parameter one, B is a weight parameter two, p is a weight proportion occupied by the weight parameter two, and Z is a total consumption time for the device to recover from network instability to network stability.
In step Sd00, half of the total time taken for the device to revert from network instability to network stability is taken as the time taken for the device to revert to a network stable connection.
For example, the weight parameter one A is 8 seconds, q is 40%, the weight parameter two is 6 seconds, p is 60%, then Z is 6.8 seconds, then the time taken for the device to revert to a network stable connection is 3.4 seconds.
Referring to fig. 6, the steps of acquiring the predicted tolerance waiting time of the person issuing the voice command mentioned in step S2C0 may be divided into steps SA00 to SC00.
In step SA00, tone color information is extracted from the voice command.
The tone color information mentioned in step SA00 refers to the acoustic spectrum carrying language information in human language, which has unique biological characteristics, has specificity, and has stronger stability with age.
In step SB00, the extracted tone color information is compared one by one from a third database storing the tone color information of persons and corresponding persons, and the person information corresponding to the extracted tone color information is analyzed.
The third database mentioned in step SB00 may be established by first collecting the voice information of a certain number of users as samples, filtering the noise information in the voice information of the samples by using a noise suppression method, then extracting the voice Feature points from the voice information after noise suppression by using a Feature extraction algorithm, for example, the electronic device extracts the voice Feature points from the voice information by using mel cepstrum coefficient MFCC or perceived linear prediction coefficient PLP or depth Feature or energy scale coefficient PNCC, and finally, the electronic device constructs the third database according to the voice Feature points.
In step SC00, the waiting time of the person corresponding to the acquired tone color information in the current period is queried from a preset second database storing the waiting time of the person and the corresponding person in different periods.
Embodiments of the present application also provide a computer readable storage medium comprising a program capable of implementing a method as any of fig. 1-6 when loaded and executed by a processor.
The computer-readable storage medium includes, for example: a usb disk, a removable hard disk, a Read-only memory (ROM), a random access memory (RandomAccessMemory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Based on the same inventive concept, the embodiment of the application also provides an online-offline dual-mode voice control system, which comprises a memory and a processor, wherein the memory stores a program capable of running on the processor to realize any one of the methods shown in fig. 1 to 6.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to perform all or part of the functions described above. The specific working processes of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which are not described herein.
In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk or an optical disk.
The embodiments of the present invention are all preferred embodiments of the present invention, and are not intended to limit the scope of the present invention in this way, therefore: all equivalent changes in structure, shape and principle of the invention should be covered in the scope of protection of the invention.

Claims (5)

1. An online-offline dual-mode voice control method is characterized by comprising the following steps:
acquiring a voice instruction;
switching a voice control mode according to the network connection state of the received voice instruction equipment, wherein the voice control mode comprises an online mode and an offline mode; the online mode is used for obtaining a voice control instruction through voice recognition by a voice search engine; the offline mode obtains a voice control instruction by inquiring and comparing a preset first database which stores voice information and a management and control instruction corresponding to related voice information;
the control equipment executes according to the voice control instruction and performs voice broadcasting;
The step of switching the voice control mode according to the network connection state of the voice command receiving equipment is as follows:
acquiring a network connection state of equipment receiving voice instructions;
Inquiring and acquiring the history of the voice command receiving equipment, wherein the history has no network connection or the condition of unstable network and the time period and duration of the network;
If the number of times that the history of the equipment receiving the voice instruction has no network connection or network instability is larger than or equal to the preset number of times, and the equipment receiving the voice instruction is in a state without network connection or network instability at present, the time consumption of the equipment recovering to the network stable connection is predicted, the time consumption is compared with the predicted tolerance waiting time of the personnel sending the voice instruction, and the voice control mode is switched based on the comparison result;
If the number of times that no network connection or network instability occurs in the history of the equipment is found to be smaller than the preset number of times, when the current network connection state of the equipment receiving the voice instruction is that the network connection is unstable or no network exists, switching the voice control mode into an offline mode; conversely, when the current network connection state of the voice command receiving equipment is stable connection, the voice control mode is switched to an on-line mode;
the step of switching the voice control mode based on the comparison result is specifically as follows:
If the time consumption for the equipment to recover to the stable network connection is less than or equal to the predicted tolerance waiting time of the person sending the voice instruction, setting the voice control mode to be an online mode;
Otherwise, if the time consumption of the equipment to restore to the stable network connection exceeds the predicted tolerance waiting time of the personnel sending the voice command, setting the voice control mode to be an offline mode;
the time-consuming acquisition steps for the device to revert to a stable network connection are as follows:
The method comprises the steps that from a second database which is preset and stores equipment numbers and has no time period and duration of network connection or network instability condition of corresponding equipment history each time, the corresponding equipment history is obtained by inquiring the numbers of voice command equipment;
acquiring the duration of each occurrence of no network connection or network instability condition in the same time period as the voice command sending time, taking the average value as a weight parameter I, and taking the duration of the last no network connection or network instability condition in the same time period as a weight parameter II;
And analyzing and calculating the total consumption time of the equipment from the unstable network to the stable network based on the first weight parameter, the second weight parameter and a pre-constructed total consumption time prediction formula, wherein the pre-constructed total consumption time prediction formula is specifically as follows: z=a+b+p, q+p=1, a is a weight parameter one, q is a weight proportion occupied by the weight parameter one, B is a weight parameter two, p is a weight proportion occupied by the weight parameter two, and Z is a total consumption time for the device to recover from network instability to network stability;
the half of the total time spent on restoring a device from network instability to network stability is taken as the time spent on restoring the device to a network stable connection.
2. The on-line and off-line dual mode voice control method as claimed in claim 1, wherein the step of switching the voice control mode according to the network connection state of the received voice command device comprises the steps of:
when a voice instruction is sent, the client synchronously sends a section of message header to the server;
If the server responds to completion within the preset time and returns the message data to the terminal, the equipment receiving the voice command is judged to be in a state without network or unstable network, and the voice control mode is set to be an offline mode; otherwise, the equipment receiving the voice command is judged to be in a network connection stable state, and the voice control mode is set to be an on-line mode.
3. The on-line and off-line dual-mode voice control method according to claim 1, wherein the method comprises the following steps: the steps for obtaining the predicted tolerance waiting time of the person who sends the voice command are as follows:
extracting tone information from the voice command;
Comparing the extracted tone color information one by one from a preset third database storing the tone color information of personnel and corresponding personnel, and analyzing personnel information corresponding to the extracted tone color information;
Inquiring and acquiring the tolerating waiting time of the personnel corresponding to the tone color information in the current time period from a preset second database storing the tolerating waiting time of the personnel and the corresponding personnel in different time periods.
4. An on-line off-line dual mode speech control system comprising a memory, a processor and a program stored on the memory and executable on the processor, the program being capable of implementing the on-line off-line dual mode speech control method according to any one of claims 1 to 3 when loaded and executed by the processor.
5. A computer storage medium, characterized by: a program comprising instructions capable of implementing the online-offline dual-mode voice control method according to any one of claims 1 to 3 when loaded and executed by a processor.
CN202011567368.8A 2020-12-25 2020-12-25 Online and offline dual-mode voice control method, system and storage medium Active CN112735414B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011567368.8A CN112735414B (en) 2020-12-25 2020-12-25 Online and offline dual-mode voice control method, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011567368.8A CN112735414B (en) 2020-12-25 2020-12-25 Online and offline dual-mode voice control method, system and storage medium

Publications (2)

Publication Number Publication Date
CN112735414A CN112735414A (en) 2021-04-30
CN112735414B true CN112735414B (en) 2024-06-07

Family

ID=75616705

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011567368.8A Active CN112735414B (en) 2020-12-25 2020-12-25 Online and offline dual-mode voice control method, system and storage medium

Country Status (1)

Country Link
CN (1) CN112735414B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113327602A (en) * 2021-05-13 2021-08-31 北京百度网讯科技有限公司 Method and device for speech recognition, electronic equipment and readable storage medium
CN114550719A (en) * 2022-02-21 2022-05-27 青岛海尔科技有限公司 Method and device for recognizing voice control instruction and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104182498A (en) * 2014-08-15 2014-12-03 成都天奥信息科技有限公司 Electronic chart engine under Android platform and electronic chart display method without time delay under Android platform
WO2017032070A1 (en) * 2015-08-21 2017-03-02 中兴通讯股份有限公司 Voice recognition method, apparatus, and computer storage medium
CN107424607A (en) * 2017-07-04 2017-12-01 珠海格力电器股份有限公司 Voice command mode switching method, device and the equipment with the device
CN108039171A (en) * 2018-01-08 2018-05-15 珠海格力电器股份有限公司 Sound control method and device
CN111726394A (en) * 2020-05-25 2020-09-29 杭州涂鸦信息技术有限公司 Equipment off-line detection method and related device thereof
CN112037785A (en) * 2020-08-14 2020-12-04 深圳市欧瑞博科技股份有限公司 Control method and device of intelligent equipment, electronic equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104182498A (en) * 2014-08-15 2014-12-03 成都天奥信息科技有限公司 Electronic chart engine under Android platform and electronic chart display method without time delay under Android platform
WO2017032070A1 (en) * 2015-08-21 2017-03-02 中兴通讯股份有限公司 Voice recognition method, apparatus, and computer storage medium
CN107424607A (en) * 2017-07-04 2017-12-01 珠海格力电器股份有限公司 Voice command mode switching method, device and the equipment with the device
CN108039171A (en) * 2018-01-08 2018-05-15 珠海格力电器股份有限公司 Sound control method and device
CN111726394A (en) * 2020-05-25 2020-09-29 杭州涂鸦信息技术有限公司 Equipment off-line detection method and related device thereof
CN112037785A (en) * 2020-08-14 2020-12-04 深圳市欧瑞博科技股份有限公司 Control method and device of intelligent equipment, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112735414A (en) 2021-04-30

Similar Documents

Publication Publication Date Title
CN112735414B (en) Online and offline dual-mode voice control method, system and storage medium
CN107180632A (en) Sound control method, device and readable storage medium storing program for executing
US20090006541A1 (en) Load Distribution in Client Server System
CN110417879A (en) A kind of message treatment method, device, equipment and storage medium
CN110570215A (en) Intelligent customer service system
CN113419890A (en) Abnormal type detection method, device, server and medium
CN113905091A (en) Method and device for processing access request
CN116627771B (en) Log acquisition method, device, electronic equipment and readable storage medium
CN108933870B (en) Dialing control method and device for sales call, computer equipment and storage medium
CN105740056B (en) Information processing method and electronic equipment
CN112256879B (en) Information processing method and apparatus, electronic device, and computer-readable storage medium
CN115130112A (en) Quick start-stop method, device, equipment and storage medium
CN115576682A (en) Calculation capacity sharing method, device and system
CN103095786A (en) Online business request identification method and system and server and online sever cluster
CN106293929B (en) Data processing method and first electronic device
JPH10242997A (en) Information providing device and information providing method
CN115249474A (en) Method, system, device and storage medium for recognizing voice information
CN113327602A (en) Method and device for speech recognition, electronic equipment and readable storage medium
CN112988417A (en) Message processing method and device, electronic equipment and computer readable medium
CN112286662A (en) Task pushing method, device and equipment based on shared resources and storage medium
CN112422414B (en) Session message processing method, device and computer readable storage medium
CN116992439B (en) User behavior habit model determining method, device, equipment and medium
CN114117380A (en) Data processing method, device, equipment and storage medium
CN116629944A (en) Recommendation method, system and storage medium
CN117493000A (en) Task processing method, device, equipment and medium

Legal Events

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