CN112667270B - Updating method of voice processing resource, computer equipment and storage device - Google Patents
Updating method of voice processing resource, computer equipment and storage device Download PDFInfo
- Publication number
- CN112667270B CN112667270B CN202011539620.4A CN202011539620A CN112667270B CN 112667270 B CN112667270 B CN 112667270B CN 202011539620 A CN202011539620 A CN 202011539620A CN 112667270 B CN112667270 B CN 112667270B
- Authority
- CN
- China
- Prior art keywords
- storage unit
- voice
- processing
- processing resource
- resource
- 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
Links
- 238000012545 processing Methods 0.000 title claims abstract description 679
- 238000000034 method Methods 0.000 title claims abstract description 127
- 238000012795 verification Methods 0.000 claims description 73
- 230000008569 process Effects 0.000 claims description 40
- 230000007704 transition Effects 0.000 claims description 16
- 230000004044 response Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 238000006243 chemical reaction Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000000926 separation method Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Landscapes
- Exchange Systems With Centralized Control (AREA)
- Telephone Function (AREA)
Abstract
The application discloses a method for updating voice processing resources, computer equipment and a storage device. The method comprises the following steps: the method comprises the steps that a first storage unit is configured to be in a service working state, a second storage unit is configured to be in an updating working state, wherein the storage unit in the service working state is used for processing voice data by utilizing voice processing resources, and the storage unit in the updating working state is used for responding to a resource updating request to execute updating of the voice processing resources; receiving a resource update request, and updating the voice processing resource by using a second storage unit in an update working state; after the speech processing resource is updated, the first storage unit is configured to be in an updating working state, and the second storage unit is configured to be in a business working state. By the scheme, the processing of the voice data can be uninterrupted when the voice processing resources are updated.
Description
Technical Field
The present invention relates to the field of speech processing, and in particular, to a method for updating speech processing resources, a computer device, and a storage device.
Background
With the gradual development of speech processing technology, speech processing is increasingly applied to various environments. However, for example, in the process of performing speech recognition, when the speech recognition model needs to be updated, the speech recognition is generally performed first, and after the speech recognition model is updated, the process of performing speech recognition is performed. The mode can interrupt the voice recognition processing, so that problems such as clamping and the like occur in the voice recognition process.
Disclosure of Invention
The technical problem to be solved mainly by the application is to provide a method for updating voice processing resources, computer equipment and a storage device, which can not interrupt the processing of voice data when the voice processing resources are updated.
In order to solve the above problems, a first aspect of the present application provides a method for updating a speech processing resource. The method comprises the following steps: the method comprises the steps that a first storage unit is configured to be in a service working state, a second storage unit is configured to be in an updating working state, wherein the storage unit in the service working state is used for processing voice data by utilizing voice processing resources, and the storage unit in the updating working state is used for responding to a resource updating request to execute updating of the voice processing resources; receiving a resource update request, and updating the voice processing resource by using a second storage unit in an update working state; after the speech processing resource is updated, the first storage unit is configured to be in an updating working state, and the second storage unit is configured to be in a business working state.
In order to solve the above-mentioned problem, a second aspect of the present application provides a computer device, which includes a memory and a processor coupled to each other, where the memory stores program data, and the processor is configured to execute the program data to implement any step in the above-mentioned method for updating speech processing resources.
In order to solve the above-described problems, a third aspect of the present application provides a storage device storing program data capable of being executed by a processor, the program data being used to implement any one of the steps of the above-described updating method of a speech processing resource.
In the above scheme, the first storage unit is configured into the service working state, the second storage unit is configured into the update working state, the storage unit in the service working state is used for processing the voice data by using the voice processing resources, the storage unit in the update working state is used for executing the update of the voice processing resources in response to the resource update request, and the storage units in different working states can be used for respectively processing the voice data and the update of the voice processing resources; when a resource update request is received, a second storage unit in an update working state is utilized to update the voice processing resource, after the voice processing resource is updated, the first storage unit is configured to be in an update working state, and the second storage unit is configured to be in a service working state; the second storage unit is used for updating the voice processing resource, so that the voice data processing service can be continuously provided without interrupting the use of the first storage unit for processing the voice data when the voice processing resource is updated.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief description will be given below of the drawings that are needed in the embodiments or the prior art descriptions, and it is obvious that the drawings in the following description are some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a first embodiment of a method for updating speech processing resources of the present application;
FIG. 2 is a flow chart of a second embodiment of a method for updating speech processing resources of the present application;
FIG. 3 is a flow chart of a third embodiment of a method for updating speech processing resources of the present application;
FIG. 4 is a flow chart of a fourth embodiment of a method for updating speech processing resources of the present application;
FIG. 5 is a schematic diagram of an embodiment of a computer device of the present application;
FIG. 6 is a schematic diagram of an embodiment of a memory device according to the present application.
Detailed Description
The following describes the embodiments of the present application in detail with reference to the drawings.
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments without conflict.
The terms "system" and "network" are often used interchangeably herein. The term "and/or" is herein merely an association relationship describing an associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship. Further, "a plurality" herein means two or more than two.
Referring to fig. 1, fig. 1 is a flowchart of a first embodiment of a method for updating speech processing resources according to the present application. The method comprises the following steps:
S11: the first storage unit is configured to be in a service working state, and the second storage unit is configured to be in an update working state.
The storage unit may be a memory block, a memory section, etc. of the storage device. For example, one of the memory blocks of the memory device may be used as a first memory unit, and one of the memory blocks may be used as a second memory unit; the memory device may be divided into a plurality of memory intervals, where one memory interval is used as the first memory unit, and one memory interval is used as the second memory unit, which is not limited in this application.
The operating states that may be configured for the memory cells may include a plurality of operating states including at least one of: business working state, updating working state, transition working state, etc. The storage unit in the service working state is used for processing voice data by utilizing voice processing resources, for example, the first storage unit in the service working state can be used for performing voice recognition on voice data such as sound recordings by utilizing a voice recognition model so as to convert the voice data into information such as texts. The storage unit in the update operation state is used for performing an update of the speech processing resources, such as updating the speech recognition model, in response to the resource update request. The transition working state is an intermediate state between the service working state and the updating working state, and the storage unit in the working state is used for processing the updating working state, the voice processing resources, voice data and the like in state switching between the service working states.
In some embodiments, after receiving the service processing request, processing the voice data by using the storage unit in the service working state; after receiving the resource update request, the storage unit in the update work state is utilized to update the voice processing resource. In addition, the storage unit in the service working state can be used for receiving the service processing request, and when the service processing request is received, the storage unit in the service working state is used for processing voice data by utilizing the voice processing resource. The resource update request may be received with the storage unit in an update operational state, such that when the resource update request is received, the storage unit in the update operational state is used to perform an update of the speech processing resource in response to the resource update request.
S12: and receiving a resource updating request, and updating the voice processing resource by using the second storage unit in an updating working state.
If the resource updating request is received, the second storage unit in the updating working state is utilized to update the voice processing resource, and the voice processing resource updating data can be stored. For example, when receiving a request for updating the speech recognition model, the second storage unit in the update operation state may be used to load the update data of the speech recognition model for updating and store the updated speech recognition model data.
Optionally, when a resource update request is received, the second storage unit is switched from the update operation state to the transition operation state, so that the second storage unit is not used to respond to the newly received resource update request, and the second storage unit in the transition operation state is used to update the speech processing resource.
S13: after the speech processing resource is updated, the first storage unit is configured to be in an updating working state, and the second storage unit is configured to be in a business working state.
After the update of the speech processing resources is completed with the second storage unit in the transitional operation state, the first storage unit is configured to the update operation state so that a new resource update request can be received with the first storage unit in the update operation state, and the update of the speech processing resources is performed with the first storage unit in the update operation state in response to the new resource update request.
After the update of the voice processing resource is completed by using the second storage unit in the transitional working state, the second storage unit is configured into the service working state, and it can be understood that the second storage unit can be switched from the transitional working state to the service working state, so that the second storage unit in the service working state is used for receiving a new service processing request, and the second storage unit in the service working state is used for processing voice data by using the voice processing resource. The first storage unit after switching the working state can execute the work of the second storage unit before switching the working state, and the second storage unit after switching the working state can execute the work of the first storage unit before switching the working state.
Optionally, for the step S13, configuring the first storage unit to update the working state includes: and switching the first storage unit from the service working state to the updating working state so as to not utilize the first storage unit to process the received and unprocessed voice data. Specifically, if the service processing request is not received or the processing of the voice data by the voice processing resource of the received service processing request is completed, the first storage unit may be switched from the working state to the updating working state, or the first storage unit may be switched from the working state to the transition working state and then switched to the updating working state, so that the received and unprocessed voice data is not processed by the first storage unit.
Optionally, if the voice data is processed by using the service processing request responded in the first storage unit, there is still an unprocessed service processing request received, and there is unprocessed and received voice data, the received and unprocessed voice data may be processed by using the voice processing resource in the second storage unit after the second storage unit is configured to be in the service working state. In particular, the received and unprocessed speech data in the first memory list may be sent to the second memory unit, such that the received and unprocessed speech data is processed using the speech processing resources of the second memory unit.
Optionally, for the step S13, configuring the first storage unit to update the working state may further include: and switching the first storage unit from the service working state to the transition working state so as to continuously process the received and unprocessed voice data by using the first storage unit in the transition working state, and not responding to a new service processing request by using the first storage unit any more so as not to process the newly received voice data any more. After the received and unprocessed voice data is processed by the first storage unit, the first storage unit is switched from the transitional working state to the updating working state, so that the first storage unit in the updating working state is used for executing the updating of the voice processing resource in response to the resource updating request.
In this embodiment, by configuring the first storage unit to be in a service working state, configuring the second storage unit to be in an update working state, the storage unit in the service working state being used for processing voice data by using the voice processing resources, the storage unit in the update working state being used for performing update of the voice processing resources in response to the resource update request, the storage units in different working states can be used for respectively processing the voice data and update of the voice processing resources; when a resource update request is received, a second storage unit in an update working state is utilized to update the voice processing resource, after the voice processing resource is updated, the first storage unit is configured to be in an update working state, and the second storage unit is configured to be in a service working state; the second storage unit is used for updating the voice processing resource, so that the voice data processing service can be continuously provided without interrupting the use of the first storage unit for processing the voice data when the voice processing resource is updated.
Referring to fig. 2, fig. 2 is a flowchart illustrating a second embodiment of a method for updating speech processing resources according to the present application. The method comprises the following steps:
s21: the first storage unit is configured to be in a service working state, and the second storage unit is configured to be in an update working state.
The first storage unit in the service working state stores a first voice processing resource and a second voice processing resource, the first voice processing resource can be a voice processing resource which is updated frequently or can be updated frequently, the second voice processing resource can be a voice processing resource which is not updated frequently or can not be updated frequently, and the combination of the first voice processing resource and the second voice processing resource is used for realizing the processing of voice data. At this time, the second storage unit in the updated operation state may not store the voice processing resource. The present application does not limit the first speech processing resources and the second speech processing resources.
When receiving the resource update request, the second storage unit in the update working state can be utilized to update the voice processing resource.
Alternatively, the resource update request may be used to request to update the first speech processing resource, and the updated first speech processing resource is obtained by using the second storage unit in the update operation state, so as to update the speech processing resource.
Alternatively, the resource update request may be used to request updating of the second speech processing resource, and the updated second speech processing resource is obtained by using the second storage unit in the update operation state, so as to update the speech processing resource.
The present embodiment is described taking as an example that a resource update request is used to request updating of a first speech processing resource.
S22: and receiving a resource update request, and acquiring updated first voice processing resources by using the second storage unit in an update working state.
After receiving the resource update request, the second storage unit in the update working state can be utilized to respond to the resource update request, and the second storage unit is switched to the transition working state, at the moment, the second storage unit is not utilized to respond to the new resource update request, the second storage unit is utilized to load the updated voice processing resources in the resource update request, so as to obtain updated first voice processing resources, and the updated first voice processing resources are stored in the second storage unit.
S23: the second speech processing resources in the first memory unit are provided to the second memory unit.
Because the second storage unit stores the updated first speech processing resource, if the second storage unit is used to process speech data by using the speech processing resource, and the speech data is processed by using the combination of the first speech processing resource and the second speech processing resource, the second speech processing resource in the first storage unit needs to be provided to the second storage unit, so that the speech data is processed by using the updated first speech processing resource and the updated second speech processing resource stored in the second storage unit.
Optionally, the second speech processing resource in the first storage unit is sent to the second storage unit, so that the second storage unit can receive the second speech processing resource for storage. For example, the second speech processing resource in the first storage unit is moved to the second storage unit for storage.
Optionally, the second speech processing resource in the first storage unit is sent to the third storage unit for storage, so that the second storage unit can obtain the second speech processing resource by accessing the third storage unit. In some application scenarios, the third storage unit may be a memory block, a memory section, or the like of the storage device, the first storage unit may mount the third storage unit, and after the second storage unit responds to the resource update request, the update condition of the speech processing resource may be sent to the first storage unit, where the update condition may include the updated second speech processing resource. At this time, the first storage unit may be switched from the service operation state to the transitional operation state, and the second speech processing resource in the first storage unit may be transmitted to the third storage unit for storage. The first storage unit uninstalls the third storage unit so that the second storage unit can mount the third storage unit and can access the second speech processing resource stored in the third storage unit through the second storage unit.
S24: the second speech processing resources in the first memory unit are reserved or deleted.
Optionally, if the first storage unit is switched to the transitional working state, the second speech processing resource is reserved in the first storage unit, so that the received and unprocessed speech data can be processed by using the first speech processing resource and the second speech processing resource stored in the first storage unit. After processing the received and unprocessed speech data, the first speech processing resources and the second speech processing resources in the first memory unit are deleted.
Optionally, if the first storage unit is switched to the transitional working state, the second speech processing resource is deleted in the first storage unit, and the first storage unit and the second storage unit may simultaneously mount the third storage unit to share the third storage unit, so as to allow the first storage unit to access the second speech processing resource in the third storage unit, so as to process the received and unprocessed speech data by using the first speech processing resource in the first storage unit and the second speech processing resource in the third storage unit. After processing the received and unprocessed speech data, the first speech processing resources and the second speech processing resources in the first memory unit are deleted.
S25: after the speech processing resource is updated, the first storage unit is configured to be in an updating working state, and the second storage unit is configured to be in a business working state.
The first storage unit after switching the working state can execute the work of the second storage unit before switching the working state, and the second storage unit after switching the working state can execute the work of the first storage unit before switching the working state. For the implementation of this embodiment, reference may be made to the implementation process of the foregoing embodiment, which is not described herein.
In this embodiment, when a resource update request is received, the updated first speech processing resource is obtained by using the second storage unit in the update working state, and then the second speech processing resource in the first storage unit is provided to the second storage unit, so that the second storage unit stores the second speech processing resource and the updated first speech processing resource, and after switching to the service working state, the updated speech processing resource can be used to continuously receive a new service processing request, so that sharing of context data (speech processing resource) in the first storage unit and the second storage unit is ensured, and meanwhile, service processing services can be provided continuously.
In some embodiments, for step S24 of the foregoing embodiments, after processing the received and unprocessed speech data, if the second speech processing resources in the first storage unit are deleted, and the first speech processing resources that are not updated in the first storage unit are deleted, after the speech processing resources are updated, the first storage unit is configured to be in an update operation state, and the second storage unit is configured to be in a service operation state. And if the new service processing request is received, processing the voice data in the new service processing request by using the updated first voice processing resource and the updated second voice processing resource in the second storage unit in the service working state. If a new resource update request is received, the first storage unit in the update working state is utilized to update the speech processing resource, and the above embodiment is referred to for details, and will not be described herein.
For step S24 of the above embodiment, after processing the received and unprocessed voice data, if the first voice processing resource and the second voice processing resource in the first storage unit are reserved, after the voice processing resource is updated, the first storage unit is configured to be in an updated working state, and the second storage unit is configured to be in a service working state. And if the new service processing request is received, processing the voice data in the new service processing request by using the updated first voice processing resource and the updated second voice processing resource in the second storage unit in the service working state. And if a new resource updating request is received, updating the voice processing resource by using the first storage unit in an updating working state.
Optionally, if the resource update request is used to update the second speech processing resource, the first storage unit in the update working state may be used to respond to the resource update request, switch the first storage unit to the transition working state, and obtain the updated second speech processing resource by using the first storage unit in the update working state. At this time, the first speech processing resource updated last time stored in the second storage unit is sent to the first storage unit for storage. After the first storage unit is switched from the updating working state to the service working state, the first speech processing resource updated in the previous time and the second speech processing resource updated in the current time are stored in the first storage unit to process a new service processing request.
Optionally, if the resource update request is used to update the first speech processing resource again, the first storage unit in the update working state may be used to respond to the resource update request, switch the first storage unit to the transition working state, and obtain the updated first speech processing resource by using the first storage unit in the update working state. At this time, the first storage unit stores the first speech processing resource and the second speech processing resource updated again this time, and the second speech processing resource in the second storage unit does not need to be sent to the first storage unit. After the first storage unit is switched from the updated working state to the service working state, the first voice processing resource and the second voice processing resource in the first storage unit can be utilized to process a new service processing request.
In this embodiment, after processing the received and unprocessed voice data, the second voice processing resource in the first storage unit is deleted, so that the memory space of the first storage unit can be saved, and the occupation of the memory space can be reduced. If the second voice processing resource in the first storage unit is reserved, the transmission operation of the voice processing resource between the first storage unit and the second storage unit can be reduced.
For the above embodiments, please refer to fig. 3, fig. 3 is a flowchart illustrating a third embodiment of a method for updating speech processing resources according to the present application. The method comprises the following steps:
s31: the first storage unit is configured to be in a service working state, and the second storage unit is configured to be in an update working state.
S32: and receiving a resource update request, and acquiring updated first voice processing resources by using the second storage unit in an update working state.
Optionally, when receiving the resource update request, if the resource update request is used for requesting to update the first speech processing resource when the second storage unit responds to the resource update request, the updated first speech processing resource is obtained by using the second storage unit in an update working state; in addition, the second storage unit may also be used to send an operation state transition request to the first storage unit.
The specific implementation of steps S31-S32 in this embodiment may refer to the implementation of steps S11-S12 and S21-S22 in the above embodiment, and will not be described herein.
S33: and carrying out preset processing on the second voice processing resource in the first storage unit to obtain a first verification identifier.
Optionally, the first storage unit is utilized to respond to a working state conversion request, the working state conversion request carries an update condition of the voice processing resource, and the voice processing resource which is not updated in the first storage unit can be subjected to preset processing to obtain the first verification identifier.
Optionally, the second speech processing resource in the first storage unit is subjected to a preset process, where the preset process may be a hash operation, or may be other tamper-resistant identification processes, which is not limited in this application. And carrying out hash operation on the second voice processing resource in the first storage unit, wherein the obtained first hash value can be used as a first verification identifier.
If the second speech processing resource comprises a plurality of speech processing resources or speech recognition models, hash operations can be respectively carried out on the plurality of speech recognition models to obtain first sub-hash values of the respective models, hash operations are carried out on the sub-hash values to obtain first total hash values, and the obtained first total hash values and the first sub-hash values can be used as first verification identifications. For example, the second speech processing resource may include a plurality of speech recognition models, such as a master model, a conversational model, an object model, etc., and the models may be hashed:
H1 =hash (H11 (master model) +h12 (session model) +h13 (object model)) (1)
Where H1 represents the first total hash value, H11 represents the first sub-hash value of the main model, H12 represents the first sub-hash value of the session model, and H13 represents the first sub-hash value of the object model.
S34: and sending the second voice processing resource in the first storage unit to the second storage unit.
The specific implementation of this step may refer to the implementation process of step S23 in the above embodiment, and will not be described herein.
S35: and carrying out preset processing on the provided second voice processing resource to obtain a second verification identifier.
Performing preset processing on the received second voice processing resource by using a second storage unit, for example, performing hash operation on the second voice processing resource, wherein the obtained second hash value can be used as a second verification identifier; if the second speech processing resources comprise a plurality of speech processing resources, hash operations can be respectively carried out on the plurality of speech recognition models to obtain second sub-hash values of the respective models, hash operations are carried out on the sub-hash values to obtain second total hash values, and the obtained second total hash values and the second sub-hash values can be used as second verification marks. For example, the second speech processing resource may include a plurality of speech recognition models, such as a master model, a conversational model, an object model, etc., and the models may be hashed:
H2 =hash (H21 (master model) +h22 (session model) +h23 (object model)) (2)
Where H2 represents the second total hash value, H21 represents the second sub-hash value of the main model, H22 represents the second sub-hash value of the session model, and H23 represents the second sub-hash value of the object model.
S36: and judging whether the second verification identifier is consistent with the first verification identifier.
Whether the second hash value is equal to the first hash value or not can be judged, if so, the second verification mark is consistent with the first verification mark, and the second voice processing resource is not tampered and destroyed; otherwise, the second verification identifier is inconsistent with the first verification identifier, which indicates that the second voice processing resource is tampered.
If the second verification identifier is consistent with the first verification identifier, executing step S37; if the second verification identifier is inconsistent with the first verification identifier, step S38 is executed.
Optionally, if the first verification identifier includes a first total hash value and each first sub-hash value, the second verification identifier includes a second total hash value and each second sub-hash value, it may be determined whether the second total hash value is equal to the first total hash value, and if so, it is determined that the second verification identifier is consistent with the first verification identifier, and step S37 is executed; if not, further judging whether each second sub-hash value is equal to each corresponding first sub-hash value to determine an unequal sub-hash value, and executing step S38.
For example, the second speech processing resource includes a plurality of speech recognition models, such as a main model, a session model, and an object model, and after determining that the second total hash value H2 is not equal to the first total hash value H1, the second sub-hash value H21 of the main model may be further determined to be equal to the first sub-hash value H11 of the corresponding main model due to the longer loading time of the main model, if not, the main model is tampered, and step S38 is performed; if the object model and the session model are equal, the main model is not tampered, and if the object model and the session model are not tampered, the main model can not be reloaded. Whether the second sub-hash value H22 of the session model, the second sub-hash value H23 of the object model, and the corresponding first sub-hash values H12, H13 are equal or not may be determined, respectively, to determine unequal sub-hash values, that is, to determine the tampered speech recognition model, and step S38 is performed.
Optionally, after determining that the second total hash value H2 is not equal to the first total hash value H1, if it is determined that the second sub-hash value of the main model is equal to the first sub-hash value of the corresponding main model, which indicates that the main model is not tampered, and that the other models of the speech recognition model have models tampered, step S38 is performed.
S37: the second storage unit is allowed to obtain the provided second speech processing resources for processing of the speech data.
Since the second speech processing resources received and stored by the second storage unit are not tampered with, the second storage unit may be allowed to obtain the provided second speech processing resources for processing of speech data.
S38: the second storage unit is allowed to read at least part of the spare resources of the second speech processing resources from the fourth storage unit for processing of speech data.
The fourth storage unit may be a memory block, a memory section, or the like of the storage device, or may be a disk of the storage device, where the fourth storage unit, for example, the disk, stores spare resources of all the speech processing resources. In addition, after updating the speech processing resources, the updated speech processing resources may be stored in the fourth storage unit to update the standby resources.
Since the second speech processing resources received and stored by the second storage unit are tampered, the tampered or destroyed second speech processing resources cannot be reused for speech data processing, and therefore, according to the determined destroyed second speech processing resources, the second storage unit can be allowed to read at least part of the spare resources of the second speech processing resources from the fourth storage unit for processing speech data.
If the second speech processing resource includes multiple speech processing resources or speech recognition models, the second storage unit may be allowed to obtain the spare resources of the speech processing resources corresponding to the sub-hash values from the fourth storage unit according to the sub-hash values that are verified to be unequal.
For example, the second speech processing resource includes a plurality of speech recognition models, such as a main model, a session model, an object model, and the like, and if the total hash value is not equal, if it is determined that the sub hash values of the main model are not equal, the main model is tampered, the second storage unit is allowed to acquire a standby main model of the main model from the fourth storage unit; if the sub hash values of the object model and/or the session model which are tampered are further judged to be unequal, the second storage unit is allowed to acquire the standby object model and/or session model from the fourth storage unit; if the sub hash values of the main model are equal, the object model and/or the session model are loaded faster, then the judgment of whether the sub hash values of the object model and/or the session model tampered with in the subsequent step are equal or not can be omitted, and the second storage unit is allowed to acquire the standby object model and session model except the main model from the fourth storage unit.
S39: after the speech processing resource is updated, the first storage unit is configured to be in an updating working state, and the second storage unit is configured to be in a business working state.
After the speech processing resources are updated, if the first storage unit is switched to the transitional working state, after the received and unprocessed speech data is processed by using the first speech processing resources and the second speech processing resources in the first storage unit, the second speech processing resources in the first storage unit can be reserved or deleted, and the first storage unit is configured to be in the updated working state so as to respond to a new resource update request by using the first storage unit.
The second storage unit is configured to be in a service working state so as to process the voice data by utilizing the updated voice processing resources stored in the second storage unit and the standby resources of at least part of the second voice processing resources read from the fourth storage unit.
The first storage unit after switching the working state can execute the work of the second storage unit before switching the working state, and the second storage unit after switching the working state can execute the work of the first storage unit before switching the working state. For the implementation of this embodiment, reference may be made to the implementation process of the foregoing embodiment, which is not described herein.
In this embodiment, when updating the speech processing resources and sending the second speech processing resources in the first storage unit to the second storage unit, tamper-proof verification is performed to determine that the second speech processing resources stored in the second storage unit and not updated are accurate and not tampered, so that the second storage unit is used to process the speech data in the new service processing request, and accuracy of speech processing can be improved; if the second voice processing resource is verified to be tampered, the standby resource can be obtained to process the voice data, so that the voice data processing process is uninterrupted, and meanwhile, the safety of processing the voice data by using the first storage unit and the second storage unit can be ensured; the anti-tampering verification is carried out, so that the voice data processing process is prevented from being crashed, the voice data processing speed is improved, the first storage unit and the second storage unit complete the switching of the working state through the thermal switching, and the switching speed can be improved; in addition, in the data processing process, only the first storage unit and the second storage unit are needed, and the reading and writing separation is not needed, so that the voice data processing efficiency can be improved.
Referring to fig. 4, fig. 4 is a flowchart illustrating a fourth embodiment of a method for updating speech processing resources according to the present application. The method comprises the following steps:
S40: the first storage unit is configured to be in a service working state, and the second storage unit is configured to be in an update working state.
When the storage unit includes a first storage unit, a second storage unit, a third storage unit, and a fourth storage unit, the speech processing resources include a first speech processing resource and a second speech processing resource, the first speech processing resource may be a speech processing resource that is frequently updated or that is updated, and the second speech processing resource may be a speech processing resource that is not frequently updated or that is not updated. The first storage unit may mount a third storage unit, and a combination of the speech processing resources stored in the first storage unit and the third storage unit is used to implement processing of speech data. The speech processing resource condition stored in the storage unit may include at least one of the following.
Optionally, the first storage unit in the service working state stores a first voice processing resource and a second voice processing resource, and a combination of the first voice processing resource and the second voice processing resource is used for realizing processing of voice data. At this time, the third storage unit and the second storage unit in the update operation state may not store the voice processing resource.
Optionally, the first storage unit in the service working state stores the second voice processing resource, the first storage unit mounts the third storage unit, and the third storage unit stores the first voice processing resource; in addition, the first storage unit may store a first speech processing resource, and the third storage unit stores a second speech processing resource; the combination of the first speech processing resource and the second speech processing resource is used to enable processing of speech data. At this time, the second storage unit in the updated operation state may not store the voice processing resource.
Optionally, the first storage unit mounts a third storage unit, and the third storage unit may store a first speech processing resource and a second speech processing resource, where a combination of the first speech processing resource and the second speech processing resource is used to implement processing of speech data. At this time, the second storage unit in the updated operation state may not store the voice processing resource.
If the speech processing resources include a first speech processing resource, a second speech processing resource and a third speech processing resource, the update frequency of the speech processing resources can be counted, the speech processing resources with more total update frequency or more update frequency in the latest preset time period are used as the first speech processing resource, the speech processing resources with relatively moderate update frequency or less update frequency are used as the second speech processing resource, and the speech processing resources with less update frequency or less update frequency are used as the third speech processing resource. The first storage unit may be mounted with a third storage unit, and the combination of the speech processing resources stored in the first storage unit and the third storage unit is used to implement processing of speech data, where the speech processing resources stored in the storage unit are not limited in this application.
Optionally, the first storage unit stores a first voice processing resource and a second voice processing resource, the first storage unit mounts a third storage unit, the third storage unit stores a third voice processing resource, and a combination of the first voice processing resource, the second voice processing resource and the third voice processing resource is used for realizing processing of voice data.
When the service processing request is received, the third storage unit is mounted on the first storage unit, so that the third voice processing resources stored in the third storage unit can be accessed through the first storage unit, and the voice data in the service processing request can be processed by utilizing the first voice processing resources and the second voice processing resources in the first storage unit and the third voice processing resources in the third storage unit.
Optionally, the first storage unit stores a first voice processing resource, the first storage unit mounts a third storage unit, the third storage unit stores a second voice processing resource and a third voice processing resource, and a combination of the first voice processing resource, the second voice processing resource and the third voice processing resource is used for realizing processing of voice data.
Optionally, the first storage unit may not store a voice processing resource, the first storage unit mounts a third storage unit, and the third storage unit stores a first voice processing resource, a second voice processing resource, and a third voice processing resource, where a combination of the first voice processing resource, the second voice processing resource, and the third voice processing resource is used to implement processing of voice data.
In this embodiment, the first storage unit stores the first speech processing resource and the second speech processing resource, and the third storage unit stores the third speech processing resource.
S41: and receiving a resource updating request, and updating the voice processing resource by using the second storage unit in an updating working state.
When receiving the resource update request, the second storage unit responds to the resource update request, and switches the second storage unit from the update working state to the transition working state, so that the second storage unit in the update working state can be utilized to update the voice processing resource. In addition, the second storage unit may also be used to send an operation state transition request to the first storage unit.
Optionally, the resource update request is used to request to update the first speech processing resource, and the second storage unit in the update working state may be used to obtain the updated first speech processing resource, so as to update the speech processing resource.
Alternatively, the resource update request may be used to request updating of the second speech processing resource, and the updated second speech processing resource may be obtained using the second storage unit in the updated operating state.
Alternatively, the resource update request may be used to request updating of the third speech processing resource, and the updated third speech processing resource may be obtained by using the second storage unit in the updated operating state.
The present embodiment is described taking as an example that a resource update request is used to request updating of a first speech processing resource.
S42: and carrying out preset processing on the second voice processing resource in the first storage unit and the third voice processing resource in the third storage unit to obtain a third verification identifier.
Optionally, the voice processing resources which are not updated in the first storage unit and the third storage unit are subjected to preset processing to obtain a third verification identifier. Because the resource update request is used for requesting to update the first voice processing resource, the second voice processing resource and the third voice processing resource are not updated, and the second voice processing resource in the first storage unit and the third voice processing resource in the third storage unit can be subjected to preset processing to obtain a third verification identifier.
Optionally, after the first storage unit receives the working state conversion request, the first storage unit is switched from the service working state to the transitional working state, the first storage unit may be used to obtain an object lock of the third storage unit, package and mount the second speech processing resource in the first storage unit into the third storage unit for storage, and simultaneously seal and store the third speech processing resource stored in the third storage unit. And carrying out hash operation on the second voice processing resource and the third voice processing resource in the third storage unit, taking the obtained hash value as a third verification identifier, and storing the third verification identifier in the third storage unit. The acquired object lock of the third storage unit may then be released. And acquiring an object lock of the third storage unit, and operating the third storage unit.
S43: the second speech processing resources in the first memory unit are provided to the second memory unit.
Optionally, the second speech processing resource in the first storage unit is sent to the third storage unit for storage, so that the second storage unit can obtain the second speech processing resource by accessing the third storage unit. Specifically, the second speech processing resources in the first storage unit may be sent to the third storage unit for storage due to the lack of the second speech processing resources and the third speech processing resources for speech processing in the second storage unit due to the update of the first speech processing resources. The third storage unit is offloaded from the first storage unit so that the second storage unit can mount the third storage unit to enable the second storage unit to obtain the second speech processing resources by accessing the third storage unit and the third speech processing resources in the third storage unit for speech data processing.
Optionally, when the second speech processing resource in the first storage unit is sent to the third storage unit for storage, the second speech processing resource is reserved in the first storage unit, and the third speech processing resource in the third storage unit is sent to the first storage unit for storage, so that the first speech processing resource, the second speech processing resource and the third speech processing resource are stored in the first storage unit, and the speech data can be processed by using the speech processing resource of the first storage unit.
S44: and carrying out preset processing on the provided second voice processing resources and the third voice processing resources in the third storage unit to obtain a fourth verification identifier.
The second storage unit may be used to obtain an object lock of the third storage unit, and the second speech processing resource in the third storage unit and the third speech processing resource in the third storage unit may be subjected to preset processing, for example, hash operation may be performed, and the obtained hash value may be used as the fourth verification identifier.
S45: and judging whether the fourth verification identifier is consistent with the third verification identifier.
If the fourth verification identifier is identical to the third verification identifier, executing step S46; if it is determined that the fourth authentication identifier is inconsistent with the third authentication identifier, step S47 is executed.
S46: the second storage unit is allowed to access the provided second speech processing resources and the third speech processing resources in the third storage unit for processing of speech data.
Since it is verified that the second and third speech processing resources have not been tampered with, the second storage unit may be allowed to access the third storage unit to read the second and third speech processing resources for processing of speech data.
S47: the second storage unit is allowed to read at least part of the spare resources of the second speech processing resources and/or the spare resources of the third speech processing resources from the fourth storage unit for processing of speech data.
If it is verified that the second speech processing resource is tampered with, or that a part of the speech processing resource is tampered with, the second storage unit may be allowed to read all or a part of the spare resources of the second speech processing resource from the fourth storage unit. If the third speech processing resource is verified as tampered with, or if a portion of the speech processing resources that are verified as third speech processing resources are tampered with, the second storage unit may be allowed to read all or a portion of the spare resources of the third speech processing resources from the fourth storage unit. If it is verified that both the second speech processing resource and the third speech processing resource are tampered with, the second storage unit may be allowed to read the standby resources of the second speech processing resource and the third speech processing resource from the fourth storage unit. That is, verifying the tampered speech processing resource may allow the second storage unit to read the spare resource of the tampered speech processing resource from the fourth storage unit for processing of speech data.
Optionally, after the step S47, if the first storage unit is switched to the transitional working state, the third speech processing resources in the third storage unit may be stored in the first storage unit, so as to process the received and unprocessed speech data by using the first speech processing resources, the second speech processing resources and the third speech processing resources in the first storage unit, or the first storage unit is allowed to access the third speech processing resources in the third storage unit, so as to process the received and unprocessed speech data by using the first speech processing resources, the second speech processing resources and the third speech processing resources in the third storage unit. After processing the received and unprocessed speech data, the first speech processing resources, the second speech processing resources and the third speech processing resources in the first memory unit are deleted.
Optionally, after the processing of the received and unprocessed speech data is completed in step S47, the second speech processing resource and the third speech processing resource in the first storage unit are reserved, or the second speech processing resource in the first storage unit is reserved, so that the amount of movement of the speech processing resource can be reduced when the speech processing resource is updated again later.
S48: after the speech processing resource is updated, the first storage unit is configured to be in an updating working state, and the second storage unit is configured to be in a business working state.
After the voice processing resource is updated, the second storage unit can be switched from the transitional working state to the service working state; after processing the received and unprocessed speech data with the first memory unit, the first memory unit may be switched from the transitional operating state to the updated operating state. The first storage unit after switching the working state can execute the work of the second storage unit before switching the working state, and the second storage unit after switching the working state can execute the work of the first storage unit before switching the working state.
S49: and receiving a new service processing request, and processing the voice data in the new service processing request by utilizing the first voice processing resource and the second voice processing resource in the second storage unit and the third voice processing resource in the third storage unit.
If a new service processing request is received, the first voice processing resource and the second voice processing resource in the second storage unit and the third voice processing resource in the third storage unit can be utilized to process the voice data in the new service processing request.
Optionally, because the second storage unit stores the updated first speech processing resource, the third storage unit stores the second speech processing resource and the third speech processing resource, the second storage unit mounts the third storage unit, and the first speech processing resource in the second storage unit and the second storage unit accesses the second speech processing resource and the third speech processing resource in the third storage unit to process the speech data in the new service processing request.
After the above step S48, if a new resource update request is received, the speech processing resource is updated by using the first storage unit in the update operation state. Specifically, the first storage unit can be utilized to respond to the resource update request, the first storage unit is switched from the update working state to the transition working state, and the first storage unit is utilized to update the voice processing resource.
In this embodiment, the third storage unit is used to store the third speech processing resource, and the first storage unit and the second storage unit may share the third speech processing in the third storage unit, so that movement of the third speech processing resource may be reduced; meanwhile, the storage capacity of the first storage unit and the second storage unit for storing the voice processing resources is reduced, and the storage space of the first storage unit and the second storage unit is saved; in addition, three storage units are used for processing and updating voice data, so that read-write separation can be realized.
For the foregoing embodiments, the present application provides a computer device, and referring to fig. 5, fig. 5 is a schematic structural diagram of an embodiment of the computer device. The computer device 100 comprises a memory 101 and a processor 102, wherein the memory 101 and the processor 102 are coupled to each other, and program data are stored in the memory 101, and the processor 102 is configured to execute the program data to implement the steps of any embodiment of the method for updating speech processing resources.
In this embodiment, the processor 102 may also be referred to as a CPU (Central Processing Unit ). The processor 102 may be an integrated circuit chip having signal processing capabilities. Processor 102 may also be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. A general purpose processor may be a microprocessor or the processor 102 may be any conventional processor or the like.
For the implementation of this embodiment, reference may be made to the implementation process of the foregoing embodiment, which is not described herein.
For the method of the above embodiment, which may be implemented in the form of a computer program, the present application proposes a storage device, and referring to fig. 6, fig. 6 is a schematic structural diagram of an embodiment of a storage device of the present application. The storage device 200 stores therein program data 201 that can be executed by a processor, and the program data can be executed by the processor to implement the steps of any embodiment of the method for updating a speech processing resource.
For the implementation of this embodiment, reference may be made to the implementation process of the foregoing embodiment, which is not described herein.
The storage device 200 of this embodiment may be a medium that may store program data, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or may be a server that stores the program data, and the server may send the stored program data to another device for running, or may also self-run the stored program data.
In the several embodiments provided in the present application, it should be understood that the disclosed methods and apparatus 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 forms.
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 embodiment.
In addition, each functional unit in each embodiment 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 unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a storage device, which is a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in part or all or part of the technical solution contributing to the prior art or in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform all or part of the steps of the methods of the embodiments of the present application.
It will be apparent to those skilled in the art that the modules or steps of the application described above may be implemented in a general purpose computing device, they may be centralized on a single computing device, or distributed across a network of computing devices, or they may alternatively be implemented in program code executable by computing devices, such that they may be stored in a memory device and executed by computing devices, or individually fabricated as individual integrated circuit modules, or multiple modules or steps within them may be fabricated as a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
The foregoing description is only of embodiments of the present application, and is not intended to limit the scope of the patent application, and all equivalent structures or equivalent processes using the descriptions and the contents of the present application or other related technical fields are included in the scope of the patent application.
Claims (26)
1. A method for updating speech processing resources, the method comprising:
the method comprises the steps that a first storage unit is configured to be in a service working state, a second storage unit is configured to be in an updating working state, wherein the storage unit in the service working state is used for processing voice data by utilizing voice processing resources, and the storage unit in the updating working state is used for responding to a resource updating request to execute updating of the voice processing resources;
Receiving a resource update request, and updating the voice processing resource by using a second storage unit in the update working state;
after the voice processing resource is updated, configuring the first storage unit into the updating working state, and configuring the second storage unit into the service working state;
wherein the updating the speech processing resource by using the second storage unit in the updating working state includes: switching the second storage unit from the update working state to a transition working state so as not to respond to the newly received resource update request by using the second storage unit; updating the voice processing resource by using a second storage unit in the transitional working state;
the configuring the second storage unit to the service working state includes: and switching the second storage unit from the transition working state to the service working state.
2. The method of claim 1, wherein configuring the first storage unit to the updated operational state comprises:
switching the first storage unit from the service working state to the updating working state so as to not process the received and unprocessed voice data by using the first storage unit; or,
Switching the first storage unit from the service operating state to a transitional operating state to continue processing the received and unprocessed voice data with the first storage unit but not processing the newly received voice data; after processing the received and unprocessed speech data with the first storage unit, switching the first storage unit from the transitional operating state to the updated operating state.
3. The method of claim 2, wherein after said switching said first storage unit from said service operational state to said update operational state, said method further comprises:
and after the second storage unit is configured to be in the service working state, processing the received and unprocessed voice data by utilizing voice processing resources in the second storage unit.
4. The method of claim 1, wherein the first storage unit stores a first speech processing resource and a second speech processing resource, wherein the resource update request is for requesting an update of the first speech processing resource, and wherein a combination of the first speech processing resource and the second speech processing resource is for enabling processing of the speech data;
The updating of the speech processing resource by using the second storage unit in the updating working state further comprises:
obtaining the updated first speech processing resources using a second storage unit in the updated operating state;
after the updating of the speech processing resource is completed and before the configuring the second storage unit into the service working state, the method further includes:
providing the second speech processing resources in the first storage unit to the second storage unit;
and reserving or deleting the second voice processing resource in the first storage unit.
5. The method of claim 4, wherein said providing said second speech processing resource in said first storage unit to said second storage unit comprises:
transmitting the second speech processing resource in the first storage unit to the second storage unit; or,
and sending the second voice processing resources in the first storage unit to a third storage unit for storage, so that the second storage unit can obtain the second voice processing resources by accessing the third storage unit.
6. The method of claim 5, wherein prior to said providing said second speech processing resource in said first storage unit to said second storage unit, said method further comprises:
performing preset processing on the second voice processing resource in the first storage unit to obtain a first verification identifier;
after said providing said second speech processing resource in said first storage unit to said second storage unit, said method further comprises:
carrying out the preset processing on the provided second voice processing resource to obtain a second verification identifier;
if the second verification identifier is consistent with the first verification identifier, allowing the second storage unit to obtain the provided second voice processing resource for processing the voice data;
and if the second verification identifier is inconsistent with the first verification identifier, allowing the second storage unit to read at least part of standby resources of the second voice processing resources from the fourth storage unit for processing the voice data.
7. The method of claim 5, wherein the third storage unit further comprises a third speech processing resource, a combination of the first speech processing resource, the second speech processing resource, and the third speech processing resource for effecting processing of the speech data; after configuring the second storage unit to the service operational state, the method further includes:
And receiving a new service processing request, and processing voice data in the new service processing request by utilizing the first voice processing resource and the second voice processing resource in the second storage unit and the third voice processing resource in the third storage unit.
8. The method of claim 7, wherein prior to said providing the non-updated resources of the first storage unit to the second storage unit, the method further comprises:
the method further comprises the steps of carrying out preset processing on the non-updated resources to obtain a first verification identifier, wherein before the second voice processing resources in the first storage unit are provided for the second storage unit, the method further comprises the steps of:
the second voice processing resource in the first storage unit and the third voice processing resource in the third storage unit are subjected to preset processing to obtain a third verification identifier;
after said providing said second speech processing resource in said first storage unit to said second storage unit, said method further comprises:
the second voice processing resource and the third voice processing resource in the third storage unit are subjected to preset processing to obtain a fourth verification identifier;
If the fourth verification identifier is consistent with the third verification identifier, allowing the second storage unit to access the provided second voice processing resource and the third voice processing resource in the third storage unit for processing the voice data;
and if the fourth verification identifier is inconsistent with the third verification identifier, allowing the second storage unit to read at least part of standby resources of the second voice processing resources and/or standby resources of the third voice processing resources from the fourth storage unit for processing the voice data.
9. The method of claim 7, wherein said deleting said second speech processing resource in said first storage unit comprises:
if the first storage unit is switched to a transitional working state, storing third voice processing resources in the third storage unit into the first storage unit to process received and unprocessed voice data by using the first voice processing resources, the second voice processing resources and the third voice processing resources in the first storage unit, or allowing the first storage unit to access the third voice processing resources in the third storage unit to process received and unprocessed voice data by using the first voice processing resources, the second voice processing resources and the third voice processing resources in the first storage unit;
After processing the received and unprocessed speech data, deleting the first speech processing resource, the second speech processing resource and the third speech processing resource in the first memory unit.
10. A method for updating speech processing resources, the method comprising:
the method comprises the steps that a first storage unit is configured to be in a service working state, a second storage unit is configured to be in an updating working state, wherein the storage unit in the service working state is used for processing voice data by utilizing voice processing resources, and the storage unit in the updating working state is used for responding to a resource updating request to execute updating of the voice processing resources;
receiving a resource update request, and updating the voice processing resource by using a second storage unit in the update working state;
after the voice processing resource is updated, configuring the first storage unit into the updating working state, and configuring the second storage unit into the service working state;
the configuring the first storage unit to the update working state includes: switching the first storage unit from the service working state to the updating working state so as to not process the received and unprocessed voice data by using the first storage unit; or switching the first storage unit from the service working state to a transitional working state so as to continuously process the received and unprocessed voice data by using the first storage unit but not process the newly received voice data; after processing the received and unprocessed speech data with the first storage unit, switching the first storage unit from the transitional operating state to the updated operating state.
11. The method of claim 10, wherein after said switching said first storage unit from said service operational state to said update operational state, said method further comprises:
and after the second storage unit is configured to be in the service working state, processing the received and unprocessed voice data by utilizing voice processing resources in the second storage unit.
12. The method of claim 10, wherein the first storage unit stores a first speech processing resource and a second speech processing resource, wherein the resource update request is for requesting an update of the first speech processing resource, and wherein a combination of the first speech processing resource and the second speech processing resource is for enabling processing of the speech data;
the updating of the speech processing resource by using the second storage unit in the updating working state comprises the following steps:
obtaining the updated first speech processing resources using a second storage unit in the updated operating state;
after the updating of the speech processing resource is completed and before the configuring the second storage unit into the service working state, the method further includes:
Providing the second speech processing resources in the first storage unit to the second storage unit;
and reserving or deleting the second voice processing resource in the first storage unit.
13. The method of claim 12, wherein said providing said second speech processing resource in said first storage unit to said second storage unit comprises:
transmitting the second speech processing resource in the first storage unit to the second storage unit; or,
and sending the second voice processing resources in the first storage unit to a third storage unit for storage, so that the second storage unit can obtain the second voice processing resources by accessing the third storage unit.
14. The method of claim 13, wherein prior to said providing said second speech processing resource in said first storage unit to said second storage unit, said method further comprises:
performing preset processing on the second voice processing resource in the first storage unit to obtain a first verification identifier;
after said providing said second speech processing resource in said first storage unit to said second storage unit, said method further comprises:
Carrying out the preset processing on the provided second voice processing resource to obtain a second verification identifier;
if the second verification identifier is consistent with the first verification identifier, allowing the second storage unit to obtain the provided second voice processing resource for processing the voice data;
and if the second verification identifier is inconsistent with the first verification identifier, allowing the second storage unit to read at least part of standby resources of the second voice processing resources from the fourth storage unit for processing the voice data.
15. The method of claim 13, wherein the third storage unit further comprises a third speech processing resource, a combination of the first speech processing resource, the second speech processing resource, and the third speech processing resource for effecting processing of the speech data; after configuring the second storage unit to the service operational state, the method further includes:
and receiving a new service processing request, and processing voice data in the new service processing request by utilizing the first voice processing resource and the second voice processing resource in the second storage unit and the third voice processing resource in the third storage unit.
16. The method of claim 15, wherein prior to said providing the non-updated resources of the first storage unit to the second storage unit, the method further comprises:
the method further comprises the steps of carrying out preset processing on the non-updated resources to obtain a first verification identifier, wherein before the second voice processing resources in the first storage unit are provided for the second storage unit, the method further comprises the steps of:
the second voice processing resource in the first storage unit and the third voice processing resource in the third storage unit are subjected to preset processing to obtain a third verification identifier;
after said providing said second speech processing resource in said first storage unit to said second storage unit, said method further comprises:
the second voice processing resource and the third voice processing resource in the third storage unit are subjected to preset processing to obtain a fourth verification identifier;
if the fourth verification identifier is consistent with the third verification identifier, allowing the second storage unit to access the provided second voice processing resource and the third voice processing resource in the third storage unit for processing the voice data;
And if the fourth verification identifier is inconsistent with the third verification identifier, allowing the second storage unit to read at least part of standby resources of the second voice processing resources and/or standby resources of the third voice processing resources from the fourth storage unit for processing the voice data.
17. The method of claim 15, wherein said deleting said second speech processing resource in said first storage unit comprises:
if the first storage unit is switched to a transitional working state, storing third voice processing resources in the third storage unit into the first storage unit to process received and unprocessed voice data by using the first voice processing resources, the second voice processing resources and the third voice processing resources in the first storage unit, or allowing the first storage unit to access the third voice processing resources in the third storage unit to process received and unprocessed voice data by using the first voice processing resources, the second voice processing resources and the third voice processing resources in the first storage unit;
After processing the received and unprocessed speech data, deleting the first speech processing resource, the second speech processing resource and the third speech processing resource in the first memory unit.
18. A method for updating speech processing resources, the method comprising:
the method comprises the steps that a first storage unit is configured to be in a service working state, a second storage unit is configured to be in an updating working state, wherein the storage unit in the service working state is used for processing voice data by utilizing voice processing resources, and the storage unit in the updating working state is used for responding to a resource updating request to execute updating of the voice processing resources;
receiving a resource update request, and updating the voice processing resource by using a second storage unit in the update working state;
after the voice processing resource is updated, configuring the first storage unit into the updating working state, and configuring the second storage unit into the service working state;
the first storage unit stores a first voice processing resource and a second voice processing resource, wherein the resource update request is used for requesting to update the first voice processing resource, and the combination of the first voice processing resource and the second voice processing resource is used for realizing the processing of the voice data; the updating of the speech processing resource by using the second storage unit in the updating working state comprises the following steps: obtaining the updated first speech processing resources using a second storage unit in the updated operating state;
After the updating of the speech processing resource is completed and before the configuring the second storage unit into the service working state, the method further includes: providing the second speech processing resources in the first storage unit to the second storage unit; and reserving or deleting the second voice processing resource in the first storage unit.
19. The method of claim 18, wherein configuring the first storage unit to the updated operational state comprises:
switching the first storage unit from the service working state to the updating working state so as to not process the received and unprocessed voice data by using the first storage unit; after the second storage unit is configured to be in the service working state, processing the received and unprocessed voice data by utilizing voice processing resources in the second storage unit; or,
switching the first storage unit from the service operating state to a transitional operating state to continue processing the received and unprocessed voice data with the first storage unit but not processing the newly received voice data; after processing the received and unprocessed speech data with the first storage unit, switching the first storage unit from the transitional operating state to the updated operating state.
20. The method of claim 18, wherein said providing said second speech processing resource in said first storage unit to said second storage unit comprises:
transmitting the second speech processing resource in the first storage unit to the second storage unit; or,
and sending the second voice processing resources in the first storage unit to a third storage unit for storage, so that the second storage unit can obtain the second voice processing resources by accessing the third storage unit.
21. The method of claim 20, wherein prior to said providing said second speech processing resource in said first storage unit to said second storage unit, said method further comprises:
performing preset processing on the second voice processing resource in the first storage unit to obtain a first verification identifier;
after said providing said second speech processing resource in said first storage unit to said second storage unit, said method further comprises:
carrying out the preset processing on the provided second voice processing resource to obtain a second verification identifier;
If the second verification identifier is consistent with the first verification identifier, allowing the second storage unit to obtain the provided second voice processing resource for processing the voice data;
and if the second verification identifier is inconsistent with the first verification identifier, allowing the second storage unit to read at least part of standby resources of the second voice processing resources from the fourth storage unit for processing the voice data.
22. The method of claim 20, wherein the third storage unit further comprises a third speech processing resource, a combination of the first speech processing resource, the second speech processing resource, and the third speech processing resource for effecting processing of the speech data; after configuring the second storage unit to the service operational state, the method further includes:
and receiving a new service processing request, and processing voice data in the new service processing request by utilizing the first voice processing resource and the second voice processing resource in the second storage unit and the third voice processing resource in the third storage unit.
23. The method of claim 22, wherein prior to said providing the non-updated resources of the first storage unit to the second storage unit, the method further comprises:
The method further comprises the steps of carrying out preset processing on the non-updated resources to obtain a first verification identifier, wherein before the second voice processing resources in the first storage unit are provided for the second storage unit, the method further comprises the steps of:
the second voice processing resource in the first storage unit and the third voice processing resource in the third storage unit are subjected to preset processing to obtain a third verification identifier;
after said providing said second speech processing resource in said first storage unit to said second storage unit, said method further comprises:
the second voice processing resource and the third voice processing resource in the third storage unit are subjected to preset processing to obtain a fourth verification identifier;
if the fourth verification identifier is consistent with the third verification identifier, allowing the second storage unit to access the provided second voice processing resource and the third voice processing resource in the third storage unit for processing the voice data;
and if the fourth verification identifier is inconsistent with the third verification identifier, allowing the second storage unit to read at least part of standby resources of the second voice processing resources and/or standby resources of the third voice processing resources from the fourth storage unit for processing the voice data.
24. The method of claim 22, wherein said deleting said second speech processing resource in said first storage unit comprises:
if the first storage unit is switched to a transitional working state, storing third voice processing resources in the third storage unit into the first storage unit to process received and unprocessed voice data by using the first voice processing resources, the second voice processing resources and the third voice processing resources in the first storage unit, or allowing the first storage unit to access the third voice processing resources in the third storage unit to process received and unprocessed voice data by using the first voice processing resources, the second voice processing resources and the third voice processing resources in the first storage unit;
after processing the received and unprocessed speech data, deleting the first speech processing resource, the second speech processing resource and the third speech processing resource in the first memory unit.
25. A computer device comprising a memory and a processor coupled to each other, the memory having stored therein program data, the processor being adapted to execute the program data to implement the steps of the method of any of claims 1 to 24.
26. A storage device storing program data executable by a processor for implementing the steps of the method of any one of claims 1 to 24.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011539620.4A CN112667270B (en) | 2020-12-23 | 2020-12-23 | Updating method of voice processing resource, computer equipment and storage device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011539620.4A CN112667270B (en) | 2020-12-23 | 2020-12-23 | Updating method of voice processing resource, computer equipment and storage device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112667270A CN112667270A (en) | 2021-04-16 |
CN112667270B true CN112667270B (en) | 2024-02-13 |
Family
ID=75408711
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011539620.4A Active CN112667270B (en) | 2020-12-23 | 2020-12-23 | Updating method of voice processing resource, computer equipment and storage device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112667270B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113793612B (en) * | 2021-09-15 | 2024-04-09 | 京东科技信息技术有限公司 | Updating method and device of model service and storage medium |
CN115390467A (en) * | 2022-07-29 | 2022-11-25 | 青岛海尔科技有限公司 | Voice interaction method and device, storage medium and electronic device |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20020056308A (en) * | 2000-12-29 | 2002-07-10 | 엘지전자 주식회사 | Voice resource changing method for voice mailing system |
CN101043555A (en) * | 2007-03-09 | 2007-09-26 | 华为技术有限公司 | Prompting tone updating method, system and voice playing equipment thereof |
CN102314369A (en) * | 2011-10-09 | 2012-01-11 | 杭州先锋电子技术股份有限公司 | Self-upgrade method for equipment in remote online monitoring system |
CN102436559A (en) * | 2010-09-29 | 2012-05-02 | 联想(北京)有限公司 | State switching method and system |
EP3109762A1 (en) * | 2015-06-26 | 2016-12-28 | Samsung Electronics Co., Ltd. | Electronic device having external memory and method for operating the same |
CN109658940A (en) * | 2018-12-27 | 2019-04-19 | 苏州思必驰信息科技有限公司 | Update the method and system of speech recognition resources |
CN109729138A (en) * | 2018-06-01 | 2019-05-07 | 平安普惠企业管理有限公司 | Client resource update method, equipment, client and storage medium |
CN109731334A (en) * | 2018-11-22 | 2019-05-10 | 腾讯科技(深圳)有限公司 | Switching method and apparatus, storage medium, the electronic device of state |
CN110473531A (en) * | 2019-09-05 | 2019-11-19 | 腾讯科技(深圳)有限公司 | Audio recognition method, device, electronic equipment, system and storage medium |
CN111226193A (en) * | 2017-11-20 | 2020-06-02 | 三星电子株式会社 | Electronic equipment and method for changing chat robot |
CN111835555A (en) * | 2020-06-03 | 2020-10-27 | 视联动力信息技术股份有限公司 | Data recovery method and device and readable storage medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6574558B2 (en) * | 2014-10-14 | 2019-09-11 | キヤノン株式会社 | Information processing apparatus, information processing apparatus control method, and program |
-
2020
- 2020-12-23 CN CN202011539620.4A patent/CN112667270B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20020056308A (en) * | 2000-12-29 | 2002-07-10 | 엘지전자 주식회사 | Voice resource changing method for voice mailing system |
CN101043555A (en) * | 2007-03-09 | 2007-09-26 | 华为技术有限公司 | Prompting tone updating method, system and voice playing equipment thereof |
CN102436559A (en) * | 2010-09-29 | 2012-05-02 | 联想(北京)有限公司 | State switching method and system |
CN102314369A (en) * | 2011-10-09 | 2012-01-11 | 杭州先锋电子技术股份有限公司 | Self-upgrade method for equipment in remote online monitoring system |
EP3109762A1 (en) * | 2015-06-26 | 2016-12-28 | Samsung Electronics Co., Ltd. | Electronic device having external memory and method for operating the same |
CN111226193A (en) * | 2017-11-20 | 2020-06-02 | 三星电子株式会社 | Electronic equipment and method for changing chat robot |
CN109729138A (en) * | 2018-06-01 | 2019-05-07 | 平安普惠企业管理有限公司 | Client resource update method, equipment, client and storage medium |
CN109731334A (en) * | 2018-11-22 | 2019-05-10 | 腾讯科技(深圳)有限公司 | Switching method and apparatus, storage medium, the electronic device of state |
CN109658940A (en) * | 2018-12-27 | 2019-04-19 | 苏州思必驰信息科技有限公司 | Update the method and system of speech recognition resources |
CN110473531A (en) * | 2019-09-05 | 2019-11-19 | 腾讯科技(深圳)有限公司 | Audio recognition method, device, electronic equipment, system and storage medium |
CN111835555A (en) * | 2020-06-03 | 2020-10-27 | 视联动力信息技术股份有限公司 | Data recovery method and device and readable storage medium |
Non-Patent Citations (2)
Title |
---|
基于DSP的实时语音检测的设计与实现;杨永超;付中华;蒋冬梅;;计算机应用(第02期);全文 * |
语音资源数字化工作初探;李世俊;杨继红;蔡清;;图书馆工作与研究(第04期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN112667270A (en) | 2021-04-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108153849B (en) | Database table segmentation method, device, system and medium | |
CN107967140B (en) | Software modification initiating method, metadata publishing method and device | |
CN112667270B (en) | Updating method of voice processing resource, computer equipment and storage device | |
CN109886693B (en) | Consensus realization method, device, equipment and medium for block chain system | |
CN111274252A (en) | Block chain data chaining method, device, storage medium and server | |
CN108345462B (en) | Method and device for upgrading components | |
CN111399753B (en) | Method and device for writing pictures | |
CN112363980B (en) | Data processing method and device of distributed system | |
CN114676205A (en) | Event information processing method and device | |
CN111930624B (en) | Test link message data processing method and device | |
CN112631994A (en) | Data migration method and system | |
CN112286622A (en) | Virtual machine migration processing and strategy generating method, device, equipment and storage medium | |
US20090183172A1 (en) | Middleware Bridge System And Method | |
CN115269530A (en) | Data synchronization method, electronic device and computer-readable storage medium | |
CN114221883A (en) | Message testing method, device, server and storage medium | |
CN111930626A (en) | Automatic testing method and device based on PaaS cloud service | |
CN113590040B (en) | Data processing method, device, equipment and storage medium | |
CN113364875B (en) | Method, apparatus and computer readable storage medium for accessing data at block link points | |
CN117453257B (en) | Upgrading method based on hierarchical management, terminal equipment and readable storage medium | |
CN111324368A (en) | Data sharing method and server | |
CN114513424B (en) | Network service expansion and contraction capacity processing method, device and equipment and readable storage medium | |
CN117608705A (en) | Public method decoupling calling method and system based on route control | |
CN118802571A (en) | Information processing method, information processing device, related network element, storage medium and computer program product | |
CN112203264A (en) | Equipment pairing method applied to equipment group and equipment in equipment group | |
CN113986279A (en) | Intelligent equipment upgrading method and device, storage medium and electronic equipment |
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 | ||
GR01 | Patent grant |