A voice chip capable of replacing the voice content inside the chip online

By introducing the import module, processing module and voice replacement module into the voice chip, and using wireless transmission and downloader to realize online replacement of voice content, it solves the problems of high voice chip replacement cost and network dependence in the existing technology, and improves the replacement efficiency. and safety, suitable for simultaneous replacement of multiple voice chips.

CN114639376BActive Publication Date: 2024-10-25SHENZHEN WAYTRONIC ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210328364.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-30
Publication Date
2024-10-25
Estimated Expiration
2042-03-30

AI Technical Summary

Technical Problem

When the existing voice content needs to be replaced, the existing voice chip has high usage and maintenance costs. Moreover, the voice content cannot be replaced in time in an unstable or poor network environment, and the safety and convenience of data replacement cannot be guaranteed, especially in The speed will drop significantly when replacing different regions.

Method used

By introducing the import module, processing module and voice replacement module into the voice chip, wireless transmission and downloader are used to realize online replacement of voice content, and the preset SPI and UART controller are used to adjust the data transmission speed to ensure the stability and stability of the transmission process. security, and refine the replacement conditions through the voice replacement module to improve the accuracy of replacement.

Benefits of technology

It enables direct replacement of voice content in the voice chip in most scenarios, improves replacement efficiency and safety, reduces the size of stored voice data, increases the number of storable voices, and enables rapid replacement of voice content in harsh environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114639376B_ABST
    Figure CN114639376B_ABST
Patent Text Reader

Abstract

The present invention provides a voice chip capable of replacing the voice content inside the chip online, comprising: an import module for receiving a voice control signal from a user end based on a preset wireless transmission device; a processing module for receiving and signal-converting the voice control signal to generate voice command data; a voice replacement module for receiving the voice replacement data from the user end, matching the voice replacement data with corresponding voice command data, and replacing the voice data of the voice chip through the matched voice command data; through wireless transmission and downloading, the use scenarios are expanded, the problems of difficulty in replacing the built-in voice of the voice chip in the scenario of poor signal conditions and inability to efficiently replace the voice content in multiple voice chips at the same time are overcome, the chip voice data replacement speed and replacement safety are improved through the processing module, and the accuracy of voice replacement is improved through the voice replacement module.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electronic core industry, and in particular to a voice chip capable of replacing the voice content inside the chip online. Background Art

[0002] At present, with the popularization of intelligent voice applications, the requirements for voice processing are getting higher and higher. In daily usage scenarios, such as the existing Xiaoai speakers and other intelligent wake-up services and voice-to-text auxiliary services, including voice broadcast warnings and other services, the frequency of use is becoming more and more frequent, and the usage scenarios are becoming more and more extensive. Especially for the processing of voice broadcast, most chips usually need to set up complex programs and perform maintenance when the voice needs to be changed remotely. The cost of use is too high, and the degree of dependence on the network is high. When the network is unavailable or the network is poor, the voice content cannot be changed in time; such as the "A voice chip recognition and voice software loading system and method in a home gateway" with application number "201710859956.0", the initialization function is driven by voice The module establishes a WAN connection with the upper-level application to call the voice chip function through a public function; it focuses on transferring the chip control code to the interconnected program to achieve convenient control, but its maintenance cost is high and it cannot guarantee the security and convenience of data replacement. In particular, when replacing in different regions, its speed will drop significantly. The present invention uses the chip's own communication protocol to improve the communication speed while achieving stability and reliability. It can simultaneously face multiple voice chips through wireless transmission to replace the voice content in the chip; it can also use the downloader to overcome the harsh environment and realize the replacement of the voice content in the chip, and compress the qualified voice data during the storage process to reduce capacity occupancy, thereby ensuring the safety of the entire replacement process and controlling the speed transmission. Summary of the invention

[0003] The present invention provides a voice chip capable of replacing the voice content inside the chip online, so as to solve the problem that the voice content in the voice chip can be directly replaced in most scenarios, and at the same time, the voice storage size can be compressed to increase the number of storable voices while ensuring the replacement efficiency and safety.

[0004] The present invention provides a voice chip capable of replacing the voice content inside the chip online, comprising:

[0005] Import module: used to receive the voice control signal from the user end based on the preset wireless transmission device;

[0006] Processing module: used for receiving and converting the voice control signal to generate voice command data;

[0007] Voice replacement module: used to receive voice replacement data from the user end, match the voice replacement data with corresponding voice command data, and replace the voice data of the voice chip through the matched voice command data.

[0008] As an embodiment of the present technical solution, the import module includes:

[0009] Wireless transmission unit, downloader and I / O unit; wherein,

[0010] The wireless transmission unit is wirelessly connected to the user end through a preset wireless transmission device to perform data transmission; wherein,

[0011] The user terminal is connected to a plurality of wireless transmission devices via a wireless connection;

[0012] The wireless connection method includes at least network connection and Bluetooth connection; wherein,

[0013] The network connection includes at least a wireless network connection and a local area network connection;

[0014] The data transmission is that the user terminal transmits the voice control signal through a preset node transmission method; wherein,

[0015] The node transmission mode includes a single-node transmission mode and a multi-node transmission mode;

[0016] The multi-node transmission is a multi-node dynamic transmission, which is used to transmit voice control signals to multiple voice chips through a user terminal within a preset transmission condition; wherein,

[0017] The transmission conditions at least include a simultaneous transmission condition and a batch transmission condition;

[0018] The downloader is used to perform replacement preprocessing on the voice control signal;

[0019] The I / O unit is used to connect the downloader and the processing module, obtain the voice control signal, and transmit the voice control signal from the downloader to the processing module;

[0020] The I / O unit is also used to maintain the level stability of the processing module; wherein,

[0021] The level stability includes: high level stability and low level stability.

[0022] As an embodiment of the present technical solution, a preprocessing module is further included between the import module and the processing module, and a preprocessing module is further included between the import module and the processing module, and the preprocessing module includes:

[0023] A transmission unit and a control unit; wherein,

[0024] The transmission unit is used to perform communication judgment on the received voice control signal based on a preset UART transmitter, obtain the communication mode corresponding to the voice control signal, and transmit the voice control signal to the control unit according to the communication mode; wherein,

[0025] The communication mode includes at least a serial communication mode and a parallel communication mode;

[0026] The control unit is used to adjust the data transmission speed based on the preset SPI controller and communication mode, and transmit the received voice control signal to the processing module according to the data transmission speed; wherein,

[0027] The adjusting the signal transmission speed based on the preset SPI controller and communication mode includes: calculating the transmission speed corresponding to the voice control signal according to the preset SPI controller and communication mode, comparing the transmission speed with the preset safe transmission speed threshold, and determining the comparison result; wherein,

[0028] When the comparison result shows that the transmission speed is greater than the preset safe transmission speed threshold, the signal transmission speed is controlled within the safe transmission speed threshold range;

[0029] When the comparison result is that the transmission speed is less than or equal to the preset safe transmission speed threshold, the transmission speed is maintained and the transmission is continued.

[0030] As an embodiment of the present technical solution, the preprocessing module further includes:

[0031] A speech processing unit and a storage unit; wherein,

[0032] The voice processing unit is used to read the signal format type of the voice control signal, and determine whether the signal format type is a replaceable format signal, and determine the determination result; wherein,

[0033] When the judgment result is that the data format type is a non-replaceable format signal, the voice processing unit performs format conversion processing on the corresponding voice control signal;

[0034] When the judgment result is that the signal format type is a replaceable format signal, the voice control signal is replaced;

[0035] The memory is used to store the voice control signal, and compress and store the voice control signal according to a preset compression constraint condition; wherein,

[0036] The compression constraint condition includes at least a compression format and a compression size.

[0037] As an embodiment of the present technical solution, the processing module includes:

[0038] Signal conversion unit: used to convert the received voice control signal to generate voice command data; wherein,

[0039] The signal conversion of the received voice control signal comprises the following steps:

[0040] Step S01: Obtain the playing status of the voice module by performing a playing detection on the voice module; wherein,

[0041] The playing state includes: continuous playing state and stopped playing state;

[0042] Step S02: filtering the received voice control signal to obtain signal data, and judging the data composition type of the signal data to determine the type judgment result; wherein,

[0043] The signal data includes a command signal and an address signal;

[0044] The data composition types of the signal data include: a first data composition type, a second data composition type, and a third data composition type; wherein,

[0045] The first data composition type is that the signal data only includes command signals;

[0046] The second data composition type is that the signal data includes a command signal and an address signal;

[0047] The third data composition type is that the signal data only includes address signals;

[0048] Step S03: When the judgment result is that the data composition type of the signal data is the first data composition type or the third data composition type, the continuous playback state is terminated, and the command signal in the first data composition type or the address signal in the third data composition type is compared and matched with the single signal in the preset single signal comparison table one by one to obtain a matching result; wherein,

[0049] The single signal comparison table includes a command signal comparison table and an address signal comparison table;

[0050] When the matching result is that the command signal in the first data composition type or the address signal in the third data composition type matches a single signal in the preset single signal comparison table, single signal control data is generated;

[0051] When the matching result is that the command signal in the first data composition type or the address signal in the third data composition type does not match the single signal in the preset single signal comparison table, single signal termination data is generated;

[0052] Step S04: when the data composition type of the signal data is the second data composition type, voice command analysis is performed according to the command signal and address signal corresponding to the voice control signal; wherein,

[0053] The voice command analysis includes: matching the command signal and the address signal of the second data composition type to determine the signal code; combining the signal code, the command signal and the address signal in a preset combination order to obtain the command signal, and performing a comparison analysis based on the command signal and a preset command table to obtain the corresponding voice command data; wherein,

[0054] The combination sequence is command signal, signal serial code, and address signal.

[0055] As an embodiment of the present technical solution, the voice instruction data includes:

[0056] Connection instruction data, playback instruction data and status instruction data; among which,

[0057] The connection instruction data is used to insert and connect the replaceable voice data to the target connection node in the played voice;

[0058] The play instruction data is used to control the play time of the played voice based on the play stage of the current played voice;

[0059] The state instruction data is used to change the playing state of the played voice; wherein the playing state at least includes loop playing, single playing and random playing.

[0060] As an embodiment of the present technical solution, the voice replacement module includes a first replacement unit and a broadcast unit; wherein,

[0061] The first replacement unit is used to perform semantic analysis on the received voice command data based on a preset big data center, generate a voice control command set, prioritize the voice control commands in the voice control command set, obtain the sorting result, and generate a replacement order according to the sorting result; wherein,

[0062] The voice control instruction set includes: connection instructions, play instructions and status instructions;

[0063] The voice control command priorities from high to low include: status command, play command, connection command;

[0064] The replacement sequence at least includes a replacement step and a strategy sequence number.

[0065] As an embodiment of the present technical solution, the processing module further includes a one-line serial port unit; the one-line serial port unit includes:

[0066] Duration ratio subunit: used to obtain the conversion duration when the processing module converts the voice control signal, and calculate the duration ratio of the high-level conversion duration to the low-level conversion duration in the conversion duration;

[0067] The level state subunit is used to determine the corresponding data bit according to the time length ratio; wherein the data bit is used to describe the level state of the data line transmitting data at a high level and a low level respectively during serial communication;

[0068] Timing subunit: used to generate a corresponding timing diagram through the data bits, and obtain the transmission timing of the voice command data based on the timing diagram;

[0069] Transmission subunit: used to determine the transmission time sequence and single transmission size of the voice command data according to the timing.

[0070] As an embodiment of the present technical solution, the first control unit is further used to receive voice replacement data from the user terminal, obtain a data sequence number of the voice replacement data, and match the data sequence number with the policy sequence number to generate a matching result; wherein,

[0071] When the matching result is a matching failure, the replacement sequence is adjusted;

[0072] When the matching result is a successful match, the voice replacement data is replaced with the initial voice data according to the replacement sequence, and the voice is played through a preset player;

[0073] The voice change data includes voice change content, voice broadcast change type and voice change volume;

[0074] The player includes at least an onomatopoeia player and a speaker.

[0075] As an embodiment of the present technical solution, the replacement pre-processing includes the following steps:

[0076] Used to replace pre-processing of voice control signals;

[0077] Step 1: Acquire the voice of the user end to convert the voice content, obtain the voice content, and create a voice source file according to the voice content, generate a voice control signal, and transmit it to the downloader;

[0078] Step 2: Detecting the connection status between the downloader and the I / O unit by connecting the downloader to the I / O unit; wherein the connection status includes an input state and a floating state;

[0079] Step three: According to the connection status and the preset power supply comparison table, the safe power supply data is screened out, the downloader is safely powered according to the safe power supply data, and the voice control signal is transmitted to the processing module through the I / O unit.

[0080] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description and the accompanying drawings.

[0081] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0082] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0083] Figure 1 This is a functional schematic diagram of a voice chip capable of online replacing the voice content inside the chip in an embodiment of the present invention;

[0084] Figure 2 It is a flow chart of converting a received voice control signal in a voice chip capable of online replacing the voice content inside the chip according to an embodiment of the present invention;

[0085] Figure 3 The present invention is a flowchart of replacing preprocessing in a voice chip capable of online replacing voice content inside the chip in an embodiment of the present invention. DETAILED DESCRIPTION

[0086] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0087] It should be noted that when a component is referred to as being "fixed to" or "disposed on" another component, it can be directly on the other component or indirectly on the other component. When a component is referred to as being "connected to" another component, it can be directly or indirectly connected to the other component.

[0088] It should be understood that the orientation or position relationship indicated by terms such as "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside" and "outside" are based on the orientation or position relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation, and therefore cannot be understood as a limitation on the present invention.

[0089] In addition, it should be noted that, in this article, relational terms such as first and second, etc. 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, and "multiple" means two or more, unless otherwise clearly and specifically limited. 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.

[0090] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

[0091] The present invention can wirelessly replace the voice contents of multiple voice chips at the same time through an import module, and can also realize network-free voice content replacement in different environments through a downloader; the data transmission efficiency is improved through SPI and UART, and the power supply stability of the chip itself during the transmission process is guaranteed; the voice control signal is received through the processing module, and the accuracy of the voice control signal transmission is guaranteed; through the voice replacement module, the voice replacement conditions are refined, and the accuracy of the voice replacement is improved.

[0092] Embodiment 1:

[0093] The embodiment of the present invention provides a voice chip capable of replacing voice content inside the chip online, including:

[0094] Import module: used to receive the voice control signal from the user end based on the preset wireless transmission device;

[0095] Processing module: used for receiving and converting the voice control signal to generate voice command data;

[0096] Voice replacement module: used to receive voice replacement data from the user end, match the voice replacement data with corresponding voice command data, and replace the voice data of the voice chip according to the matched voice command data;

[0097] The working principle of the above technical solution is as follows: in the operation of the voice chip, data is usually processed according to the built-in preset program, and different voice reminders are given for different scenes through the preset voice data. Sometimes, when the voice data inside the chip is replaced, the chip of the device needs to be replaced, or it is controlled through wireless transmission through a preset loading system as in "a voice chip recognition and voice software loading system and method in a home gateway". However, its control speed is deeply affected by the scene environment, and it has strong limitations, low risk resistance, and slow transmission speed. In the above technical solution, if Figure 1 As shown, an import module, a processing module and a voice replacement module are provided, aiming at enabling users to realize online replacement of voice content of one or more voice chips through wireless transmission, converting voice control signals into voice command data through the processing module, matching the voice command data with the voice online module obtained by the user end through the voice replacement module, determining the replacement steps, and completing the replacement; at the same time, different uses in different scenes in different areas are regulated by a preset downloader, and the replaced voice files are pre-set, the downloader is connected to the interface device, and transmitted to the processing device, and the voice files are processed. The voice files here can be modified by a preset program to modify the working logic of the voice chip, or can be changed The corresponding voice data in the built-in data; finally, the voice is played through the voice replacement module; wherein, the import module also includes a status indicator and a copy indicator. Before the downloader is connected to the import module, the status indicator is constant and the copy indicator is off. When the downloader is connected to the import module, the status indicator flashes. When the downloader is connected to the import module and performs file transfer, the status indicator and the copy indicator both flash. When the file transfer is completed, the status indicator is always on, and the copy indicator is always on for a preset period of time, and the voice replacement is successful at this time;

[0098] The beneficial effects of the above technical solution are: by importing the wireless transmission and downloader of the module, the usage scenarios are expanded, the efficiency of the user end in controlling multiple voice chips at the same time to replace the voice content is enhanced, the problem of difficult built-in voice replacement of the voice chip in scenarios with poor signal conditions is overcome, and the chip voice data replacement speed and replacement safety are improved through the processing module and the voice replacement module, and the accuracy of voice replacement is improved.

[0099] Embodiment 2:

[0100] In one embodiment, the import module includes:

[0101] Wireless transmission unit, downloader and I / O unit; wherein,

[0102] The wireless transmission unit is wirelessly connected to the user end through a preset wireless transmission device to perform data transmission; wherein,

[0103] The user terminal is connected to a plurality of wireless transmission devices via a wireless connection;

[0104] The wireless connection method includes at least network connection and Bluetooth connection; wherein,

[0105] The network connection includes at least a wireless network connection and a local area network connection;

[0106] The data transmission is that the user terminal transmits the voice control signal through a preset node transmission method; wherein,

[0107] The node transmission mode includes a single-node transmission mode and a multi-node transmission mode;

[0108] The multi-node transmission is a multi-node dynamic transmission, which is used to transmit voice control signals to multiple voice chips through a user terminal within a preset transmission condition; wherein,

[0109] The transmission conditions at least include a simultaneous transmission condition and a batch transmission condition;

[0110] The multi-node dynamic transmission comprises the following steps:

[0111] Step S10: The user terminal sends a voice control signal to a preset number of voice chips within a first preset time, where the preset number is a number that changes dynamically within the first preset time, and obtains a voice chip node group {t1, t2, ..., t m}, establish the node speed prediction equation:

[0112]

[0113] in, is the speed at which the jth voice chip node transmits the ith voice control signal within the preset time, is the speed at which the jth voice chip node transmits the i-1th voice control signal within the preset time, θ is the control speed, μ j is the transmission speed influencing parameter of the jth voice chip node, is the node speed with the fastest transmission speed among all current nodes; i, j are variables, and 2≤i≤n,1≤j≤m;

[0114] Step S20: Determine the transmission speed Is it less than the preset speed ρ j, establish the transmission speed optimization equation:

[0115]

[0116] in, The optimized speed of transmitting the i-th voice control signal for the j-th voice chip node, is the switching function, ρ j is the reference speed of the jth voice chip node transmission, The fastest speed for transmitting the i-1th speech control signal;

[0117] Step S30: sending a voice control signal to each voice chip within a preset time according to the optimized speed;

[0118] The downloader is used to perform replacement preprocessing on the voice control signal;

[0119] The I / O unit is used to connect the downloader and the processing module, obtain the voice control signal, and transmit the voice control signal from the downloader to the processing module;

[0120] The I / O unit is also used to maintain the level stability of the processing module; wherein,

[0121] The level stability includes: high level stability and low level stability;

[0122] The working principle of the above technical scheme is as follows: in the existing technical scheme, when replacing the voice content in the voice chip, the program is replaced or the chip is directly replaced through an external changer, or the content is replaced through network transmission, which cannot cope with extreme transmission environments and the situation of performing different replacements on multiple chips at the same time; while the above technical scheme wirelessly connects the user end with several wireless transmission devices through a wireless transmission unit, and can transmit voice control signals through single-node transmission mode and multi-node transmission mode. Multi-node transmission is multi-node dynamic transmission, which is a user end transmitting voice control signals to multiple voice chips under simultaneous transmission conditions and batch transmission conditions, wherein, when simultaneous transmission is performed, the user end transmits one voice data for updating to multiple nodes at the same time; when batch transmission is performed, the user end transmits multiple voice data for updating to their respective corresponding nodes respectively; the downloader is used to replace the voice control signal for pre-processing, and the I / O unit maintains the high level stability and low level stability of the processing module;

[0123] The beneficial effects of the above technical solution are: multi-node dynamic transmission is performed through the wireless transmission module, thereby increasing the number of transmission objects and the transmission efficiency; the stability of the electrical level is maintained during the connection between the downloader and the processing device through the I / O unit, thereby improving the security and efficiency of data transmission.

[0124] Embodiment 3:

[0125] In one embodiment, a preprocessing module is further included between the import module and the processing module, and the preprocessing module includes:

[0126] A transmission unit and a control unit; wherein,

[0127] The transmission unit is used to perform communication judgment on the received voice control signal based on a preset UART transmitter, obtain the communication mode corresponding to the voice control signal, and transmit the voice control signal to the control unit according to the communication mode; wherein,

[0128] The communication mode includes at least a serial communication mode and a parallel communication mode;

[0129] The control unit is used to adjust the data transmission speed based on the preset SPI controller and communication mode, and transmit the received voice control signal to the processing module according to the data transmission speed; wherein,

[0130] The adjusting the signal transmission speed based on the preset SPI controller and communication mode includes: calculating the transmission speed corresponding to the voice control signal according to the preset SPI controller and communication mode, comparing the transmission speed with the preset safe transmission speed threshold, and determining the comparison result; wherein,

[0131] When the comparison result shows that the transmission speed is greater than the preset safe transmission speed threshold, the signal transmission speed is controlled within the safe transmission speed threshold range;

[0132] When the comparison result shows that the transmission speed is less than or equal to the preset safe transmission speed threshold, the transmission is continued at the transmission speed;

[0133] The technical principle of the above technical scheme is: in the existing technical scheme, the transmission control precision is simplified in order to reduce costs, resulting in too fast transmission and circuit overload, which increases safety hazards, or in order to ensure safety, the transmission speed is reduced and the replacement efficiency is weakened; and in the above technical scheme, the transmission speed is regulated by the UART (Universal Asynchronous Receiver / Transmitter) transmitter and the SPI (Serial Peripheral Interface) controller respectively, and the maximum speed transmission control is performed within the safe transmission speed threshold range; the I / O unit also includes a first monitoring subunit and a second monitoring subunit; wherein the first monitoring subunit is used to monitor the initial power-on time and power-on duration of the wireless transmission unit; the second monitoring subunit is used to monitor the processing module, obtain the circuit data of the processing module, and determine whether it is in a low power consumption state; if so, current backflow prevention processing is performed; wherein the circuit data includes: current data, voltage data;

[0134] The beneficial effects of the above technical solution are: increasing the communication mode through UART, improving the pertinence of replacement data transmission, increasing the transmission speed, and then controlling the transmission speed through SPI to ensure the stability and security of the voice control signal during transmission.

[0135] Embodiment 4:

[0136] In one embodiment, the preprocessing module further includes:

[0137] A speech processing unit and a storage unit; wherein,

[0138] The voice processing unit is used to read the signal format type of the voice control signal, and determine whether the signal format type is a replaceable format signal, and determine the determination result; wherein,

[0139] When the judgment result is that the data format type is a non-replaceable format signal, the voice processing unit performs format conversion processing on the corresponding voice control signal;

[0140] When the judgment result is that the signal format type is a replaceable format signal, the voice control signal is replaced;

[0141] The memory is used to store the voice control signal, and compress and store the voice control signal according to a preset compression constraint condition; wherein,

[0142] The compression constraint condition includes at least a compression format and a compression size;

[0143] The working principle of the above technical solution is as follows: in the prior art solution, the data to be replaced is usually replaced accordingly, which may easily cause data of different types to be replaced at the position of the initial data, thereby causing an error; whereas in the above technical solution, the voice control signal is analyzed by the voice processing unit, and the type of the voice control signal is first determined to determine whether it is a replaceable signal. If it is a non-replaceable signal, the transmission is terminated; if it is a replaceable signal, the signal is analyzed and converted to generate a voice control signal, and the replaceable signal is compressed and stored in a memory;

[0144] The beneficial effect of the above technical solution is: by determining whether the transmission data can be replaced, useful replacement data is screened out, thereby improving the accuracy and replacement efficiency of voice data replacement.

[0145] Embodiment 5:

[0146] In one embodiment, the processing module includes:

[0147] Signal conversion unit: used to convert the received voice control signal to generate voice command data; wherein,

[0148] The signal conversion of the received voice control signal comprises the following steps:

[0149] Step S01: Obtain the playing status of the voice module by performing a playing detection on the voice module; wherein,

[0150] The playing state includes: continuous playing state and stopped playing state;

[0151] Step S02: filtering the received voice control signal to obtain signal data, and judging the data composition type of the signal data to determine the type judgment result; wherein,

[0152] The signal data includes a command signal and an address signal;

[0153] The data composition types of the signal data include: a first data composition type, a second data composition type, and a third data composition type; wherein,

[0154] The first data composition type is that the signal data only includes command signals;

[0155] The second data composition type is that the signal data includes a command signal and an address signal;

[0156] The third data composition type is that the signal data only includes address signals;

[0157] Step S03: When the judgment result is that the data composition type of the signal data is the first data composition type or the third data composition type, the continuous playback state is terminated, and the command signal in the first data composition type or the address signal in the third data composition type is compared and matched with the single signal in the preset single signal comparison table one by one to obtain a matching result; wherein,

[0158] The single signal comparison table includes a command signal comparison table and an address signal comparison table;

[0159] When the matching result is that the command signal in the first data composition type or the address signal in the third data composition type matches a single signal in the preset single signal comparison table, single signal control data is generated;

[0160] When the matching result is that the command signal in the first data composition type or the address signal in the third data composition type does not match the single signal in the preset single signal comparison table, single signal termination data is generated;

[0161] Step S04: when the data composition type of the signal data is the second data composition type, voice command analysis is performed according to the command signal and address signal corresponding to the voice control signal; wherein,

[0162] The voice command analysis includes: matching the command signal and the address signal of the second data composition type to determine the signal code; combining the signal code, the command signal and the address signal in a preset combination order to obtain the command signal, and performing a comparison analysis based on the command signal and a preset command table to obtain the corresponding voice command data; wherein,

[0163] The combination sequence is command signal, signal serial code, address signal;

[0164] The comparative analysis of the command signal and the preset command table comprises the following steps:

[0165] Step S100: Obtain the address string group {x1, x2, ..., x s} and the address comparison string group {y1,y2,…,y d}, calculate the initial similarity between the address string in the command signal within the preset range and the corresponding address comparison string

[0166]

[0167] in, is the address string x r and address comparison string y q The initial similarity, x kis the kth character in the address string group, y f is the fth character in the address reference string group, where k and f are variables, and 1≤rv≤k≤r+v≤s, 1≤qv≤f≤q+v≤d, is the address string x k Length, Address comparison string y f The length of , σ is the first coefficient of string matching, γ is the second coefficient of string matching, 2v is the matching range, which represents the number of address comparison strings matched by an address string;

[0168] Step S200: Based on the initial similarity, determine whether the corresponding address comparison string is successfully found. If not, calculate the advanced similarity δ * :

[0169]

[0170] in, is the address string x r and address comparison string y q , ε is an advanced parameter, the advanced parameter is the common length preset for all strings, β is an advanced factor, and β≤0.2; max(r,q) is the maximum value of r and q;

[0171] Step S300: calculating the dissimilarity λ of the address comparison character string group in the instruction table according to the advanced similarity:

[0172]

[0173] Among them, η is the negative impact factor of similarity, u a The ath string y in the address comparison string group a The probability of being controlled, where a is a variable and 1≤a≤d;

[0174] Step S400: According to the advanced similarity δ * Get the corresponding data of the command signal in the preset command table. If it cannot be obtained through the advanced similarity δ * When the corresponding data is found, it is determined whether the dissimilarity λ is within a preset range; wherein,

[0175] When the dissimilarity λ is within a preset range, a comparative analysis is performed again;

[0176] When the dissimilarity λ is not within the preset range, the current instruction signal has no corresponding data in the preset instruction table;

[0177] The working principle of the above technical solution is as follows: Figure 2As shown, first, the root voice module performs playback detection to obtain the playback status detection result. If it is in a continuous playback state, then the voice control signal needs to be detected; secondly, when detecting the voice control signal, the command code and address of the voice control signal are obtained and judged. If there is only the address, the playback is stopped. Only when there is both the command code and the address, can the combined analysis be performed; finally, according to the obtained command code and address, the corresponding voice continuous code is screened out, and the corresponding voice instruction data is obtained by combining and comparing them. The comparison here is performed through a preset control comparison table, and the control comparison table can be adjusted according to different usage environments and different application functions;

[0178] The beneficial effects of the above technical solution are: the current playback status is adjusted through voice control signals, thereby enhancing replacement efficiency; and the accuracy of the correspondence between voice replacement data, control signals, and specific control data is improved by analyzing and acquiring command codes and voice instructions, thereby ensuring transmission security.

[0179] Embodiment 6:

[0180] In one embodiment, the voice command data includes:

[0181] Connection instruction data, playback instruction data and status instruction data; among which,

[0182] The connection instruction data is used to insert and connect the replaceable voice data to the target connection node in the played voice;

[0183] The play instruction data is used to control the play time of the played voice based on the play stage of the current played voice;

[0184] The state instruction data is used to change the playing state of the played voice; wherein the playing state at least includes loop play, single play and random play;

[0185] The working principle of the above technical solution is: the existing technical solution usually does not have clear judgment on the voice replacement instructions and instruction application, while the above technical solution realizes playback in different scenarios by calling the connection instruction data, playback instruction data and status instruction data respectively. The playback stage includes the stage of waiting for the end of the initial voice: the first stage, the second stage and the third stage; the first stage is the stage of waiting for the end of the initial voice; the second stage is the stage of waiting for the start of the replacement voice playback when there is no initial voice; the third stage is the stage when the replacement voice has started to play; the waiting playback detection includes: detecting whether there is an impact instruction data, and if so, stopping the current Voice playback; wherein the influencing instruction data is other instruction data with a higher authority level, such as a forced shutdown instruction, etc., except for the connection instruction data, the playback instruction data and the loop instruction data; the loop instruction data is used to control the playback of the replaceable voice according to the preset loop period; when the playback state is loop playback, the replaced voice is played in a loop, wherein if the replaced voice is a single-segment voice, it is directly played in a loop; if it is multiple-segment voice, it is necessary to confirm the loopable part and play this part in a loop; single playback directly plays the replaced voice once and then stops playing; random playback plays the replaced voice segments in a random order;

[0186] The beneficial effects of the above technical solution are: by refining different control instructions, the accuracy of chip data replacement control is improved; through screening in the playback stage, the applicability to different control scenarios is improved; through pending playback detection, the negative impact that may be caused by other instruction factors is eliminated, thereby improving the stability of control.

[0187] Embodiment 7:

[0188] In one embodiment, the voice replacement module includes a first replacement unit and a broadcast unit; wherein,

[0189] The first replacement unit is used to perform semantic analysis on the received voice command data based on a preset big data center, generate a voice control command set, prioritize the voice control commands in the voice control command set, obtain the sorting result, and generate a replacement order according to the sorting result; wherein,

[0190] The voice control instruction set includes: connection instructions, play instructions and status instructions;

[0191] The voice control command priorities from high to low include: status command, play command, connection command;

[0192] The replacement sequence at least includes a replacement step and a strategy sequence number;

[0193] The working principle of the above technical solution is as follows: in the existing technical solution, when changing the voice content, the change is usually completed through a single complete change program, and it is impossible to accurately call a certain instruction during the change process. Usually, the change program can only be directly interrupted and a new change program can be reset. In the above technical solution, the voice control instruction set is sorted separately, and different sorting is performed according to different application scenarios, and finally the determination of the change step is realized according to the sorting order;

[0194] The beneficial effect of the above technical solution is: by refining the replaced voice control instructions and setting priorities, the speed of instruction sorting and generating replacement steps is improved, and the efficiency of voice replacement control is improved.

[0195] Embodiment 8:

[0196] In one embodiment, the processing module further includes a one-line serial port unit; the one-line serial port unit includes:

[0197] Duration ratio subunit: used to obtain the conversion duration when the processing module converts the voice control signal, and calculate the duration ratio of the high-level conversion duration to the low-level conversion duration in the conversion duration;

[0198] The level state subunit is used to determine the corresponding data bit according to the time length ratio; wherein the data bit is used to describe the level state of the data line transmitting data at a high level and a low level respectively during serial communication;

[0199] Timing subunit: used to generate a corresponding timing diagram through the data bits, and obtain the transmission timing of the voice command data based on the timing diagram;

[0200] Transmission subunit: used to determine the transmission time sequence and single transmission size of the voice command data according to the timing sequence;

[0201] The working principle of the above technical solution is: the data transmission process is managed through the one-line serial port timing, the data bit can be compared to determine the transmission order and the transmission speed at different times, the data bit needs to be calculated based on the ratio of high level to low level, and finally the transmission timing of the voice command data is determined based on the generated timing diagram;

[0202] The beneficial effect of the above technical solution is that by analyzing the high and low data bits, the accuracy of determining the timing of voice command data transmission is improved.

[0203] Embodiment 9:

[0204] In one embodiment, the first control unit is further used to receive voice replacement data from the user terminal, obtain a data sequence number of the voice replacement data, and match the data sequence number with the policy sequence number to generate a matching result; wherein,

[0205] When the matching result is a matching failure, the replacement sequence is adjusted;

[0206] When the matching result is a successful match, the voice replacement data is replaced with the initial voice data according to the replacement sequence, and the voice is played through a preset player;

[0207] The voice change data includes voice change content, voice broadcast change type and voice change volume;

[0208] The player includes at least an onomatopoeia player and a speaker;

[0209] The working principle of the above technical solution is: by comparing the data sequence number of the replacement data with the strategy sequence number, judging the comparison result, when the comparison is successful, the voice data is replaced and played, and when the voice is replaced, the voice content, voice broadcast type, and voice volume can be changed;

[0210] The beneficial effects of the above technical solution are: through serial number matching, the accuracy of voice data replacement content is improved, the replacement range is grasped, the replacement efficiency is improved, and the types of replaceable data are expanded.

[0211] Embodiment 10:

[0212] In one embodiment, the replacement pre-processing comprises the following steps:

[0213] Used to replace pre-processing of voice control signals;

[0214] Step 1: Acquire the voice of the user end to convert the voice content, obtain the voice content, and create a voice source file according to the voice content, generate a voice control signal, and transmit it to the downloader;

[0215] Step 2: Detecting the connection status between the downloader and the I / O unit by connecting the downloader to the I / O unit; wherein the connection status includes an input state and a floating state;

[0216] Step 3: Filter out the safe power supply data according to the connection status and the preset power supply comparison table, safely power the downloader according to the safe power supply data, and transmit the voice control signal to the processing module through the I / O unit;

[0217] The working principle of the above technical solution is as follows: Figure 3As shown, first, by converting the voice content, making a voice source file, and generating a voice control signal, then transmitting it to the import module through the downloader, and connecting the I / O unit through the downloader, at this time, the connection status of the two is obtained, and the connection status includes input status and floating status; finally, the safe power supply data is screened out, and the downloader is safely powered according to the safe power supply data;

[0218] The beneficial effects of the above technical solution are: by analyzing the connection status and providing different power supplies to the downloader, the safety of the downloader is protected, the security of the interface connection and the efficiency of replacement preprocessing are improved, and the safety and usage time of the downloader and chip are improved through safe power supply.

[0219] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.

[0220] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0221] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0222] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0223] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A voice chip capable of replacing the voice content inside the chip online, comprising: Import module: used to receive the voice control signal from the user end based on the preset wireless transmission device; Processing module: used for performing signal conversion on the voice control signal to generate voice command data; Voice replacement module: used to receive voice replacement data from the user end, match the voice replacement data with corresponding voice command data, and replace the voice data of the voice chip according to the matched voice command data; The import module includes: Wireless transmission unit, downloader and I / O unit; wherein, The wireless transmission unit is wirelessly connected to the user end through a preset voice wireless transmission device to transmit data; wherein, The user terminal is connected to a plurality of voice wireless transmission devices via a wireless connection; The wireless connection method includes at least network connection and Bluetooth connection; wherein, The network connection includes at least a wireless network connection and a local area network connection; The data transmission is that the user terminal transmits the voice control signal through a preset node transmission method; wherein, The node transmission mode includes a single-node transmission mode and a multi-node transmission mode; The multi-node transmission is a multi-node dynamic transmission, which is used to transmit voice control signals to multiple voice chips through a user terminal within a preset transmission condition; wherein, The transmission conditions at least include a simultaneous transmission condition and a batch transmission condition; The downloader is used to perform replacement preprocessing on the voice control signal; The I / O unit is used to connect the downloader and the processing module, obtain the voice control signal, and transmit the voice control signal from the downloader to the processing module; The I / O unit is also used to maintain the level stability of the processing module; wherein, The level stability includes: high level stability and low level stability; wherein, The high level stability means that the level value of the processing module is within a preset high level threshold range; The low level stability means that the level value of the processing module is within a preset low level threshold range.

2. A voice chip capable of online replacing the voice content inside the chip as claimed in claim 1, characterized in that: A pre-processing module is also included between the import module and the processing module, and the pre-processing module includes: A transmission unit and a control unit; wherein, The transmission unit is used to perform communication judgment on the received voice control signal based on a preset UART transmitter, obtain the communication mode corresponding to the voice control signal, and transmit the voice control signal to the control unit according to the communication mode; wherein, The communication mode includes at least a serial communication mode and a parallel communication mode; The control unit is used to adjust the data transmission speed based on the preset SPI controller and communication mode, and transmit the received voice control signal to the processing module according to the data transmission speed; wherein, The adjusting the signal transmission speed based on the preset SPI controller and communication mode includes: calculating the transmission speed corresponding to the voice control signal according to the preset SPI controller and communication mode, comparing the transmission speed with the preset safe transmission speed threshold, and determining the comparison result; wherein, When the comparison result shows that the transmission speed is greater than the preset safe transmission speed threshold, the signal transmission speed is controlled within the safe transmission speed threshold range; When the comparison result is that the transmission speed is less than or equal to the preset safe transmission speed threshold, the transmission continues according to the transmission speed.

3. A voice chip capable of online replacing the voice content inside the chip as claimed in claim 2, characterized in that: The preprocessing module further includes: A speech processing unit and a storage unit; wherein, The voice processing unit is used to read the signal format type of the voice control signal, and determine whether the signal format type is a replaceable format signal, and determine the determination result; wherein, When the judgment result is that the data format type is a non-replaceable format signal, the voice processing unit performs format conversion processing on the corresponding voice control signal; When the judgment result is that the signal format type is a replaceable format signal, the voice control signal is replaced; The memory is used to store the voice control signal, and compress and store the voice control signal according to a preset compression constraint condition; wherein, The compression constraint condition includes at least a compression format and a compression size.

4. A voice chip capable of online replacing the voice content inside the chip as claimed in claim 1, characterized in that: The processing module comprises: Signal conversion unit: used to convert the received voice control signal to generate voice command data; wherein, The signal conversion of the received voice control signal comprises the following steps: Step S01: Obtain the playing status of the voice module by performing a playing detection on the voice module; wherein, The playing state includes: continuous playing state and stopped playing state; Step S02: filtering the received voice control signal to obtain signal data, and judging the data composition type of the signal data to determine the type judgment result; wherein, The signal data includes a command signal and an address signal; The data composition types of the signal data include: a first data composition type, a second data composition type, and a third data composition type; wherein, The first data composition type is that the signal data only includes command signals; The second data composition type is that the signal data includes a command signal and an address signal; The third data composition type is that the signal data only includes address signals; Step S03: When the judgment result is that the data composition type of the signal data is the first data composition type or the third data composition type, the continuous playback state is terminated, and the command signal in the first data composition type or the address signal in the third data composition type is compared and matched with the single signal in the preset single signal comparison table one by one to obtain a matching result; wherein, The single signal comparison table includes a command signal comparison table and an address signal comparison table; When the matching result is that the command signal in the first data composition type or the address signal in the third data composition type matches a single signal in the preset single signal comparison table, single signal control data is generated; When the matching result is that the command signal in the first data composition type or the address signal in the third data composition type does not match the single signal in the preset single signal comparison table, single signal termination data is generated; Step S04: when the data composition type of the signal data is the second data composition type, voice command analysis is performed according to the command signal and address signal corresponding to the voice control signal; wherein, The voice command analysis includes: matching the command signal and the address signal of the second data composition type to determine the signal code; combining the signal code, the command signal and the address signal in a preset combination order to obtain the command signal, and performing a comparison analysis based on the command signal and a preset command table to obtain the corresponding voice command data; wherein, The combination sequence is command signal, signal serial code, and address signal.

5. A voice chip capable of online replacing the voice content inside the chip as claimed in claim 4, characterized in that: The voice command data includes: Connection instruction data, playback instruction data and status instruction data; among which, The connection instruction data is used to insert and connect the replaceable voice data to the target connection node in the played voice; The play instruction data is used to control the play time of the played voice based on the play stage of the current played voice; The state instruction data is used to change the playing state of the played voice; wherein the playing state at least includes loop playing, single playing and random playing.

6. A voice chip capable of online replacing the voice content inside the chip as claimed in claim 1, characterized in that: The voice replacement module includes a first replacement unit and a broadcast unit; wherein, The first replacement unit is used to perform semantic analysis on the received voice command data based on a preset voice chip, generate a voice control command set, prioritize the voice control commands in the voice control command set, obtain the sorting result, and generate a replacement order according to the sorting result; wherein, The voice control instruction set includes: connection instructions, play instructions and status instructions; The voice control command priorities from high to low include: status command, play command, connection command; The replacement sequence at least includes a replacement step and a strategy sequence number.

7. A voice chip capable of online replacing the voice content inside the chip as claimed in claim 1, characterized in that: The processing module further includes a one-line serial port unit; the one-line serial port unit includes: Duration ratio subunit: used to obtain the conversion duration when the processing module converts the voice control signal, and calculate the duration ratio of the high-level conversion duration to the low-level conversion duration in the conversion duration; The level state subunit is used to determine the corresponding data bit according to the time length ratio; wherein the data bit is used to describe the level state of the data line transmitting data at a high level and a low level respectively during serial communication; Timing subunit: used to generate a corresponding timing diagram through the data bits, and obtain the transmission timing of the voice command data based on the timing diagram; Transmission subunit: used to determine the transmission time sequence and single transmission size of the voice command data according to the timing.

8. A voice chip capable of online replacing voice content inside the chip as claimed in claim 6, characterized in that: The first replacement unit is also used to receive voice replacement data from the user end, obtain the data sequence number of the voice replacement data, and match the data sequence number with the policy sequence number to generate a matching result; wherein, When the matching result is a matching failure, the replacement sequence is adjusted; When the matching result is a successful match, the voice replacement data is replaced with the initial voice data according to the replacement sequence, and the voice is played through a preset player; The voice change data includes voice change content, voice broadcast change type and voice change volume; The player includes at least an onomatopoeia player and a speaker.

9. A voice chip capable of online replacing voice content inside the chip as claimed in claim 1, characterized in that: The replacement pre-processing comprises the following steps: Used to replace pre-processing of voice control signals; Step 1: Acquire the voice of the user end to convert the voice content, obtain the voice content, and create a voice source file according to the voice content, generate a voice control signal, and transmit it to the downloader; Step 2: Detecting the connection status between the downloader and the I / O unit by connecting the downloader to the I / O unit; wherein the connection status includes an input state and a floating state; Step three: Filter out the safe power supply data according to the connection status and the preset power supply comparison table, safely power the downloader according to the safe power supply data, and transmit the voice control signal to the processing module through the I / O unit.