Voiceprint determination method, device, system, equipment and storage medium

By adding a preset mark to the speech recognition signal and using the voiceprint model to perform voiceprint determination, the problem in the existing technology of sending additional voiceprint determination signals to increase the amount of data is solved, and more efficient speech recognition and voiceprint determination are achieved. process.

CN115394304BActive Publication Date: 2024-09-20BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210877631.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-30
Publication Date
2024-09-20
Estimated Expiration
2041-03-30

AI Technical Summary

Technical Problem

The existing technology requires additional voiceprint determination signals to be sent during the speech recognition and voiceprint determination processes, which increases the amount of data in the transmission link and may affect the speech recognition effect.

Method used

Add a preset mark to the speech recognition signal, use the voiceprint model to determine the voiceprint, avoid sending additional voiceprint determination signals, and add a preset mark to the speech recognition signal by determining the starting point and end point of the voiceprint determination in the speech recognition signal. Marked to indicate the voiceprint determination part.

Benefits of technology

It reduces the amount of data in the transmission link, improves the accuracy and efficiency of speech recognition, and avoids the interference of additionally transmitted voiceprint determination signals on speech recognition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115394304B
    Figure CN115394304B
Patent Text Reader

Abstract

The present disclosure discloses a voiceprint determination method, device, system, equipment and storage medium, which relates to the field of computer technology, and specifically to technical fields such as speech recognition and deep learning. The voiceprint determination method comprises: adding a preset identifier to a speech recognition signal to obtain a speech recognition signal containing a preset identifier, the speech recognition signal comprising a voiceprint determination part, the preset identifier is used to determine the voiceprint determination part in the speech recognition signal, and the voiceprint determination part comprises preset content; the speech recognition signal containing the preset identifier is sent to the server, so that the server performs voiceprint determination based on a voiceprint model and the speech recognition signal containing the preset identifier, and the voiceprint model is established based on the preset content. The present disclosure can reduce the amount of data in the transmission link.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, specifically to technical fields such as speech recognition and deep learning, and in particular to a voiceprint determination method, device, system, equipment and storage medium. Background Art

[0002] Speech recognition refers to converting speech into text. Unlike speech recognition, the purpose of voiceprint determination is to identify the speaker's identity.

[0003] In the related art, a special voice signal is generally used for voiceprint determination. Assuming that the voice signal used for voice recognition is called a voice recognition signal, and the voice signal used for voiceprint determination is called a voiceprint determination signal, the client needs to send the voice recognition signal and the voiceprint determination signal to the server. The server performs voiceprint determination based on the voiceprint determination signal and performs voice recognition based on the voice recognition signal. Summary of the invention

[0004] The present disclosure provides a voiceprint determination method, apparatus, system, device and storage medium.

[0005] According to one aspect of the present disclosure, there is provided a voiceprint determination method, comprising: adding a preset identifier to a speech recognition signal to obtain a speech recognition signal containing the preset identifier, the speech recognition signal comprising a voiceprint determination part, the preset identifier being used to determine the voiceprint determination part in the speech recognition signal, the voiceprint determination part comprising preset content; sending the speech recognition signal containing the preset identifier to a server, so that the server performs voiceprint determination based on a voiceprint model and the speech recognition signal containing the preset identifier, the voiceprint model being established based on the preset content.

[0006] According to another aspect of the present disclosure, there is provided a voiceprint determination method, comprising: receiving a speech recognition signal, the speech recognition signal comprising a preset identifier, and the speech recognition signal comprising a voiceprint determination part, the preset identifier being used to determine the voiceprint determination part in the speech recognition signal, the voiceprint determination part comprising preset content; based on the preset identifier, determining the voiceprint determination part in the speech recognition signal; and performing voiceprint determination on the voiceprint determination part using a voiceprint model, the voiceprint model being established based on the preset content.

[0007] According to another aspect of the present disclosure, a voiceprint determination device is provided, comprising: an adding module, used for adding a preset identifier in a speech recognition signal to obtain a speech recognition signal containing the preset identifier, the speech recognition signal including a voiceprint determination part, the preset identifier is used to determine the voiceprint determination part in the speech recognition signal, and the voiceprint determination part includes preset content; a sending module, used for sending the speech recognition signal containing the preset identifier to a server, so that the server performs voiceprint determination based on a voiceprint model and the speech recognition signal containing the preset identifier, the voiceprint model being established based on the preset content.

[0008] According to another aspect of the present disclosure, there is provided a voiceprint determination device, comprising: a receiving module, for receiving a speech recognition signal, the speech recognition signal comprising a preset identifier, and the speech recognition signal comprising a voiceprint determination part, the preset identifier being used to determine the voiceprint determination part in the speech recognition signal, the voiceprint determination part comprising preset content; a determining module, for determining the voiceprint determination part in the speech recognition signal based on the preset identifier; and a determining module, for performing voiceprint determination on the voiceprint determination part using a voiceprint model, the voiceprint model being established based on the preset content.

[0009] According to another aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute any method as described in any of the above aspects.

[0010] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute any one of the methods according to any one of the above aspects.

[0011] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, wherein when the computer program is executed by a processor, the computer program implements any one of the methods described in any one of the above aspects.

[0012] According to the technical solution of the present disclosure, the amount of data in the transmission link can be reduced.

[0013] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0015] Figure 1 is a schematic diagram according to a first embodiment of the present disclosure;

[0016] Figure 2 is a schematic diagram according to a second embodiment of the present disclosure;

[0017] Figure 3 is a schematic diagram according to a third embodiment of the present disclosure;

[0018] Figure 4 is a schematic diagram according to a fourth embodiment of the present disclosure;

[0019] Figure 5 is a schematic diagram according to a fifth embodiment of the present disclosure;

[0020] Figure 6 is a schematic diagram according to a sixth embodiment of the present disclosure;

[0021] Figure 7 is a schematic diagram according to a seventh embodiment of the present disclosure;

[0022] Figure 8 is a schematic diagram according to an eighth embodiment of the present disclosure;

[0023] Fig. 9 It is a schematic diagram of an electronic device used to implement any of the voiceprint determination methods in the embodiments of the present disclosure. DETAILED DESCRIPTION

[0024] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0025] Figure 1 is a schematic diagram according to the first embodiment of the present disclosure. This embodiment provides a voiceprint determination method, including:

[0026] 101. Add a preset identifier to a speech recognition signal to obtain a speech recognition signal including the preset identifier, wherein the speech recognition signal includes a voiceprint determination part, and the preset identifier is used to determine the voiceprint determination part in the speech recognition signal, and the voiceprint determination part includes preset content.

[0027] 102. Send the voice recognition signal including the preset identifier to the server, so that the server performs voiceprint determination based on a voiceprint model and the voice recognition signal including the preset identifier, wherein the voiceprint model is established based on the preset content.

[0028] The execution subject of this embodiment is the client, which is deployed on the user device. The specific form of the user device is not limited, for example, it can be a smart home terminal and various mobile devices, such as mobile phones, tablet computers, handheld computing devices, PDAs (personal digital assistants), portable media players, devices using headsets and earphones (for example, Bluetooth compatible devices), mobile phone tablet devices (i.e., combined smart phones / tablet devices), wearable computers, etc. Smart home terminals are, for example, smart speakers.

[0029] The form of the client is not limited, and can be provided by an APP (application), a web page, or a program, etc. The APP can be explicitly installed on the interface of the user device, or the APP can be called out by the user through a specific hardware and / or software button, which is not limited in the present disclosure.

[0030] A voice recognition signal refers to a voice signal that contains a wake-up word and content to be recognized. For example, the voice recognition signal is "Xiaodu Xiaodu, tomorrow's weather", where "Xiaodu Xiaodu" is the wake-up word and "tomorrow's weather" is the content to be recognized.

[0031] Voiceprint is a sound wave spectrum that carries language information. The voiceprint features of any two people are different, and each person's voiceprint features are relatively stable. There are two types of voiceprint determination: text-dependent and text-independent. Text-dependent voiceprint determination requires users to pronounce according to the preset content. Each person's voiceprint model is accurately established one by one, and the pronunciation must also be based on the preset content during voiceprint determination. Text-independent voiceprint determination does not require users to pronounce according to the preset content.

[0032] The disclosed embodiment takes text-related voiceprint determination as an example, and the related text, that is, the preset content is a wake-up word, such as "Xiaodu Xiaodu".

[0033] Unlike the related art that requires additional voiceprint determination signals to be sent, in the embodiments of the present disclosure, there is no need to send additional voiceprint determination signals, but voiceprint determination is performed based on the speech recognition signal. Specifically, the server can determine the voiceprint determination part in the speech recognition signal based on a preset identifier, such as the part including the wake-up word, and then perform voiceprint determination based on the voiceprint determination part.

[0034] The voiceprint determination part is a part of the speech recognition signal, and the two endpoints of this part can be called the voiceprint determination starting point and the voiceprint determination ending point.

[0035] In some embodiments, the preset identifier can be added based on the endpoint of the voiceprint determination part. For example, a preset identifier is added after the voiceprint determination end point in the voice recognition signal. Specifically, the client can send the voice recognition signal from the voiceprint determination start point, and add the preset identifier after the voiceprint determination end point. After receiving the voice recognition signal, the server uses the voice recognition signal before the preset identifier as the voiceprint determination part.

[0036] In the above, the example of adding a preset identifier based on the end point of the voiceprint determination is taken as an example. A preset identifier can also be added based on the starting point of the voiceprint determination. For example, a preset identifier is added before the starting point of the voiceprint determination. At this time, the client can send a voice recognition signal from a time point less than or equal to the starting point of the voiceprint determination. After the server receives the preset identifier before the starting point of the voiceprint determination, it can select the part of the pre-configured length after the preset identifier as the voiceprint determination part according to the pre-configured length. The pre-configured length can be the same as the subsequent second preset time length.

[0037] Another optional solution is that the client sends a voice recognition signal from the start point of voiceprint determination, and the server pre-configures the above length, i.e., the second preset duration. After receiving the voice recognition signal, the server selects the portion of the pre-configured length from the start point of the received voice recognition signal as the voiceprint determination portion. In this case, the preset identifier is not limited to the location of addition, i.e., it is not limited to adding based on the endpoint. The preset identifier in this case can be an indication of voiceprint determination, i.e., after receiving the voice recognition signal, the server determines that voiceprint determination is required based on the preset identifier, and then determines the voiceprint determination portion in the above manner.

[0038] By adding preset identifiers based on endpoints, the server can easily determine the voiceprint determination part in a timely manner.

[0039] Furthermore, the method of adding a preset identifier to the tail point based on voiceprint determination may not require pre-configuration on the server side and is easier to implement.

[0040] In some embodiments, the method for determining the voiceprint determination starting point and the voiceprint determination end point may include: determining the wake-up time point in the voice recognition signal; taking the wake-up time point as a reference, tracing back a first preset time length to determine the voiceprint determination starting point; taking the voiceprint determination starting point as a reference, delaying a second preset time length to determine the voiceprint determination end point.

[0041] The wake-up time point refers to the time point when the user device determines that the wake-up is successful, for example, the time point when the user device recognizes at least part of the wake-up word. Taking the wake-up word "Xiaodu Xiaodu" as an example, generally when "Xiaodu Xiao" is recognized, the user device can determine that the wake-up is successful, and the end time point corresponding to "Xiaodu Xiao" can be used as the wake-up time point.

[0042] Generally speaking, the first preset duration is greater than or equal to the duration of the wake-up word. For example, the wake-up word is "Xiaodu Xiaodu", and each character is generally 500ms, then the first preset duration is, for example, 2000ms.

[0043] The second preset time length is generally greater than the first preset time length, and the second preset time length is, for example, 2560 ms.

[0044] Through the above selection method, it can be ensured that the speech content between the voiceprint determination starting point and the voiceprint determination ending point includes a complete wake-up word, so that the server can perform voiceprint determination based on the wake-up word.

[0045] Taking the first preset time length as 2000ms and the second preset time length as 2560ms as an example, the relationship between the wake-up time point, the voiceprint determination starting point and the voiceprint determination end point can be seen in Figure 2 .

[0046] In this embodiment, by adopting the above method to determine the voiceprint determination starting point and the voiceprint determination ending point, it can be ensured that the voiceprint determination starting point and the voiceprint determination ending point include completed preset content, so as to ensure the accuracy of voiceprint determination.

[0047] In the related technology, in addition to the voice recognition signal, the client will send a voiceprint determination signal to the server, wherein the voice recognition signal and the voiceprint determination signal may carry different type identifiers for distinction. That is, the voice signals sent by the client to the server are of two types, one is the voice recognition signal, and the other is the voiceprint determination signal. This will increase the burden on the transmission link, and may also affect the voice recognition signal and affect the voice recognition effect.

[0048] In the disclosed embodiment, there is no need to send a voiceprint determination signal additionally. Instead, the voiceprint determination is performed using the speech recognition signal. That is, the speech recognition signal is not only used for speech recognition, but also for voiceprint determination.

[0049] The client can add a preset identifier to the voice recognition signal, and the server performs voiceprint determination based on the voice recognition signal containing the preset identifier. Specifically, the client can add a preset identifier after the voiceprint determination end point of the voice recognition signal, and send the voice recognition signal to the server from the voiceprint determination starting point. The server uses the voice recognition signal before the preset identifier as the voiceprint determination signal, and performs voiceprint determination on the voiceprint determination signal based on a pre-established voiceprint model. Among them, the voiceprint model is established based on preset content. For example, the user can say the voice containing "Xiaodu Xiaodu" multiple times in advance, and the server establishes a voiceprint model based on the voice signal containing the wake-up word multiple times. The specific way to establish the voiceprint model can be implemented using relevant technologies, which will not be described in detail here.

[0050] In order to enable the server to perform voiceprint determination based on the voice recognition signal, a preset identifier can be added to the voice recognition signal. Accordingly, after the server receives the voice recognition signal containing the preset identifier, it can perform voiceprint determination based on the voice recognition signal before the preset identifier.

[0051] When the client sends a voice recognition signal to the server, it can be sent one voice packet at a time, that is, the client can divide the voice recognition signal into voice packets starting from the voiceprint determination starting point, and add a preset empty packet after the voiceprint determination end point, and send the voice packet and the preset empty packet to the server. For example, each voice packet is 160ms, and 2560ms is 16 voice packets. The client starts from the voiceprint determination starting point, sends 16 voice packets, and then sends an empty packet after the 16th voice packet. After receiving the empty packet, the server performs voiceprint determination based on the voice recognition signal before the empty packet, that is, performs voiceprint determination based on the previous 16 voice packets. Among them, the voice recognition signal before the empty packet is a voice recognition signal containing a wake-up word.

[0052] Furthermore, the category identifier in the empty packet serving as the preset identifier may be different from the category identifier in the voice packet corresponding to the normal voice recognition signal for distinction.

[0053] In this embodiment, by determining the voiceprint determination starting point and voiceprint determination ending point in the voice recognition signal, and adding a preset identifier in the voice recognition signal based on the voiceprint determination ending point, the server can perform voiceprint determination based on the voice recognition signal containing the preset identifier, and can complete the voiceprint determination without the need to additionally send a special voiceprint determination voice signal, thereby reducing the amount of data in the transmission link.

[0054] Figure 3 is a schematic diagram according to the third embodiment of the present disclosure. This embodiment provides a voiceprint determination method. This embodiment takes the execution of the server as an example. Figure 3 As shown, the method includes:

[0055] 301. Receive a speech recognition signal, wherein the speech recognition signal includes a preset identifier, and the speech recognition signal includes a voiceprint determination part, the preset identifier is used to determine the voiceprint determination part in the speech recognition signal, and the voiceprint determination part includes preset content.

[0056] 302. Determine the voiceprint determination portion in the speech recognition signal based on the preset identifier.

[0057] 303. Perform voiceprint determination on the voiceprint determination part using a voiceprint model, wherein the voiceprint model is established based on the preset content.

[0058] In some embodiments, the voice recognition signal is sent from the voiceprint determination starting point, and the preset identifier is added after the voiceprint determination end point. Accordingly, based on the preset identifier, the voiceprint determination part in the voice recognition signal is determined, including: determining the part before the preset identifier in the voice recognition signal as the voiceprint determination part.

[0059] In this embodiment, by determining the voiceprint determination part in the voice recognition signal and performing voiceprint determination based on the voiceprint determination part, voiceprint determination can be completed without sending a special voiceprint determination voice signal, thereby reducing the amount of data in the transmission link. Furthermore, by adding a preset identifier after the end of the voiceprint determination, the part before the preset identifier can be used as the voiceprint determination part, and the voiceprint determination part can be determined efficiently.

[0060] Figure 4 is a schematic diagram according to the fourth embodiment of the present disclosure. This embodiment provides a voiceprint determination method, combined with Figure 5 The structure shown in FIG. 1 includes:

[0061] 401. The client collects a registration voice signal containing the preset content.

[0062] The registration voice signal refers to the voice signal used to register the voiceprint, and the preset content is the fixed content when determining the text-related voiceprint, such as the wake-up word.

[0063] The client may provide the user with a voiceprint registration interface, which may include a voiceprint registration button. When the user clicks the voiceprint registration button, the client may collect the voice signal emitted by the user. The disclosed embodiment takes text-related voiceprint determination as an example. Therefore, before collecting the voice signal emitted by the user, the client may also prompt the user to emit a voice signal containing a wake-up word. For example, the client is installed on a smart speaker, and the smart speaker may prompt the user with content such as "Please say "Xiaodu Xiaodu"" in text form on the screen, or in voice form. Accordingly, "Xiaodu Xiaodu" emitted by the user in response to the prompt may be used as a registration voice signal.

[0064] 402. The client sends the registration voice signal to the server, so that the server establishes a voiceprint model based on the registration voice signal.

[0065] like Figure 5 As shown, the client may include: a voice collection module, a voice software development kit (SDK) and an interaction module. The voice SDK may include: a cache module, a recognition module and a wake-up module. Figure 5 In the example in which the server is in the cloud, it can be understood that if the speech recognition is performed offline, the server can also be located on the user device.

[0066] The voice collection module is used to collect the voice signal sent by the user. The voice collection module is, for example, a microphone array.

[0067] After the voice acquisition module acquires the voice signal, the voice signal can be saved in the buffer module. When registering the voiceprint, the recognition module can obtain the registered voice signal containing the wake-up word from the buffer module and send it to the cloud through the communication module.

[0068] Furthermore, before the voice acquisition module saves the voice signal (registration voice signal and / or voice recognition signal) to the cache module, it can also process the voice signal in order to save the processed voice signal. The processing of the voice signal may include general signal processing procedures, such as noise reduction, enhancement, etc., and / or may also include beam processing of the voice signal. It is understandable that the processing method of the registration voice signal and the voice recognition signal used for voiceprint determination later needs to be consistent. For example, when the voice recognition signal involved in the subsequent process is a voice recognition signal after beam processing, the registration voice signal must also be beam processed so that voiceprint registration can be performed based on the registration voice signal after beam processing.

[0069] In this embodiment, the voiceprint registration can be completed by the client sending a registration voice signal containing preset content to the server, so as to be used for voiceprint determination later.

[0070] 403. The client collects voice recognition signals.

[0071] The speech recognition signal refers to the signal to be voice recognized, which generally includes the wake-up word and the content to be recognized. For example, the speech recognition signal is "Xiaodu Xiaodu, tomorrow's weather". It can be understood that in the scenario of real-time speech recognition, the speech recognition signal is streaming, that is, it does not require the user to finish saying "Xiaodu Xiaodu, tomorrow's weather" before processing, but starts processing from the detection of speech, such as "Xiao". In addition, for the voice wake-up scenario, "Xiaodu Xiaodu" and "tomorrow's weather" are not limited to being spoken continuously, that is, the user can say "Xiaodu Xiaodu" first, and after the client or cloud recognizes the wake-up and executes the wake-up operation, the user can say "tomorrow's weather".

[0072] Specifically, after the voice collection module collects the voice recognition signal, it saves it in the cache module, and the recognition module obtains the voice recognition signal from the cache module.

[0073] 404. The client determines a wake-up time point in the speech recognition signal.

[0074] The client may determine a wake-up identifier, wherein the wake-up identifier includes: a voice watermark value; and determining the end point of a voice frame where a voice watermark corresponding to the voice watermark value is located as a wake-up time point.

[0075] Specifically, after the recognition module obtains the speech recognition signal from the cache, it can send the speech recognition signal to the wake-up module. The wake-up module is used to detect whether the speech signal contains a wake-up word. The wake-up module can be implemented using various related technologies. For example, the speech signal is first divided into multiple frames, and the speech features of each frame of the speech signal are extracted. Then, based on the speech features and the wake-up acoustic model, it is determined whether the frame of the speech signal contains the wake-up word. After detecting that the speech signal contains the wake-up word, the wake-up module can feedback the wake-up identifier to the recognition module. After receiving the wake-up identifier, the recognition module determines the time point corresponding to the wake-up identifier as the wake-up time point.

[0076] The wake-up identifier is, for example, a voice watermark value.

[0077] The voice acquisition module can add a voice watermark to the collected voice signal, and send the voice signal with the voice watermark to the wake-up module and the recognition module. When adding the voice watermark, the voice acquisition module can also assign a voice watermark value to each voice watermark. The voice watermark values ​​are counted sequentially from 0, for example, that is, the voice watermark values ​​can be 0, 1, 2, etc. The voice acquisition module can use various related technologies to add a voice watermark to the voice signal, and this embodiment does not limit the method of adding the voice watermark.

[0078] When detecting the wake-up word, the wake-up module can process it based on the voice frame. That is, the voice signal is divided into individual voice frames, for example, every 32ms is divided into a voice frame, and each voice frame is detected to see whether it contains the wake-up word. When the wake-up word is detected, the voice watermark on the voice frame containing the wake-up word can be parsed based on the pre-configured protocol to obtain the corresponding voice watermark value, and then the voice watermark value is sent to the recognition module as a wake-up identifier.

[0079] After the recognition module receives the voice watermark value as the wake-up identifier, the end point of the voice frame where the voice watermark corresponding to the voice watermark value is located can be determined as the wake-up time point.

[0080] In this embodiment, the wake-up time point is determined based on the voice watermark value, so that the accuracy of the wake-up time point can be guaranteed.

[0081] 405. The client uses the wake-up time point as a reference, traces back a first preset time period, and determines it as the voiceprint determination starting point. Also, uses the voiceprint determination starting point as a reference, delays backward a second preset time period, and determines it as the voiceprint determination ending point.

[0082] The relationship between the wake-up time point, the voiceprint determination starting point, and the voiceprint determination end point can be found in Figure 2 , I will not go into details here.

[0083] 406. The client divides the voice recognition signal into voice packets starting from the voiceprint determination starting point, sends the voice packets to the cloud, adds a preset empty packet after the voiceprint determination tail point, and sends the preset empty packet to the cloud.

[0084] The voice packet corresponding to the voice recognition signal includes a first type identifier, the preset empty packet includes a second type identifier, and the first type identifier is different from the second type identifier.

[0085] like Figure 6 As shown, the client can send voice packets one by one from the voiceprint determination starting point. The duration of each voice packet can be 160ms. Since the duration from the voiceprint determination starting point to the voiceprint determination end point is 2560ms, it can be divided into 16 voice packets, and an empty packet is added after the 16th voice packet. Both the empty packet and the voice packet can contain a type identifier (Type), and the type identifiers of the two can be different. Figure 6 As shown, the type identifier of the voice packet is 0x01, and the type identifier of the empty packet is 0x08. It is understandable that when sending a voice signal (registration voice signal and / or voice recognition signal), the voice signal can also be processed to a certain extent, such as compression processing. Figure 6As shown, taking opus compression as an example, after opus compression, the corresponding voice package (pkg) can be obtained. Each voice package can include length, type and value, and is sent to the cloud. In addition, the voice data in the cache can be read from the Advanced Linux Sound Architecture (ALSA) of the terminal, and 32ms of voice data can be read each time.

[0086] In this embodiment, by using different type identifiers for voice packets and empty packets, voice packets and empty packets can be better distinguished to ensure the accuracy of the voiceprint determination signal, and further ensure the accuracy of the voiceprint determination.

[0087] 407. The cloud uses the voice recognition signal before the preset empty packet as a voiceprint determination part, and uses a voiceprint model to perform voiceprint determination on the voiceprint determination part.

[0088] That is, the speech signal between the voiceprint determination starting point and the voiceprint determination ending point is used as the voiceprint determination part, and the voiceprint determination signal is subjected to voiceprint determination using a voiceprint model.

[0089] It is understandable that the cloud can also perform speech recognition and corresponding processing on the speech recognition signal, for example, recognize "tomorrow's weather", then obtain tomorrow's weather, and feedback to the user through the client. Specifically, Figure 6 The 17th packet may be the first voice packet corresponding to the content to be identified, and so on.

[0090] In this embodiment, by sending a voice recognition signal to the cloud from the voiceprint determination starting point, and adding a preset empty packet after the voiceprint determination end point to instruct the cloud to perform voiceprint determination on the voice recognition signal before the preset empty packet, there is no need to additionally transmit a voice signal specifically used for voiceprint determination, which can reduce the amount of transmission data of the transmission link between the client and the cloud, reduce the burden of the transmission link, and avoid interference of the additionally transmitted voice signal with the voice recognition signal, thereby ensuring the accuracy of voice recognition.

[0091] Figure 7 is a schematic diagram according to the seventh embodiment of the present disclosure, which provides a voiceprint determination device. Figure 7 As shown, the voiceprint determination device 700 may include an adding module 701 and a sending module 702 .

[0092] The adding module 701 is used to add a preset identifier to the voice recognition signal to obtain a voice recognition signal containing the preset identifier, wherein the voice recognition signal includes a voiceprint determination part, and the preset identifier is used to determine the voiceprint determination part in the voice recognition signal, and the voiceprint determination part includes preset content; the sending module 702 is used to send the voice recognition signal containing the preset identifier to the server, so that the server performs voiceprint determination based on the voiceprint model and the voice recognition signal containing the preset identifier, and the voiceprint model is established based on the preset content.

[0093] In some embodiments, the adding module 701 is specifically used to: determine the endpoint of the voiceprint determination part in the speech recognition signal; and add a preset identifier to the speech recognition signal based on the endpoint.

[0094] In some embodiments, the endpoint includes: a voiceprint determination tail point, and the adding module 701 is further specifically configured to: add a preset identifier after the voiceprint determination tail point in the speech recognition signal.

[0095] In some embodiments, the preset content is a wake-up word, and the adding module 701 is further specifically used to: determine the wake-up time point in the voice recognition signal; based on the wake-up time point, trace back a first preset time length to determine it as the starting point of voiceprint determination; based on the starting point of voiceprint determination, delay backward a second preset time length to determine it as the end point of voiceprint determination.

[0096] In some embodiments, the adding module 701 is further specifically used to: determine a wake-up identifier, the wake-up identifier includes: a voice watermark value; and determine the end point of a voice frame where a voice watermark corresponding to the voice watermark value is located as the wake-up time point.

[0097] In some embodiments, the endpoint includes a voiceprint determination starting point and a voiceprint determination ending point, the preset identifier is a preset empty packet, and the preset empty packet is added after the voiceprint determination ending point, and the sending module 702 is specifically used to: divide the voice recognition signal into voice packets, and starting from the voiceprint determination starting point, send the voice packets and the preset empty packets to the server.

[0098] In some embodiments, the voice packet corresponding to the voice recognition signal includes a first type identifier, the preset empty packet includes a second type identifier, and the first type identifier and the second type identifier are different.

[0099] In some embodiments, the device further includes: a registration module, configured to collect a registration voice signal containing the preset content; and send the registration voice signal to the server, so that the server establishes the voiceprint model based on the registration voice signal.

[0100] Figure 8 is a schematic diagram according to the eighth embodiment of the present disclosure, which provides a voiceprint determination device. Figure 8 As shown, the voiceprint determination device 800 may include a receiving module 801 , a determining module 802 and a determining module 803 .

[0101] The receiving module 801 is used to receive a speech recognition signal, wherein the speech recognition signal includes a preset identifier, and the speech recognition signal includes a voiceprint determination part, wherein the preset identifier is used to determine the voiceprint determination part in the speech recognition signal, and the voiceprint determination part includes preset content; the determining module 802 is used to determine the voiceprint determination part in the speech recognition signal based on the preset identifier; the determining module 803 is used to perform voiceprint determination on the voiceprint determination part using a voiceprint model, and the voiceprint model is established based on the preset content.

[0102] In some embodiments, the voiceprint determination part is located between the voiceprint determination starting point and the voiceprint determination ending point, the speech recognition signal is sent from the voiceprint determination starting point, and the preset identifier is added after the voiceprint determination ending point. The determination module 802 is specifically used to: determine the speech recognition signal before the preset identifier as the voiceprint determination part.

[0103] In the embodiment of the present disclosure, by determining the voiceprint determination starting point and the voiceprint determination ending point in the voice recognition signal, and adding a preset identifier in the voice recognition signal based on the voiceprint determination ending point, the server can perform voiceprint determination based on the voice recognition signal containing the preset identifier, and can complete the voiceprint determination without the need to additionally send a special voiceprint determination voice signal, thereby reducing the amount of data in the transmission link.

[0104] It can be understood that in the embodiments of the present disclosure, the same or similar contents in different embodiments can be referenced to each other.

[0105] It can be understood that the “first”, “second”, etc. in the embodiments of the present disclosure are only used for distinction and do not indicate the degree of importance, time sequence, etc.

[0106] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0107] Fig. 9A schematic block diagram of an example electronic device 900 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0108] like Fig. 9 As shown, the electronic device 900 includes a computing unit 901, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 902 or a computer program loaded from a storage unit 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the electronic device 900 can also be stored. The computing unit 901, the ROM 602, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0109] Multiple components in the electronic device 900 are connected to the I / O interface 905, including: an input unit 906, such as a keyboard, a mouse, etc.; an output unit 907, such as various types of displays, speakers, etc.; a storage unit 908, such as a disk, an optical disk, etc.; and a communication unit 909, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 909 allows the electronic device 900 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0110] The computing unit 901 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 901 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The computing unit 901 performs the various methods and processes described above, such as the voiceprint determination method. For example, in some embodiments, the voiceprint determination method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 908. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 900 via the ROM 902 and / or the communication unit 909. When the computer program is loaded into the RAM 903 and executed by the computing unit 901, one or more steps of the voiceprint determination method described above may be performed. Alternatively, in other embodiments, the computing unit 901 may be configured to perform the voiceprint determination method in any other appropriate manner (e.g., by means of firmware).

[0111] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0112] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0113] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0114] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0115] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0116] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.

[0117] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0118] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A voiceprint determination method, comprising: Adding a preset identifier to a speech recognition signal to obtain a speech recognition signal including the preset identifier, wherein the speech recognition signal includes a voiceprint determination portion, the preset identifier is used to determine the voiceprint determination portion in the speech recognition signal, and the voiceprint determination portion includes preset content; Sending the voice recognition signal containing the preset identifier to the server, so that the server performs voiceprint determination based on a voiceprint model and the voice recognition signal containing the preset identifier, wherein the voiceprint model is established based on the preset content; The preset identifier is added based on the endpoint of the voiceprint determination part in the speech recognition signal; the endpoint includes: the voiceprint determination tail point, the preset identifier is added after the voiceprint determination tail point, and the preset content is the wake-up word; the endpoint is determined in the following manner: Determining a wake-up time point in a speech recognition signal; Taking the wake-up time point as a reference, tracing back to a first preset time length to determine the starting point of voiceprint determination; Taking the voiceprint determination starting point as a reference, a second preset time period is delayed backward to determine the voiceprint determination end point.

2. The method according to claim 1, wherein: The step of determining a wake-up time point in the speech recognition signal includes: Determine a wake-up flag, wherein the wake-up flag includes: a voice watermark value; The end point of the voice frame where the voice watermark corresponding to the voice watermark value is located is determined as the wake-up time point.

3. The method according to claim 1, wherein: The endpoint includes a voiceprint determination starting point and a voiceprint determination end point, the preset identifier is a preset empty packet, and the preset empty packet is added after the voiceprint determination end point, and the voice recognition signal including the preset identifier is sent to the server, including: The voice recognition signal is divided into voice packets, and starting from the voiceprint determination starting point, the voice packets and the preset empty packets are sent to the server, the voice packets corresponding to the voice recognition signal contain a first type identifier, the preset empty packets contain a second type identifier, and the first type identifier and the second type identifier are different.

4. The method according to any one of claims 1 to 3, wherein: Also includes: Collecting a registered voice signal containing the preset content, where the preset content is a fixed content during text-related voiceprint determination; The registration voice signal is sent to the server, so that the server establishes the voiceprint model based on the registration voice signal.

5. A voiceprint determination device, comprising: an adding module, configured to add a preset identifier to a speech recognition signal to obtain a speech recognition signal including the preset identifier, wherein the speech recognition signal includes a voiceprint determination portion, the preset identifier is used to determine the voiceprint determination portion in the speech recognition signal, and the voiceprint determination portion includes preset content; a sending module, configured to send the voice recognition signal containing the preset identifier to a server, so that the server performs voiceprint determination based on a voiceprint model and the voice recognition signal containing the preset identifier, wherein the voiceprint model is established based on the preset content; The preset identifier is added based on the endpoint of the voiceprint determination part in the speech recognition signal; the endpoint includes: the voiceprint determination tail point, the preset identifier is added after the voiceprint determination tail point, and the preset content is the wake-up word; the adding module is specifically used to determine the endpoint in the following manner: Determining a wake-up time point in a speech recognition signal; Taking the wake-up time point as a reference, tracing back to a first preset time length to determine the starting point of voiceprint determination; Taking the voiceprint determination starting point as a reference, a second preset time period is delayed backward to determine the voiceprint determination end point.

6. The device according to claim 5, wherein: The adding module is further specifically used for: Determine a wake-up flag, wherein the wake-up flag includes: a voice watermark value; The end point of the voice frame where the voice watermark corresponding to the voice watermark value is located is determined as the wake-up time point.

7. The device according to claim 5, wherein: The endpoints include a voiceprint determination start point and a voiceprint determination end point, the preset identifier is a preset empty packet, and the preset empty packet is added after the voiceprint determination end point, and the sending module is specifically used for: The voice recognition signal is divided into voice packets, and starting from the voiceprint determination starting point, the voice packets and the preset empty packets are sent to the server, the voice packets corresponding to the voice recognition signal contain a first type identifier, the preset empty packets contain a second type identifier, and the first type identifier and the second type identifier are different.

8. The device according to any one of claims 5 to 7, wherein: Also includes: A registration module, used to collect a registration voice signal containing the preset content, where the preset content is a fixed content during text-related voiceprint determination; And, sending the registration voice signal to the server, so that the server establishes the voiceprint model based on the registration voice signal.

9. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 4.

10. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-4.

11. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 4.