Keyboard and sound production control system and method thereof

By establishing a communication structure between the keyboard and the sound-producing device, the mechanical keyboard achieves diverse sound outputs and personalized settings, solving the problem of monotonous sound feedback in traditional mechanical keyboards and improving operational perception and audio configuration capabilities.

CN122018707APending Publication Date: 2026-05-12SHENZHEN MENGFENG ZHANQI TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHENZHEN MENGFENG ZHANQI TECHNOLOGY CO LTD
Filing Date
2026-01-26
Publication Date
2026-05-12

AI Technical Summary

Technical Problem

Existing mechanical keyboards offer limited and unadjustable sound feedback, lacking in tactile feedback and personalized expression. Their audio effects are monotonous, lacking stereo and surround sound, and their limited storage capacity prevents them from supporting diverse audio configurations.

Method used

It adopts a structure of host computer, main controller, slave controller and sound module. It realizes centralized management and dynamic configuration of audio data through communication between the keyboard and the sound device. It supports stereo and surround sound output, volume control, expands audio storage capacity, and realizes acoustic positioning by using dual-channel stereo and audio gain adjustment.

Benefits of technology

It achieves diverse sound output formats, improves the user experience, supports stereo, surround sound and acoustic positioning, enhances the intuitiveness and intelligence of human-computer interaction, and expands the configuration capabilities of audio data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122018707A_ABST
    Figure CN122018707A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of keyboards, and discloses a keyboard and a sound production control system and method.The sound production control system of the keyboard comprises an upper computer, the keyboard and sound production equipment, the keyboard comprises a master controller, and the sound production equipment comprises a slave controller and a sound production module; the upper computer is used for sending audio data to the main controller; the master controller is used for determining key position data corresponding to a key pressing instruction input by a user, and sending the key position data and all audio data to the slave controller; and the slave controller is used for determining corresponding target audio data according to the key position data, and sending the target audio data to the sound production module for output. The sound production control system of the keyboard realizes centralized management and dynamic configuration of audio data, realizes real-time sound feedback of keys, improves an operation perception effect, and supports stereo, surround sound and acoustic positioning effects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of keyboard technology, and more particularly to a keyboard and its sound control system and method. Background Technology

[0002] With the rapid development of mechanical keyboards in the computer peripheral field, their application has gradually expanded from niche scenarios such as professional e-sports and programmer input to the broad consumer market. Users' demands for mechanical keyboards are no longer limited to key feel, lifespan, and appearance lighting effects, but are increasingly concerned about their multimodal human-computer interaction experience. Existing keyboards rely on the keycaps bottoming out to produce sound, and the sound characteristics are determined by the hardware materials and cannot be adjusted. The sound output is limited, and the performance is poor in terms of sound feedback, operation perception, and personalized expression. Summary of the Invention

[0003] In view of this, embodiments of this application provide a keyboard and its sound control system and method, which can effectively solve the problems of poor performance of traditional mechanical keyboards in terms of sound feedback, operation perception and personalized expression.

[0004] In a first aspect, embodiments of this application provide a keyboard sound generation control system, including: a host computer, a keyboard, and a sound generation device, wherein the keyboard is communicatively connected to the host computer and the sound generation device, the keyboard includes a main controller, and the sound generation device includes a slave controller and a sound generation module; The host computer is used to send the audio data corresponding to all the keys on the keyboard to the main controller; The main controller is used to respond to a key press command input by the user, determine the key position data corresponding to the key press command, and send the key position data and all the audio data to the slave controller; The controller is used to determine the corresponding target audio data based on the button position data, and send the target audio data to the sound generation module; The sound generation module is used to process and output the target audio data.

[0005] In a second possible embodiment of the first aspect, the main controller is further configured to send the volume control command to the slave controller in response to the volume control command input by the user; The slave controller is used to adjust the audio volume output by the sound module according to the volume control command.

[0006] In a third possible embodiment of the first aspect, each of the buttons and the audio data corresponding to the buttons are associated with a unique identifier, and the button position data includes the identifier of the button. The main controller is also used to determine the key corresponding to the key press command and send the identifier corresponding to the key to the slave controller; The slave controller is used to determine the target audio data according to the identifier, combine the target audio data and the unprocessed audio data stream to obtain mixed audio data, and then process and output the mixed audio data.

[0007] In a fourth possible embodiment of the first aspect, the sound-generating device further includes a data conversion module, a first power amplifier filtering module, and a second power amplifier filtering module, wherein the sound-generating module includes a first sound-generating unit and a second sound-generating unit; The data conversion module is used to perform digital-to-analog conversion on the mixed audio data, and send the digital-to-analog converted mixed audio data to the first power amplifier filtering module and the second power amplifier filtering module respectively. The first power amplifier filtering module is used to amplify and filter the mixed audio data after digital-to-analog conversion and then send it to the first sound-generating unit; The second power amplifier filtering module is used to amplify and filter the mixed audio data after digital-to-analog conversion and then send it to the second sound-generating unit.

[0008] In a fifth possible embodiment of the first aspect, the key position data further includes the area of ​​the key on the keyboard; The controller is further configured to control the amplification factor of the target audio data and the time of sending it to the sound-generating module of the first power amplifier filter module and the second power amplifier filter module respectively according to the area of ​​the key on the keyboard, so that when the key press command is input in different areas, the sound-generating module outputs the target audio data with different sound effects.

[0009] In a sixth possible embodiment of the first aspect, the host computer includes a user interface; The user interface is used to respond to the user's management operations on the audio data, so as to update each audio data.

[0010] In a seventh possible embodiment of the first aspect, the sound-generating device further includes a memory; The main controller is also configured to perform verification processing on the audio data when it receives the audio data, and send the verified audio data to the slave controller; The slave controller is also used to store the received audio data in the memory and send a storage status instruction to the master controller based on the storage result.

[0011] In an eighth possible embodiment of the first aspect, the storage status instruction includes a storage success instruction and a storage failure instruction; The main controller is also used to determine that data transmission has failed under the condition that the audio data verification fails or the storage failure instruction is received, and to send the transmission failure instruction to the host computer. Upon receiving a transmission failure instruction, the host computer re-uploads the audio data to the main controller.

[0012] Secondly, embodiments of this application provide a keyboard sound control method, including: Obtain the audio data corresponding to all keys on the keyboard sent by the host computer; In response to a user's input of a key press command, the system determines the key position data corresponding to the key press command, sends the key position data and all the audio data to the sound-generating device, so that the sound-generating device can determine the corresponding target audio data based on the key position data, and output the target audio data after data processing.

[0013] Thirdly, embodiments of this application provide a keyboard, which is connected to a host computer and a sound-generating device, and the keyboard includes a main controller; The main controller is used to acquire audio data corresponding to all keys on the keyboard sent by the host computer; The main controller is also configured to respond to a key press command input by the user, determine the key position data corresponding to the key press command, send the key position data and all the audio data to the sound-generating device, so that the sound-generating device determines the corresponding target audio data based on the key position data, and outputs the target audio data after data processing.

[0014] The embodiments of this application have the following beneficial effects: This embodiment of a keyboard sound control system includes: a host computer, a keyboard, and a sound-generating device. The keyboard is connected to both the host computer and the sound-generating device. The keyboard includes a main controller, and the sound-generating device includes a slave controller and a sound-generating module. The host computer sends audio data corresponding to all keys on the keyboard to the main controller. The main controller responds to a user-input key press command, determines the key position data corresponding to the key press command, and sends the key position data and all audio data to the slave controller. The slave controller determines the corresponding target audio data based on the key position data and sends the target audio data to the sound-generating module. The sound-generating module processes the target audio data and outputs it. Based on the above scheme, this keyboard sound control system, through the host computer pre-distributing audio data corresponding to all keys to the main controller, achieves centralized management and dynamic configuration of audio resources, reflecting the diversity of sound output forms and personalized settings. After the main controller detects a button trigger, it immediately acquires the button position data and transmits the button position data along with all audio data to the slave controller. The slave controller then matches the corresponding target audio data based on the position data, and after mixing, drives the sound module to output, achieving real-time sound feedback, improving the operation perception effect, and supporting stereo, surround sound, and acoustic positioning effects. Attached Figure Description

[0015] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0016] Figure 1 This invention illustrates a schematic diagram of a keyboard sound-generating system in the prior art, according to an embodiment of this application. Figure 2 This paper shows a schematic diagram of a first structure of the keyboard sound control system according to an embodiment of the present application; Figure 3 A second structural schematic diagram of the keyboard's sound control system according to an embodiment of this application is shown; Figure 4 A schematic diagram of a first structure of the sound-generating device according to an embodiment of this application is shown; Figure 5 A second structural schematic diagram of the sound-generating device according to an embodiment of this application is shown; Figure 6 A schematic flowchart of a keyboard sound control method according to an embodiment of this application is shown.

[0017] Explanation of key component symbols: 100 - Keyboard sound control system; 110 - Host computer; 111 - User interface; 120 - Keyboard; 121 - Main controller; 130 - Sound device; 131 - Slave controller; 132 - Sound module; 133 - Memory; 1321 - First sound unit; 1322 - Second sound unit; 134 - Data conversion module; 135 - First power amplifier filtering module; 136 - Second power amplifier filtering module. Detailed Implementation

[0018] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments.

[0019] The components of the embodiments of this application described and illustrated in the accompanying drawings can be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of this application provided in the drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.

[0020] In the following text, the terms "comprising," "having," and their cognates, which may be used in various embodiments of this application, are intended only to indicate a particular feature, number, step, operation, element, component, or combination thereof, and should not be construed as primarily excluding the presence of one or more other features, numbers, steps, operations, elements, components, or combinations thereof, or adding the possibility of one or more combinations thereof. Furthermore, the terms "first," "second," "third," etc., are used only for distinguishing descriptions and should not be construed as indicating or implying relative importance.

[0021] Unless otherwise specified, all terms used herein (including technical and scientific terms) shall have the same meaning as commonly understood by one of ordinary skill in the art to which the various embodiments of this application pertain. Terms (such as those defined in commonly used dictionaries) shall be interpreted as having the same meaning as in their contextual meaning in the relevant technical field and shall not be construed as having an idealized or overly formal meaning, unless clearly defined in the various embodiments of this application.

[0022] The following detailed description of some embodiments of this application is provided in conjunction with the accompanying drawings. Unless otherwise specified, the following embodiments and features can be combined with each other.

[0023] like Figure 1As shown, existing keyboard sound systems mainly consist of a keyboard matrix, a main controller, a power amplifier, and speakers. The keyboard matrix detects key states in real time through full-key scanning, identifies the specific position of the key pressed by the user, and transmits this information to the main controller. The main controller is responsible for processing key inputs, determining key positions, and internally storing a small amount of audio data stream, typically prompt tones or simple sound effects. Audio output uses PWM (Pulse-Width Modulation). After the audio signal is output via PWM, it is sent to the power amplifier circuit. The power amplifier amplifies the signal and uses an external filtering circuit to filter out high-frequency noise to improve the output signal quality. Finally, the signal drives the speakers to work, converting the electrical signal into audible sound.

[0024] However, this system typically employs a mono output structure, equipped with only one speaker. The sound output direction is fixed, resulting in a monophonic audio effect that feels rather dull, lacking spatial and directional awareness, and unable to achieve advanced auditory experiences such as stereo, surround sound, or acoustic positioning. Furthermore, the system does not support stepless volume adjustment or remote master volume control, limiting the user experience. Due to the low resolution and lack of filtering optimization in the PWM output, audio distortion is high and sound quality is poor, only capable of basic sound production and unable to support high-quality music or complex sound effects playback. In addition, audio data is directly stored in the main controller's internal Flash memory, which, limited by the controller's storage capacity, makes it difficult to expand the number and length of audio files. It typically only supports a limited number of small audio segments, lacking flexible configuration capabilities.

[0025] To address the aforementioned problems, this application provides a keyboard and its sound control system and method, converting single-channel audio to stereo, enabling acoustic localization and allowing the human ear to distinguish the different sound effects of keystrokes from different areas of the keyboard. It directly converts the original digital data stream signal into an analog signal, achieving efficient, low-latency audio data conversion and output, resulting in low distortion and making the audio signal closer to the original sound. Furthermore, the audio data is directly stored in the internal memory of the sound-generating device, solving the problem of being limited by the storage capacity of the main control chip, which restricts the expansion of the number and length of audio segments, typically supporting only a limited number of small audio segments and lacking flexible configuration capabilities. This application can store more than 80 segments of 50-byte audio data. Independent volume control is also possible. This application primarily addresses the shortcomings of the existing technology.

[0026] The sound control system 100 of the keyboard will be described below with reference to some specific embodiments.

[0027] Figure 2A schematic diagram of a keyboard sound control system 100 according to an embodiment of this application is shown. Exemplarily, the keyboard sound control system 100 includes: a host computer 110, a keyboard 120, and a sound-generating device 130. The keyboard 120 is communicatively connected to both the host computer 110 and the sound-generating device 130. The keyboard 120 includes a main controller 121, and the sound-generating device 130 includes a slave controller 131 and a sound-generating module 132.

[0028] Exemplary, the host computer 110 and keyboard 120 can communicate via a USB (Universal Serial Bus) interface, supporting hot-swapping and plug-and-play functionality. The keyboard 120 and sound-generating device 130 can communicate via SPI (Serial Peripheral Interface), meeting the requirements for real-time audio data forwarding and rapid command response. Each key in the keyboard 120 has corresponding audio data; when a user presses a key, the system identifies its position information or unique identifier, triggering the playback of the target audio data bound to that key.

[0029] In this embodiment, the host computer 110 sends the audio data corresponding to all keys on the keyboard 120 to the main controller 121. The main controller 121, in response to a user-input key press command, determines the key position data corresponding to the key press command and sends the key position data and all audio data to the slave controller 131. The slave controller 131 determines the corresponding target audio data based on the key position data and sends the target audio data to the sound generation module 132. The sound generation module 132 processes the target audio data and outputs it. The host computer 110 includes, but is not limited to, a personal computer (PC), a laptop computer, a tablet computer, etc. Both the main controller 121 and the slave controller 131 include, but are not limited to, a microcontroller unit (MCU), a Bluetooth integrated circuit (Bluetooth IC), etc.

[0030] In one embodiment, such as Figure 3 As shown, the host computer 110 includes a user interface 111. The user interface 111 is used to respond to user operations on audio data management, updating various audio data items. In this embodiment, the user interface 111 is a graphical application or web-based configuration platform running on the host computer 110, providing intuitive and convenient human-computer interaction functions, enabling users to personalize the audio data associated with each key on the keyboard 120. The user interface 111 responds to user operations on audio data management, including but not limited to adding audio data, deleting audio data, and replacing the audio data corresponding to a key.

[0031] In one embodiment, the host computer 110 initially performs automatic initialization and starts background operation. The host computer 110 periodically checks whether a keyboard 120 is connected to the host computer 110 via a USB interface. If no connection is detected, no audio data needs to be sent. If a keyboard 120 is detected, audio data is sent to the keyboard 120 via the USB interface.

[0032] In one embodiment, the main controller 121 is further configured to perform verification processing on the received audio data and send the verified audio data to the slave controller 131 to ensure data integrity and transmission reliability.

[0033] For example, in one embodiment, the main controller 121 powers on, configures the clock, and initializes internal peripherals, including but not limited to TIM, ADC, SPI, USB, GPIO, DAM, etc. The main controller 121 configures a USB interrupt callback function, which is mainly used to recalculate the checksum of the received audio data according to the verification algorithm specified in the protocol (such as CRC16); compare the calculated result with the original checksum attached to the audio data (generated by the host computer 110 and sent along with the audio data); if the checksums match, the verification is deemed successful, the main controller 121 marks the audio data segment as valid, and prepares to forward it; if the checksums do not match, the verification is deemed unsuccessful.

[0034] In another embodiment, such as Figure 4 As shown, the sound-generating device 130 also includes a memory 133; the slave controller 131 is further used to store the received audio data in the memory 133 and send a storage status command to the master controller 121 according to the storage result. In this embodiment, the memory 133 is electrically connected to the slave controller 131 and is used to independently store the audio data forwarded by the master controller 121. Compared with the traditional solution of storing audio data centrally in the internal Flash of the master controller 121, it can pre-store hundreds of audio data segments, greatly improving the scalability and flexibility of audio data configuration. The memory 133 includes, but is not limited to, external Flash, SPI NOR Flash (Serial Peripheral Interface NOR Flash), and other storage units.

[0035] In one embodiment, the storage status instruction includes a storage success instruction and a storage failure instruction; the main controller 121 is further configured to determine that data transmission has failed if audio data verification fails or a storage failure instruction is received, and send a transmission failure instruction to the host computer 110; upon receiving the transmission failure instruction, the host computer 110 re-uploads the audio data to the main controller 121. When the host computer 110 receives multiple consecutive transmission failure instructions, it terminates the current audio data transmission.

[0036] As an example, each key and its corresponding audio data is assigned a unique identifier, and the key position data includes the key's identifier. For instance, a unique serial number is assigned to all keys and their corresponding audio data.

[0037] In one embodiment, the main controller 121 is further configured to determine the key corresponding to the key press command and send the identifier corresponding to the key to the slave controller 131. In this embodiment, when the user inputs a key press command, the main controller 121 determines the specific key that was pressed by scanning the keyboard 120 matrix and obtains the unique identifier corresponding to the key.

[0038] In one embodiment, the master controller 121 initializes the keyboard matrix 120 to start it working, and periodically polls and scans the global matrix of the keyboard 120 using a timer. If a key press is detected, the master controller obtains the key and the serial number of the corresponding audio data, and sends the serial number to the slave device via the SPI protocol.

[0039] In another embodiment, controller 131 is used to determine target audio data based on an identifier, combine the target audio data with an unprocessed audio data stream to obtain mixed audio data, and then process and output the mixed audio data.

[0040] In this embodiment, the controller 131 can determine the target audio data corresponding to the received identifier and start the playback process. Based on this, if there are other audio data streams playing but not yet processed in the current sound-emitting device 130 (for example, the sound effect triggered by the previous button is still playing), the controller 131 superimposes the target audio data and the unprocessed audio data stream according to the time sequence to generate a mixed audio data stream.

[0041] In one embodiment, such as Figure 5As shown, the sound-generating device 130 also includes a data conversion module 134, a first power amplifier filtering module 135, and a second power amplifier filtering module 136. The sound-generating module 132 includes a first sound-generating unit 1321 and a second sound-generating unit 1322. Exemplarily, the data conversion module 134 performs digital-to-analog conversion on the mixed audio data and sends the converted mixed audio data to the first power amplifier filtering module 135 and the second power amplifier filtering module 136 respectively. The first power amplifier filtering module 135 amplifies and filters the converted mixed audio data before sending it to the first sound-generating unit 1321. The second power amplifier filtering module 136 amplifies and filters the converted mixed audio data before sending it to the second sound-generating unit 1322.

[0042] In this embodiment, the data conversion module 134 includes a left-channel digital-to-analog converter (DACL) and a right-channel digital-to-analog converter (DACR). The controller 131 can transmit mixed audio data to the DACL and DACR for digital-to-analog conversion via internal DMA (Internal Direct Memory Access). Both the first power amplifier filtering module 135 and the second power amplifier filtering module 136 include power amplifiers and filters, used to amplify the analog signals converted from the DACL and DACR, respectively, to amplify the audio data, and to filter the signals to remove some high-frequency noise. Finally, the signals are output to the first sound unit 1321 and the second sound unit 1322, respectively, for audio playback. The first sound unit 1321 is a left speaker or left horn, and the second sound unit 1322 is a right speaker or right horn, responsible for converting the analog signals into audible sound signals.

[0043] In one embodiment, the main controller 121 is further configured to send a volume control command to the slave controller 131 in response to a user-inputted volume control command; the slave controller 131 is configured to adjust the audio volume output by the sound module 132 according to the volume control command. In this embodiment, the main controller 121 sends the volume control command via the SPI protocol, and the slave controller 131 periodically receives the volume control command sent by the host via a timer, synchronizes it to the volume control API in real time, and changes the gain of the power amplifier of the target audio data, thereby realizing volume adjustment and dynamically adjusting the intensity of the sound emitted by the keyboard 120.

[0044] Exemplary, the key position data also includes the area of ​​the key in the keyboard 120, for example, the area in the keyboard 120 includes the left area, right area, center area, front left area, front right area, back left area, back right area, etc.

[0045] In one embodiment, the controller 131 is further configured to control the amplification factor of the first power amplifier filter module and the second power amplifier filter module and the time of sending the target audio data to the sound generation module 132 according to the area of ​​the key in the keyboard 120, so that when the key is pressed in different areas, the sound generation module 132 outputs the target audio data with different sound effects.

[0046] In this embodiment, if the button is located in the left area, the first power amplifier filter module is increased to the first gain, i.e., the volume of the left speaker is increased, and the amplified and filtered target audio signal is sent to the left speaker a first preset time in advance, so that the human ear perceives the sound source as coming from the left side of the keyboard 120. If the button is located in the front left area, the first power amplifier filter module is increased to the second gain, and the amplified and filtered target audio signal is sent to the left speaker a second preset time in advance, so that the human ear perceives the sound source as coming from the front left area of ​​the keyboard 120. If the button is located in the rear left area, the first power amplifier filter module is increased to the third gain, and the amplified and filtered target audio signal is sent to the left speaker a third preset time in advance, so that the human ear perceives the sound source as coming from the rear left area of ​​the keyboard 120. Wherein, the second gain is greater than the first gain, the first gain is greater than the third gain, the second preset time is greater than the first preset time, and the first preset time is greater than the third preset time.

[0047] Similarly, if the button is located in the right area, the second power amplifier filter module is boosted to the fourth gain, increasing the volume of the right speaker and sending the amplified and filtered target audio signal to the right speaker a fourth preset time in advance, so that the human ear perceives the sound source as coming from the right side of keyboard 120. If the button is located in the front right area, the second power amplifier filter module is boosted to the fifth gain, and the amplified and filtered target audio signal is sent to the right speaker a fourth preset time in advance, so that the human ear perceives the sound source as coming from the front right area of ​​keyboard 120. If the button is located in the rear right area, the first power amplifier filter module is boosted to the sixth gain, and the amplified and filtered target audio signal is sent to the right speaker a sixth preset time in advance, so that the human ear perceives the sound source as coming from the rear right area of ​​keyboard 120. The fifth gain is greater than the fourth gain, the fourth gain is greater than the sixth gain, the fifth preset time is greater than the fourth preset time, and the fourth preset time is greater than the sixth preset time. If the button is located in the middle area, the balanced gain and time synchronization are maintained to simulate centered sound.

[0048] It is understood that this application achieves acoustic localization through dual-channel stereo output, audio gain, and output time adjustment, enabling the human ear to clearly perceive sound coming from multiple directions such as left, right, center, front left, front right, rear left, and rear right of the keyboard 120. Users can identify the spatial position of the keys by hearing, significantly enhancing the intuitiveness and intelligence of human-computer interaction.

[0049] Figure 6 A schematic flowchart of a keyboard sound control method according to an embodiment of this application is shown. Exemplarily, the keyboard sound control method includes: S210: Obtain the audio data corresponding to all keys on the keyboard 120 sent by the host computer 110.

[0050] S220: In response to a key press command input by the user, determine the key position data corresponding to the key press command, and send the key position data and all audio data to the sound-generating device 130, so that the sound-generating device 130 can determine the corresponding target audio data based on the key position data, process the target audio data and output it.

[0051] It is understood that the system in this embodiment corresponds to the keyboard sound control method in the above embodiment, and the options in the above embodiment are also applicable to this embodiment, so they will not be described again here.

[0052] This application also provides a keyboard 120, which is connected to a host computer 110 and a sound-generating device 130. The keyboard 120 includes a main controller 121. Exemplarily, the main controller 121 is used to acquire audio data corresponding to all keys of the keyboard 120 sent by the host computer 110. The main controller 121 is also used to respond to a key press command input by the user, determine the key position data corresponding to the key press command, and send the key position data and all audio data to the sound-generating device 130, so that the sound-generating device 130 determines the corresponding target audio data based on the key position data, processes the target audio data, and outputs it.

[0053] In the several embodiments provided in this application, it should be understood that the disclosed systems and methods can also be implemented in other ways. The system embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings show the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that, in alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and combinations of blocks in the block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

[0054] In addition, the functional modules or units in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0055] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a smartphone, personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application.

[0056] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.

Claims

1. A keyboard sound generation control system, characterized in that, include: The system includes a host computer, a keyboard, and a sound-generating device. The keyboard is communicatively connected to both the host computer and the sound-generating device. The keyboard includes a main controller, and the sound-generating device includes a slave controller and a sound-generating module. The host computer is used to send the audio data corresponding to all the keys on the keyboard to the main controller; The main controller is used to respond to a key press command input by the user, determine the key position data corresponding to the key press command, and send the key position data and all the audio data to the slave controller; The controller is used to determine the corresponding target audio data based on the button position data, and send the target audio data to the sound generation module; The sound generation module is used to process and output the target audio data.

2. The keyboard sound control system according to claim 1, characterized in that, The main controller is also configured to send the volume control command to the slave controller in response to the volume control command input by the user. The slave controller is used to adjust the audio volume output by the sound module according to the volume control command.

3. The keyboard sound control system according to claim 1, characterized in that, Each button and its corresponding audio data are assigned a unique identifier, and the button position data includes the button's identifier. The main controller is also used to determine the key corresponding to the key press command and send the identifier corresponding to the key to the slave controller; The slave controller is used to determine the target audio data according to the identifier, combine the target audio data and the unprocessed audio data stream to obtain mixed audio data, and then process and output the mixed audio data.

4. The keyboard sound control system according to claim 3, characterized in that, The sound-generating device further includes a data conversion module, a first power amplifier filtering module, and a second power amplifier filtering module. The sound-generating module includes a first sound-generating unit and a second sound-generating unit. The data conversion module is used to perform digital-to-analog conversion on the mixed audio data, and send the digital-to-analog converted mixed audio data to the first power amplifier filtering module and the second power amplifier filtering module respectively. The first power amplifier filtering module is used to amplify and filter the mixed audio data after digital-to-analog conversion and then send it to the first sound-generating unit; The second power amplifier filtering module is used to amplify and filter the mixed audio data after digital-to-analog conversion and then send it to the second sound-generating unit.

5. The keyboard sound control system according to claim 4, characterized in that, The key position data also includes the area of ​​the key on the keyboard; The controller is further configured to control the amplification factor of the target audio data and the time of sending it to the sound-generating module of the first power amplifier filter module and the second power amplifier filter module respectively according to the area of ​​the key on the keyboard, so that when the key press command is input in different areas, the sound-generating module outputs the target audio data with different sound effects.

6. The keyboard sound control system according to claim 1, characterized in that, The host computer includes a user interface; The user interface is used to respond to the user's management operations on the audio data, so as to update each audio data.

7. The keyboard sound control system according to claim 1, characterized in that, The sound-generating device also includes a memory; The main controller is also configured to perform verification processing on the audio data when it receives the audio data, and send the verified audio data to the slave controller; The slave controller is also used to store the received audio data in the memory and send a storage status instruction to the master controller based on the storage result.

8. The keyboard sound control system according to claim 7, characterized in that, The storage status instructions include storage success instructions and storage failure instructions; The main controller is also used to determine that data transmission has failed under the condition that the audio data verification fails or the storage failure instruction is received, and to send the transmission failure instruction to the host computer. Upon receiving a transmission failure instruction, the host computer re-uploads the audio data to the main controller.

9. A method for controlling the sound output of a keyboard, characterized in that, include: Obtain the audio data corresponding to all keys on the keyboard sent by the host computer; In response to a user's input of a key press command, the system determines the key position data corresponding to the key press command, sends the key position data and all the audio data to the sound-generating device, so that the sound-generating device can determine the corresponding target audio data based on the key position data, and output the target audio data after data processing.

10. A keyboard, characterized in that, The keyboard is connected to the host computer and the sound-generating device respectively, and the keyboard includes a main controller; The main controller is used to acquire audio data corresponding to all keys on the keyboard sent by the host computer; The main controller is also configured to respond to a key press command input by the user, determine the key position data corresponding to the key press command, send the key position data and all the audio data to the sound-generating device, so that the sound-generating device determines the corresponding target audio data based on the key position data, and outputs the target audio data after data processing.