Key sound suppression method and device, equipment and storage medium

By identifying and eliminating key-press sound signals collected by the microphone, the problem of poor key-press sound suppression in the existing technology is solved, and the security of user data and call quality are improved.

CN118658486APending Publication Date: 2024-09-17SHANGHAI WINGTECH INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410817147.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

When the existing technology suppresses keyboard sounds, it is difficult to effectively distinguish and eliminate the key sounds, resulting in a decrease in voice call quality, and eavesdroppers can still steal users' private data through the key sounds.

Method used

By obtaining the audio signal to be processed and the target button identification when the microphone is turned on, searching for the corresponding button sound signal in the preset button sound source library, identifying and eliminating audio signals with a similarity greater than the threshold, and sending the processed audio signal to improve Key sound suppression effect.

Benefits of technology

Effectively filter out key press sounds in audio, reduce the probability of stealing user privacy data, and improve the security of user data while maintaining call quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118658486A
    Figure CN118658486A
Patent Text Reader

Abstract

The invention relates to a key sound suppression method and device, equipment and a storage medium, and relates to the technical field of signal processing. The method comprises the following steps: when a microphone is in an on state, in response to a click operation of a user on a target key in a keyboard, obtaining a to-be-processed audio signal collected by the microphone and a target key identifier corresponding to the target key clicked by the click operation; searching a target key sound signal corresponding to the target key identifier from a preset key sound source library; identifying a first audio signal of which the similarity degree with the target key sound signal is greater than a preset threshold value in the audio signals to be processed; eliminating a first audio signal in the to-be-processed audio signals to obtain a first target audio signal; and sending the first target audio signal to the audio receiving equipment, so that the key sound in the audio can be accurately filtered by adopting an algorithm mode, the suppression effect of the key sound can be improved, the probability of stealing user privacy data through the key sound is reduced, and the safety of the user data is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of signal processing technology, and in particular to a keystroke sound suppression method, device, equipment and storage medium. Background Art

[0002] Currently, users can achieve end-to-end communication through communication tools such as voice calls, video calls, and online conferences. Eavesdroppers can simply identify the content entered by the user through the sound of the user clicking the keyboard keys, and then steal the user's private data.

[0003] In the related art, keyboard sounds are usually suppressed through noise reduction. However, since the keystroke sound is a non-steady-state noise, the effect of suppressing the keyboard sound through noise reduction is not obvious. If the noise reduction level is too high, other sounds will be suppressed at the same time, damaging the voice quality of the call and reducing the call quality. Summary of the invention

[0004] In order to solve the above technical problems, the present disclosure provides a keystroke sound suppression method, device, equipment and storage medium.

[0005] A first aspect of the present disclosure provides a keystroke sound suppression method, comprising:

[0006] When the microphone is in an on state, in response to a user clicking a target key on the keyboard, obtaining an audio signal to be processed collected by the microphone and a target key identifier corresponding to the target key clicked by the clicking operation;

[0007] Searching for a target key sound signal corresponding to the target key identifier from a preset key sound source library;

[0008] Identifying a first audio signal in the audio signal to be processed whose similarity to the target key sound signal is greater than a preset threshold;

[0009] Eliminating a first audio signal in the audio signal to be processed to obtain a first target audio signal;

[0010] The first target audio signal is sent to an audio receiving device.

[0011] A second aspect of the present disclosure provides a keystroke sound suppression device, comprising:

[0012] A first acquisition module is used to acquire, when the microphone is in an on state, an audio signal to be processed collected by the microphone and a target key identifier corresponding to the target key clicked by the click operation in response to a user clicking the target key on the keyboard;

[0013] A search module, used to search for a target key sound signal corresponding to a target key identifier from a preset key sound source library;

[0014] A first recognition module, used to recognize a first audio signal in the audio signal to be processed, the first audio signal having a similarity with the target key sound signal greater than a preset threshold;

[0015] A first elimination module, used for eliminating a first audio signal in the audio signal to be processed to obtain a first target audio signal;

[0016] A first sending module is used to send a first target audio signal to an audio receiving device

[0017] A third aspect of the present disclosure provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the key sound suppression method of the first aspect can be implemented.

[0018] A fourth aspect of the present disclosure provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the key sound suppression method of the first aspect can be implemented.

[0019] Compared with the prior art, the technical solution provided by the present invention has the following advantages:

[0020] The present invention obtains the audio signal to be processed collected by the microphone and the target key identifier corresponding to the target key clicked by the click operation in response to the user's click operation on the target key in the keyboard when the microphone is in the on state; searches for the target key sound signal corresponding to the target key identifier from the preset key sound source library; identifies the first audio signal in the audio signal to be processed whose similarity with the target key sound signal is greater than a preset threshold; eliminates the first audio signal in the audio signal to be processed to obtain the first target audio signal; sends the first target audio signal to the audio receiving device, and can match the audio signal to be processed with the key sound signals of each key in the pre-built electronic device keyboard, determine the signal whose similarity meets the preset threshold as the key sound signal in the audio signal to be processed, and eliminate the key sound signal in the audio signal to be processed, and use an algorithm to accurately filter out the key sound in the audio, which can improve the suppression effect of the key sound, reduce the probability of stealing user privacy data through key sound, and improve the security of user data. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0022] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0023] Figure 1 is a flow chart of a keystroke sound suppression method provided by an embodiment of the present disclosure;

[0024] Figure 2 is a flow chart of another keystroke sound suppression method provided by an embodiment of the present disclosure;

[0025] Figure 3 is a flow chart of another method for suppressing keystroke sound provided by an embodiment of the present disclosure;

[0026] Figure 4 is a flow chart of a method for constructing a key tone source library provided by an embodiment of the present disclosure;

[0027] Figure 5 is a structural schematic diagram of a keystroke sound suppression device provided by an embodiment of the present disclosure;

[0028] Figure 6 It is a structural schematic diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0029] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.

[0030] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.

[0031] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0032] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0033] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0034] In order to better understand the inventive concept of the embodiments of the present disclosure, the technical solutions of the embodiments of the present disclosure are described below in conjunction with exemplary embodiments.

[0035] Figure 1 This is a flowchart of a keystroke suppression method provided by an embodiment of the present disclosure, which can be executed by an electronic device, which can be understood as any device with processing and computing capabilities, including but not limited to mobile terminals such as smart phones, laptops, personal digital assistants (PDAs), tablet computers (PADs), portable multimedia players (PMPs), vehicle-mounted terminals, wearable devices, etc., and fixed electronic devices such as digital TVs, desktop computers, smart home devices, etc. Figure 1 As shown, the keystroke sound suppression method provided in this embodiment includes the following steps:

[0036] Step 110: When the microphone is in an on state, in response to a user clicking a target key on the keyboard, an audio signal to be processed collected by the microphone and a target key identifier corresponding to the target key are obtained.

[0037] In the embodiment of the present disclosure, a microphone and a keyboard are installed in the electronic device, and the microphone can collect audio signals. When the microphone is turned on, when the user clicks a target key in the keyboard of the electronic device, the electronic device can obtain the to-be-processed audio signal collected by the microphone in response to the user's click operation on the target key in the keyboard, and the to-be-processed audio signal includes a key sound signal of the target key, and the mapping relationship between the key and the key identifier is pre-stored in the electronic device, and the electronic device can obtain the target key identifier corresponding to the target key based on the mapping relationship between the key and the key identifier.

[0038] The key identifier can be understood as identification information that can uniquely identify the key. For example, the key identifier can be the key name, such as the key name is Q key, W key, etc.

[0039] Step 120: Search for a target key sound signal corresponding to the target key identifier from a preset key sound source library.

[0040] In the disclosed embodiment, a key sound source library is pre-stored in the electronic device, and the key sound source library includes key identifiers of each key in the electronic device keyboard, key sound signals of each key, and a mapping relationship between key identifiers and key sound signals.

[0041] After obtaining the target key identifier corresponding to the target key, the electronic device can search for the target key sound signal corresponding to the target key identifier from a preset key sound source library based on the mapping relationship between the key identifier and the key sound signal.

[0042] Step 130: Identify a first audio signal in the audio signal to be processed whose similarity to the target key sound signal is greater than a preset threshold.

[0043] In the embodiment of the present disclosure, after obtaining the target key sound signal of the target key, the electronic device can compare the audio signal to be processed with the target key sound signal to identify the first audio signal in the audio signal to be processed whose similarity with the target key sound signal is greater than a preset threshold.

[0044] The preset threshold can be set as needed and is not limited here.

[0045] In some embodiments, the first audio signal may be an audio signal that is the same as the target key sound signal in the audio signal to be processed.

[0046] Step 140: Eliminate the first audio signal in the audio signal to be processed to obtain a first target audio signal.

[0047] In the embodiment of the present disclosure, after determining the first audio signal, the electronic device can eliminate the first audio signal in the audio signal to be processed, and use the audio signal to be processed after eliminating the first audio signal as the first target audio signal. At this time, the first target audio signal does not contain the key sound signal.

[0048] Step 150: Send the first target audio signal to an audio receiving device.

[0049] In the embodiment of the present disclosure, the electronic device can be communicatively connected with the audio receiving device, and the user can make a voice call or a video call with the user at the audio receiving device through the electronic device.

[0050] After obtaining the first target audio signal, the electronic device may send the first target audio signal to the audio receiving device. At this time, the signal received by the audio receiving device does not contain the key sound signal of the electronic device.

[0051] In the embodiment of the present disclosure, when the microphone is in an on state, in response to a user clicking a target key in a keyboard, the audio signal to be processed collected by the microphone and the target key identifier corresponding to the target key clicked by the click operation are obtained; a target key sound signal corresponding to the target key identifier is searched from a preset key sound source library; a first audio signal in the audio signal to be processed whose similarity with the target key sound signal is greater than a preset threshold is identified; the first audio signal in the audio signal to be processed is eliminated to obtain a first target audio signal; the first target audio signal is sent to an audio receiving device, the audio signal to be processed can be matched with the key sound signals of each key in a pre-built electronic device keyboard, the signal whose similarity meets the preset threshold is determined as the key sound signal in the audio signal to be processed, and the key sound signal in the audio signal to be processed is eliminated, and the key sound in the audio signal to be processed is accurately filtered out by an algorithm, which can improve the suppression effect of the key sound, reduce the probability of stealing user privacy data through key sounds, and improve the security of user data.

[0052] Figure 2 is a flow chart of a key sound suppression method provided by an embodiment of the present disclosure, which can be executed by an electronic device, such as Figure 2 As shown, the keystroke sound suppression method provided in this embodiment includes the following steps:

[0053] Step 210: When the microphone is in an on state, in response to a user clicking a target key on the keyboard, obtain an audio signal to be processed collected by the microphone and a target key identifier corresponding to the target key clicked by the clicking operation.

[0054] Step 220: Search for a target key sound signal corresponding to the target key identifier from a preset key sound source library.

[0055] Step 230: Identify a first audio signal in the audio signal to be processed whose similarity to the target key sound signal is greater than a preset threshold.

[0056] Step 240: Eliminate the first audio signal in the audio signal to be processed to obtain a first target audio signal.

[0057] Step 250: Identify a second audio signal in the first target audio signal whose sound intensity is less than or equal to a preset noise intensity.

[0058] In an embodiment of the present disclosure, after obtaining the first target audio signal, there may be residual key sound signals in the first target audio signal. At this time, the electronic device can identify a second audio signal in the first target audio signal whose sound intensity is less than or equal to a preset noise intensity. At this time, the second audio signal whose sound intensity is less than or equal to the preset noise intensity can be determined as a noise signal.

[0059] Sound intensity can be understood as the strength of the audio signal, and the unit can be decibel dB.

[0060] The preset noise intensity can be set as needed, such as -40dB, which is not limited here.

[0061] Step 260: Eliminate the second audio signal in the first target audio signal to obtain a second target audio signal.

[0062] In the embodiment of the present disclosure, after obtaining the second audio signal, the electronic device may eliminate the second audio signal in the first target audio signal, and determine the first target audio signal after the second audio signal is eliminated as the second target audio signal.

[0063] Step 270: Send the second target audio signal to the audio receiving device.

[0064] In the embodiment of the present disclosure, after obtaining the second target audio signal, the electronic device may send the second target audio signal to the audio receiving device.

[0065] Therefore, the key sound signal in the processed audio signal can be eliminated twice, and the key sound in the audio can be accurately filtered out by an algorithm, which can further improve the suppression effect of the key sound, reduce the probability of stealing user privacy data through key sounds, and improve the security of user data.

[0066] Figure 3 is a flow chart of a key sound suppression method provided by an embodiment of the present disclosure, which can be executed by an electronic device, such as Figure 3 As shown, the keystroke sound suppression method provided in this embodiment includes the following steps:

[0067] Step 310: When the microphone is in an on state, in response to a user clicking a target key on the keyboard, obtain an audio signal to be processed collected by the microphone and a target key identifier corresponding to the target key clicked by the clicking operation.

[0068] Step 320: Search for a target key sound signal corresponding to the target key identifier from a preset key sound source library.

[0069] Step 330: Identify a first audio signal in the audio signal to be processed whose similarity to the target key sound signal is greater than a preset threshold.

[0070] Step 340: Eliminate the first audio signal in the audio signal to be processed to obtain a first target audio signal.

[0071] Step 350: Identify a second audio signal in the first target audio signal whose sound intensity is less than or equal to a preset noise intensity.

[0072] Step 360: suppress the sound intensity of the second audio signal to obtain a third audio signal, wherein the sound intensity of the third audio signal is less than a preset intensity, and the preset intensity is less than a preset noise intensity.

[0073] In the embodiment of the present disclosure, after determining the second audio signal, the electronic device can suppress the sound intensity of the second audio signal to obtain a third audio signal, the sound intensity of the third audio signal is less than a preset intensity, and the preset intensity is less than a preset noise intensity.

[0074] The preset intensity can be set as needed and is not limited here. For example, the preset intensity can be the minimum sound intensity that a normal human ear can hear.

[0075] Step 370: Determine the first target audio signal including the third audio signal as the third target audio signal.

[0076] Step 380: Send the third target audio signal to the audio receiving device.

[0077] In this way, the key sound signal in the audio signal to be processed can be eliminated and suppressed. The key sound in the audio can be accurately filtered out by an algorithm, which can further improve the suppression effect of the key sound, reduce the probability of stealing user privacy data through key sounds, and improve the security of user data.

[0078] In some embodiments of the present disclosure, before searching the preset key sound source library for the target key identification corresponding to the target key sound signal, the electronic device may execute Figure 4 A flowchart of a method for constructing a key sound source library is provided, such as Figure 4 As shown, the key tone library construction method provided in this embodiment includes the following steps:

[0079] Step 410: Acquire the key sound signal of each key in the keyboard collected by the microphone and the key identifier of each key.

[0080] In the disclosed embodiment, the electronic device may obtain the key sound signal of each key in the keyboard of the electronic device and the key identification of each key collected by the microphone of the electronic device.

[0081] Step 420: For each key in the keyboard, match the key sound signal of the key with the key identifier of the key, and construct a mapping relationship between the key identifier and the key sound signal.

[0082] That is, the key identification corresponds to the key sound signal one by one.

[0083] Step 430: construct a key sound source library based on the key identifier of each key in the keyboard, the key sound signal of each key, and the mapping relationship between the key identifier and the key sound signal.

[0084] In this way, the key sound signal of each key in the electronic device keyboard can be accurately obtained, and the key sound source library of the electronic device keyboard can be accurately constructed.

[0085] In some embodiments of the present disclosure, in the above step 410, obtaining the key sound signal of each key in the keyboard collected by the microphone may include steps 4101-4103:

[0086] Step 4101: For each key on the keyboard, in response to multiple click operations on the key, an initial key sound signal generated by the key in each click operation collected by a microphone is obtained.

[0087] In the disclosed embodiment, for each key in the keyboard, the electronic device can obtain the initial key sound signal generated by the key in each click operation collected by the microphone in response to multiple click operations on the key. This step should be performed in a quiet environment to ensure the accuracy of the initial key sound signal collected by the microphone.

[0088] The number of click operations on each button can be performed as needed, for example, 100 times, which is not limited here.

[0089] Step 4102: construct a key sound signal for each key based on the initial key sound signal generated by each key.

[0090] In the disclosed embodiment, for each key in the keyboard, the electronic device can construct a key sound signal of the key based on the initial key sound signal generated by the key in each click operation, and further construct the key sound signals of each key in the keyboard.

[0091] Optionally, the step of constructing the key sound signal of each key based on the initial key sound signal generated by each key may include S11-S14:

[0092] S11 . For each key on the keyboard, initial key sound signals generated by the key under multiple click operations are mixed to obtain a total audio signal generated by the key.

[0093] In the disclosed embodiment, for each key in the keyboard, the electronic device can mix the initial key sound signals generated by the key under multiple click operations to obtain the total audio signal generated by the key, that is, mix the multiple initial key sound signals corresponding to the key into a total audio signal.

[0094] S12. Counting the number of times a button is clicked in a multiple-click operation.

[0095] The number of clicks of a button in a multiple-click operation is the number of times the button is clicked.

[0096] S13. Calculate the ratio of the total audio signal to the number of clicks.

[0097] In the disclosed embodiment, for each key on the keyboard, the electronic device may calculate the ratio of the total audio signal corresponding to the key to the number of clicks on the key.

[0098] S14. Determine the ratio as the key sound signal of the key.

[0099] Optionally, the step of constructing the key sound signal of each key based on the initial key sound signal generated by each key may include S21-S24:

[0100] S21. For each initial key press sound signal generated by each key, calculate the difference between the initial key press sound signal and other initial key press sound signals generated by the key.

[0101] S22 . For each initial key press sound signal, sum the differences corresponding to the initial key press sound signal to obtain the sum of the differences corresponding to the initial key press sound signal.

[0102] For example, the initial key sound signals generated by key A in three click operations include three initial key sound signals a, b, and c:

[0103] For the initial key sound signal a, calculate the difference X1 between a and b, calculate the difference X2 between a and c, and the sum of the differences corresponding to the initial key sound signal a is X=X1+X2;

[0104] For the initial key sound signal b, calculate the difference Y1 between b and a, calculate the difference Y2 between b and c, and the difference sum Y corresponding to the initial key sound signal b = Y1 + Y2;

[0105] For the initial key sound signal c, the difference Z1 between c and a is calculated, and the difference Z2 between c and b is calculated. The sum of the differences Z corresponding to the initial key sound signal c is Z1+Z2.

[0106] S23. For each key, find the minimum sum of the differences among the sums of the differences corresponding to the initial key sound signals of the key.

[0107] The minimum gap sum is the gap sum with the smallest value among multiple gap sums.

[0108] For example, for the above-mentioned key A, among the sums of the differences X, Y, and Z corresponding to the initial key sound signals of key A, the minimum sum of the differences is found.

[0109] S24: Determine the minimum gap and any corresponding initial key sound signal as the key sound signal of the key.

[0110] For example, for the above-mentioned key A, among the difference sums X, Y, and Z corresponding to the initial key sound signals of key A, the minimum difference sum is Y and Z. The initial key sound signal b corresponding to Y can be determined as the key sound signal of key A, or the initial key sound signal c corresponding to Z can be determined as the key sound signal of key A.

[0111] Optionally, the step of constructing the key sound signal of each key based on the initial key sound signal generated by each key may include S31-S34:

[0112] S31 . For each key, sort a plurality of initial key sound signals generated by the key in order from large to small or from small to large to obtain a signal sequence.

[0113] S32, identifying a median signal in the signal sequence, and using an initial key press sound signal corresponding to the median signal as the key press sound signal of the key.

[0114] In this way, the key sound signal of each key in the electronic device keyboard can be accurately obtained, and the key sound source library of the electronic device keyboard can be accurately constructed.

[0115] It should be understood that, although the steps in the above-mentioned flowcharts are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the above-mentioned flowcharts may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0116] Figure 5 is a schematic diagram of the structure of a keystroke sound suppression device provided by an embodiment of the present disclosure, and the device can be understood as the above-mentioned electronic device or a part of the functional modules in the above-mentioned electronic device. Figure 5 As shown, the key sound suppression device 500 includes:

[0117] The first acquisition module 510 is used to acquire the to-be-processed audio signal collected by the microphone and the target key identifier corresponding to the target key clicked by the click operation in response to a user clicking the target key on the keyboard when the microphone is in an on state;

[0118] A search module 520 is used to search for a target key sound signal corresponding to a target key identifier from a preset key sound source library;

[0119] A first identification module 530 is used to identify a first audio signal in the audio signal to be processed, the first audio signal having a similarity with the target key sound signal greater than a preset threshold;

[0120] A first elimination module 540, configured to eliminate a first audio signal in the audio signal to be processed to obtain a first target audio signal;

[0121] The first sending module 550 is configured to send a first target audio signal to an audio receiving device.

[0122] Optionally, the key sound suppression device comprises:

[0123] A second recognition module, used to recognize a second audio signal in the first target audio signal whose sound intensity is less than or equal to a preset noise intensity;

[0124] A second elimination module, used to eliminate the second audio signal in the first target audio signal to obtain a second target audio signal;

[0125] The second sending module is used to send the second target audio signal to the audio receiving device.

[0126] Optionally, the key sound suppression device comprises:

[0127] A suppression module, used for suppressing the sound intensity of the second audio signal to obtain a third audio signal, wherein the sound intensity of the third audio signal is less than a preset intensity, and the preset intensity is less than a preset noise intensity;

[0128] a determination module, configured to determine the first target audio signal including the third audio signal as the third target audio signal;

[0129] The third sending module is used to send the third target audio signal to the audio receiving device.

[0130] Optionally, the key sound suppression device comprises:

[0131] A second acquisition module is used to acquire a key sound signal of each key in the keyboard and a key identifier of each key collected by a microphone;

[0132] A matching module, for matching the key sound signal of each key in the keyboard with the key identifier of the key, and constructing a mapping relationship between the key identifier and the key sound signal;

[0133] The construction module is used to construct a key sound source library based on the key identification of each key in the keyboard, the key sound signal of each key and the mapping relationship.

[0134] Optionally, the second acquisition module includes:

[0135] An acquisition submodule is used to acquire, for each key in the keyboard, an initial key sound signal generated by the key in each click operation collected by a microphone in response to multiple click operations on the key;

[0136] The construction submodule is used to construct the key sound signal of each key based on the initial key sound signal generated by each key.

[0137] Optionally, the above-mentioned building block includes:

[0138] A mixing unit, for mixing initial key sound signals generated by each key in the keyboard under multiple click operations to obtain a total audio signal generated by the key;

[0139] A statistics unit is used to count the number of times a button is clicked in a multiple-click operation;

[0140] A first calculation unit, used for calculating the ratio of the total audio signal to the number of clicks;

[0141] The first determining unit is used to determine the ratio as a key pressing sound signal of a key.

[0142] Optionally, the above-mentioned building block includes:

[0143] A second calculation unit is used to calculate, for each initial key press sound signal generated by each key, the difference between the initial key press sound signal and other initial key press sound signals generated by the key;

[0144] A summing unit, for summing the differences corresponding to each initial key-press sound signal, to obtain the sum of the differences corresponding to the initial key-press sound signal;

[0145] A searching unit, configured to search for a minimum difference sum among the difference sums corresponding to the initial key sound signals of each key for each key;

[0146] The second determining unit is used to determine the minimum gap and any corresponding initial key sound signal as the key sound signal of the key.

[0147] The key sound suppression device provided in the embodiments of the present disclosure can implement the method of any of the above embodiments, and its execution method and beneficial effects are similar, which will not be repeated here.

[0148] Each module in the above-mentioned keystroke sound suppression device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in an electronic device in the form of hardware, or can be stored in a memory in an electronic device in the form of software, so that the processor can call and execute the operations corresponding to each module.

[0149] An embodiment of the present disclosure also provides an electronic device, which includes a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the method of any of the above embodiments can be implemented, and its execution method and beneficial effects are similar and will not be repeated here.

[0150] The electronic device in the embodiments of the present disclosure may be understood as any device with processing and computing capabilities, and the device may include but is not limited to mobile terminals such as smart phones, laptops, personal digital assistants (PDAs), tablet computers (PADs), portable multimedia players (PMPs), vehicle-mounted terminals, wearable devices, etc., as well as fixed electronic devices such as digital TVs, desktop computers, smart home devices, etc.

[0151] Figure 6 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure, such as Figure 6 As shown, the electronic device 600 may include a processor 610 and a memory 620, wherein the memory 620 stores a computer program 621, and when the computer program 621 is executed by the processor 610, the method provided by any of the above embodiments can be implemented, and its execution method and beneficial effects are similar, which will not be repeated here.

[0152] Of course, to simplify, Figure 6 Only some of the components related to the present invention in the electronic device 600 are shown, and components such as a bus, an input / output interface, an input device, and an output device are omitted. In addition, the electronic device 600 may also include any other appropriate components according to specific application conditions.

[0153] An embodiment of the present disclosure provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the method of any of the above embodiments can be implemented. The execution method and beneficial effects are similar and will not be repeated here.

[0154] The above-mentioned computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable 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 above.

[0155] The computer program may be written in any combination of one or more programming languages ​​to write program codes for performing the operations of the disclosed embodiments, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user electronic device, partially on the user device, as a separate software package, partially on the user electronic device and partially on a remote electronic device, or entirely on a remote electronic device or server.

[0156] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0157] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0158] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A keystroke sound suppression method, characterized in that: include: When the microphone is in an on state, in response to a user clicking a target key on the keyboard, obtaining an audio signal to be processed collected by the microphone and a target key identifier corresponding to the target key clicked by the clicking operation; Searching for a target key sound signal corresponding to the target key identifier from a preset key sound source library; Identifying a first audio signal in the audio signal to be processed whose similarity to the target key sound signal is greater than a preset threshold; Eliminating the first audio signal in the audio signal to be processed to obtain a first target audio signal; The first target audio signal is sent to an audio receiving device.

2. The method according to claim 1, characterized in that After eliminating the first audio signal in the audio signal to be processed to obtain a first target audio signal, the method further includes: Identify a second audio signal in the first target audio signal whose sound intensity is less than or equal to a preset noise intensity; Eliminating the second audio signal in the first target audio signal to obtain a second target audio signal; The second target audio signal is sent to an audio receiving device.

3. The method according to claim 2, characterized in that After identifying the second audio signal whose sound intensity is less than or equal to the preset noise intensity in the first target audio signal, the method further includes: Suppressing the sound intensity of the second audio signal to obtain a third audio signal, wherein the sound intensity of the third audio signal is less than a preset intensity, and the preset intensity is less than the preset noise intensity; determining the first target audio signal including the third audio signal as the third target audio signal; The third target audio signal is sent to an audio receiving device.

4. The method according to claim 1, characterized in that Before searching the preset key sound source library for the target key identification corresponding to the target key identification, the method further includes: Acquire a key sound signal of each key in the keyboard and a key identifier of each key collected by a microphone; For each key in the keyboard, matching the key sound signal of the key with the key identifier of the key, and constructing a mapping relationship between the key identifier and the key sound signal; A key sound source library is constructed based on the key identifiers of the keys in the keyboard, the key sound signals of the keys, and the mapping relationship.

5. The method according to claim 4, characterized in that The step of acquiring the key sound signal of each key in the keyboard collected by the microphone comprises: For each key in the keyboard, in response to multiple click operations on the key, obtaining an initial key sound signal generated by the key in each click operation collected by the microphone; Based on the initial key sound signal generated by each key, a key sound signal of each key is constructed.

6. The method according to claim 5, characterized in that The step of constructing the key sound signal of each key based on the initial key sound signal generated by each key comprises: For each key in the keyboard, initial key sound signals generated by the key under the multiple click operations are mixed to obtain a total audio signal generated by the key; Counting the number of clicks of the button in multiple click operations; Calculating a ratio of the total audio signal to the number of clicks; The ratio is determined as the key sound signal of the key.

7. The method according to claim 5, characterized in that The step of constructing the key sound signal of each key based on the initial key sound signal generated by each key comprises: For each initial key sound signal generated by each key, calculating the difference between the initial key sound signal and other initial key sound signals generated by the key; For each of the initial key sound signals, summing up the differences corresponding to the initial key sound signals to obtain the sum of the differences corresponding to the initial key sound signals; For each of the keys, searching for a minimum sum of differences among the sums of differences corresponding to the initial key sound signals of the keys; The minimum gap and any corresponding initial key sound signal are determined as the key sound signal of the key.

8. A keystroke sound suppression device, characterized in that: include: A first acquisition module is used to, when the microphone is in an on state, in response to a user clicking a target key on a keyboard, acquire an audio signal to be processed collected by the microphone and a target key identifier corresponding to the target key clicked by the clicking operation; A search module, used to search for a target key sound signal corresponding to the target key identifier from a preset key sound source library; A first recognition module, used to recognize a first audio signal in the audio signal to be processed, the first audio signal having a similarity with the target key sound signal greater than a preset threshold; A first elimination module, configured to eliminate the first audio signal in the audio signal to be processed to obtain a first target audio signal; The first sending module is used to send the first target audio signal to an audio receiving device.

9. An electronic device, characterized in that: include: A memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the keystroke sound suppression method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, the keystroke sound suppression method according to any one of claims 1 to 7 is implemented.