Information processing method and device based on Bluetooth TTS chip, medium and product
By integrating TTS and Bluetooth functions into the Bluetooth TTS chip, the problems of high complexity and high cost in intelligent voice management systems are solved, and a low-power and efficient voice management system is achieved.
Patent Information
- Application Number
- CN202410672492.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-08-30
AI Technical Summary
As independent components, the voice module and Bluetooth module in the intelligent voice management system have problems of high complexity and high cost, mainly due to their respective power management, data storage and computing processing requirements, which lead to high power consumption.
Integrate the TTS module function and the Bluetooth module function into the Bluetooth TTS chip, and implement the TTS function and Bluetooth function through serial port instructions to reduce system complexity.
By integrating TTS and Bluetooth functions, the complexity and power consumption of the intelligent voice management system are significantly reduced, and the stability and service life of the system are improved.
Smart Images

Figure CN118574101A
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless communication technology, and in particular to information processing methods, devices, media and products based on Bluetooth TTS chips. Background Art
[0002] The intelligent voice management system usually includes a voice module, a transmission module such as a WiFi or Bluetooth module, and an application client. In the construction scheme of the relevant intelligent voice management system, the voice module and the Bluetooth module are integrated into the intelligent voice management system as independent components.
[0003] However, when the voice module and the Bluetooth module are independent components, they each have different power management, data storage, computing processing, data caching and other backup requirements, resulting in high system cost and high power consumption. Therefore, the current intelligent voice management system has defects such as high complexity and high cost.
[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of this application is to provide an information processing method, device, medium and product based on a Bluetooth TTS chip, aiming to solve the high complexity technical problems of the intelligent voice management system.
[0006] To achieve the above-mentioned purpose, the present application proposes an information processing method based on a Bluetooth TTS chip, which is applied to the Bluetooth TTS chip. The TTS Bluetooth chip includes a serial port Bluetooth hybrid mode. In the serial port Bluetooth hybrid mode, the Bluetooth function of the Bluetooth TTS chip is turned on, the Bluetooth TTS chip can broadcast Bluetooth broadcast packet data, can communicate with a host computer via a serial port, a user application end can establish a Bluetooth connection with the Bluetooth TTS chip and communicate via Bluetooth, and the TTS Bluetooth chip can perform processing actions based on the data sent by the host computer and the user application end; the information processing method includes: In the serial port Bluetooth hybrid mode, when data is received, the data sender is determined according to the data receiving channel of the data; if the data receiving channel is serial port reception, the data sender is determined to be the host computer; if the data receiving channel is Bluetooth reception, the data sender is determined to be the user application end; When the data sender is the host computer, a TTS text-to-speech playback action is performed based on the serial port data sent by the host computer, or the serial port data is directly transparently transmitted and forwarded to the user application end, wherein the serial port data at least includes a serial port data TTS text-to-speech playback instruction and serial port transparent transmission data; When the data sender is the user application end, an action of directly transparently forwarding the Bluetooth data to the host computer is performed based on the Bluetooth data sent by the user application end, wherein the Bluetooth data at least includes Bluetooth transparent transmission data.
[0007] In one embodiment, the Bluetooth TTS chip also includes a pure serial port mode, the power consumption of the pure serial port mode is lower than the serial port Bluetooth hybrid mode, and after the Bluetooth TTS chip leaves the factory, its startup operation mode is the pure serial port mode or the serial port Bluetooth hybrid mode; In the pure serial port mode, the Bluetooth TTS chip does not turn on the Bluetooth function and cannot receive the Bluetooth data sent by the user application. After the Bluetooth TTS chip receives the serial port data Bluetooth function turn-on instruction sent by the host computer, it executes the Bluetooth function turn-on action and enters the serial port Bluetooth hybrid mode; In the serial port Bluetooth hybrid mode, when the Bluetooth TTS chip receives a serial port data instruction to turn off the Bluetooth function sent by the host computer, or receives a Bluetooth instruction to turn off the Bluetooth function sent by the user application, it executes the action of turning off the Bluetooth function and enters the pure serial port mode.
[0008] In one embodiment, the Bluetooth data sent by the user application terminal includes at least one or more instructions of a Bluetooth data TTS text-to-speech playback instruction, a Bluetooth data parsing instruction, and a Bluetooth data action instruction.
[0009] In one embodiment, in the serial port Bluetooth hybrid mode, after receiving the Bluetooth data sent by the user application, it is determined whether the Bluetooth data is the Bluetooth transparent transmission data based on a preset instruction format; If the Bluetooth data conforms to the instruction format of the preset Bluetooth data parsing instruction, the Bluetooth data is judged to be the Bluetooth data parsing instruction, and the Bluetooth data is parsed, and the parsed data is forwarded to the host computer; If the Bluetooth data conforms to the command format of the preset Bluetooth data TTS text-to-speech playback command, the Bluetooth data is determined to be the Bluetooth data TTS text-to-speech playback command, and the TTS text-to-speech playback action is executed; If the Bluetooth data conforms to the instruction format of the preset Bluetooth data action instruction, the Bluetooth data is determined to be the Bluetooth data action instruction, and a processing action corresponding to the Bluetooth data action instruction is executed; Otherwise, it is determined that the Bluetooth data is Bluetooth transparent transmission data, and the Bluetooth transparent transmission data is directly transparently forwarded to the host computer.
[0010] In one embodiment, in the serial port Bluetooth hybrid mode, after receiving the Bluetooth data sent by the user application, it is determined whether the Bluetooth data is the Bluetooth transparent transmission data according to the set command function mode and transparent transmission function mode, wherein after the Bluetooth TTS chip leaves the factory, its function mode is the transparent transmission function mode or the command function mode; All Bluetooth data received in the transparent transmission function mode are identified as Bluetooth transparent transmission data; The Bluetooth data received in the command function mode at least includes the Bluetooth data TTS text-to-speech playback instruction, the Bluetooth data action instruction, the Bluetooth data parsing instruction and the error instruction, wherein the Bluetooth data action instruction includes a Bluetooth data entering transparent transmission function mode instruction and a Bluetooth data exiting transparent transmission function mode instruction; In the command function mode, when a Bluetooth data entering transparent transmission function mode command is received from the user application end, the command function mode is switched to the transparent transmission function mode; when a Bluetooth data exiting transparent transmission function mode command is received from the user application end, the transparent transmission function mode is switched to the command function mode.
[0011] In one embodiment, after receiving the Bluetooth data TTS text-to-speech playback instruction or Bluetooth data action instruction sent by the user application end and completing the processing action corresponding to the received instruction, the Bluetooth TTS chip returns the processing result or query result to the user application end; After receiving the Bluetooth data parsing instruction sent by the user application end and forwarding the data parsing to the host computer, the data sending result is returned to the user application end; After receiving the Bluetooth transparent transmission data sent by the user application end and transparently transmitting the data to the host computer, the data transmission result is transmitted back to the user application end, wherein the processing result, the query result and the data transmission result are not the transparent transmission data and parsed data forwarded by the Bluetooth TTS chip to the host computer.
[0012] In one embodiment, the serial port data sent by the host computer at least includes one or more of serial port data parsing instructions and serial port data action instructions.
[0013] In one embodiment, in the serial port Bluetooth hybrid mode, after receiving the serial port data sent by the host computer, it is determined whether the serial port data is the serial port transparent transmission data based on a preset instruction format; If the serial port data conforms to the preset instruction format of the serial port data parsing instruction, the serial port data is determined to be the serial port data parsing instruction, and the serial port data is parsed, and the parsed data is forwarded to the user application end; If the serial port data conforms to the preset instruction format of the serial port data TTS text-to-speech playback instruction, then the serial port data is determined to be the serial port data TTS text-to-speech playback instruction, and the TTS text-to-speech playback action is executed; If the serial port data conforms to the preset instruction format of the serial port data action instruction, the serial port data is determined to be the serial port data action instruction, and a processing action corresponding to the serial port data action instruction is executed; Otherwise, it is determined that the serial port data is serial port transparent transmission data, and the serial port transparent transmission data is directly transparently forwarded to the user application end.
[0014] In one embodiment, in the serial port Bluetooth hybrid mode, after receiving the serial port data sent by the host computer, it is determined whether the serial port data is the serial port transparent transmission data according to the set command function mode and transparent transmission function mode, wherein after the Bluetooth TTS chip leaves the factory, its function mode is the transparent transmission function mode or the command function mode: All serial port data received in the transparent transmission function mode are identified as serial port transparent transmission data; The serial port data received in the command function mode at least includes the serial port data TTS text-to-speech playback instruction, the serial port data action instruction, the serial port data parsing instruction and the error instruction, wherein the serial port data action instruction includes a serial port data entering transparent transmission function mode instruction and a serial port data exiting transparent transmission function mode instruction; In the command function mode, when the serial port data entering transparent transmission function mode instruction sent by the host computer is received, the command function mode is switched to the transparent transmission function mode; when the serial port data exiting transparent transmission function mode instruction sent by the host computer is received, the transparent transmission function mode is switched to the command function mode.
[0015] In one embodiment, after the Bluetooth TTS chip processes the action corresponding to the data sent by the data sender, it will return the processing result, query result or data sending result to the data sender: After receiving the serial port data TTS text-to-speech playback instruction or the serial port data action instruction sent by the host computer and completing the processing action corresponding to the received instruction, the processing result or the query result is returned to the host computer; After receiving the serial port data parsing instruction sent by the host computer and forwarding the data parsing to the user application end, the data sending result is returned to the host computer; After receiving the serial port transparent transmission data sent by the host computer and transparently transmitting the data to the user application end, the data transmission result is transmitted back to the host computer, wherein the processing result, the query result and the data transmission result are not the transparent transmission data and parsed data forwarded by the Bluetooth TTS chip to the user application end.
[0016] In one embodiment, after the user application establishes a Bluetooth connection with the Bluetooth TTS chip, the Bluetooth TTS chip will actively send Bluetooth connection notification information to the host computer in a set format, and the Bluetooth connection notification information at least includes the connection service UUID, the connection communication mode, the MAC physical address and other Bluetooth information; After the user application disconnects the Bluetooth connection with the Bluetooth TTS chip, the Bluetooth TTS chip will actively send a Bluetooth disconnection notification message to the host computer, wherein the Bluetooth connected notification message and the Bluetooth disconnected notification message are not transparent transmission data or parsed data forwarded by the Bluetooth TTS chip to the host computer.
[0017] In one embodiment, when the user application is performing Bluetooth pairing, Bluetooth connection or Bluetooth disconnection with the Bluetooth TTS chip, the host computer or the user application may send the TTS text-to-speech playback instruction to the Bluetooth TTS chip to provide a progress reminder, wherein the TTS broadcast content for the process reminder includes at least Bluetooth pairing, Bluetooth connected, Bluetooth disconnected or other Bluetooth process reminder content.
[0018] In one embodiment, the Bluetooth TTS chip includes an MCU-SOC main control die and a storage die, and the content stored in the storage die at least includes a code area and a TTS resource area; When the Bluetooth TTS chip is powered on and works, the MCU-SOC main control die reads and runs the preset code from the code area; When the Bluetooth TTS chip performs the TTS text-to-speech playback operation, the MCU-SOC main control die needs to read the TTS resources from the TTS resource area.
[0019] In one embodiment, the content stored in the storage die of the Bluetooth TTS chip further includes one or more of an audio resource area, a custom text resource area, and a custom MP3 resource area; When the Bluetooth TTS chip performs an audio decoding and playing action, the MCU-SOC main control bare chip reads the audio resource from the audio resource area; When the Bluetooth TTS chip executes the custom text playback action of the specified sequence number, the MCU-SOC main control bare chip reads the custom text resource from the custom text resource area; When the Bluetooth TTS chip executes the custom MP3 playing action of the specified sequence number, the MCU-SOC main control bare chip reads the custom MP3 resource from the custom MP3 resource area.
[0020] In one embodiment, the content stored in the storage die of the Bluetooth TTS chip also includes a configuration parameter storage area; The configuration parameter storage area includes at least one or more of a TTS parameter storage area, an audio parameter storage area, a Bluetooth parameter storage area and a general parameter storage area; The Bluetooth TTS chip can respond to the serial data audio parameter configuration instruction sent by the host computer or the Bluetooth data audio parameter configuration instruction sent by the user application end to configure and modify the parameters of the audio parameter storage area; The Bluetooth TTS chip can respond to the serial data Bluetooth parameter configuration instruction sent by the host computer or the Bluetooth data Bluetooth parameter configuration instruction sent by the user application end to configure and modify the parameters of the Bluetooth parameter storage area; The Bluetooth TTS chip can respond to the serial port data universal parameter configuration instruction sent by the host computer or the Bluetooth data universal parameter configuration instruction sent by the user application end to configure and modify the parameters of the universal parameter storage area; The Bluetooth TTS chip can respond to the relevant parameter configuration modification instructions sent by the host computer or the user application end, modify one parameter in the parameter storage area or configure and modify multiple parameters at the same time. When any parameter in the configuration parameter storage area is configured and modified to a different value, it will be saved in the storage bare chip in real time, and the configured parameters will not be lost when the Bluetooth TTS chip is powered off or in deep sleep.
[0021] In one embodiment, after the Bluetooth TTS chip receives the relevant parameter configuration instruction, if all the configured parameters are the same as the corresponding parameters in the configuration parameter storage area, the parameter configuration modification action is not performed; If at least one of the configured parameters is different from the corresponding parameter in the configuration parameter storage area, the parameter configuration modification action corresponding to the parameter configuration instruction is executed, wherein the storage bare chip divides the configuration parameter storage area into N blocks, and all parameters are stored in the first block when leaving the factory; when a parameter is changed, all parameters are assembled into new data in sequence and written to the second block, the third block, ... until the Nth block; when a parameter is changed again, the storage bare chip will erase the configuration parameter storage area as a whole, assemble all parameters into new data and rewrite them to the first block, and repeat this process, and finally send the result of whether the parameter configuration modification is successful to the host computer or the user application end, thereby completing the parameter configuration modification action.
[0022] In one embodiment, the Bluetooth TTS chip supports entering three low-power states when there is no task, and the serial port task of the host computer at least includes a serial port data TTS text-to-speech playback instruction execution task, a serial port transparent data transmission task, a serial port data action instruction execution task, and a serial port data analysis instruction execution task; The Bluetooth tasks of the user application end include at least a Bluetooth data TTS text-to-speech playback instruction execution task, a Bluetooth transparent transmission data transparent transmission task, a Bluetooth data action instruction execution task, and a Bluetooth data parsing instruction execution task; wherein the configuration parameter storage area of the Bluetooth TTS chip has stored the parameters required to execute the serial port task and the Bluetooth task; Before the host computer and the user application end issue tasks, the host computer powers on the Bluetooth TTS chip, and then issues one or more tasks among the serial port tasks and the Bluetooth tasks. The Bluetooth TTS chip reads relevant parameters from the configuration parameter storage area to quickly execute tasks. When all tasks are executed and there are no new tasks within a set time, the host computer powers off the Bluetooth TTS chip, so that the Bluetooth TTS chip is powered off when there is no task and achieves zero power consumption; Before the host computer and the user application end issue a task, the host computer sends a deep wake-up instruction to the Bluetooth TTS chip to wake it up from deep sleep, and then issues one or more tasks in the serial port task and the Bluetooth task. The Bluetooth TTS chip reads relevant parameters from the configuration parameter storage area to quickly execute tasks. When all tasks are completed and there are no new tasks within the set time, the host computer sends a deep sleep instruction to the Bluetooth TTS chip to put it into deep sleep, so that the Bluetooth TTS chip enters the first low-power state of deep sleep when there is no task. In this state, the host computer can wake up the Bluetooth TTS chip from the deep sleep state, and the user application end cannot wake up the Bluetooth TTS chip from the deep sleep state; Before issuing a task, the host computer and the user application end send a shallow wake-up instruction to the Bluetooth TTS chip to wake it up from light sleep, and then issue one or more tasks among the serial port task and the Bluetooth task. The Bluetooth TTS chip reads relevant parameters from the configuration parameter storage area to quickly execute tasks. When all tasks are executed and there are no new tasks within the set time, the host computer or the user application end sends a shallow sleep instruction to the Bluetooth TTS chip to put it into light sleep, so that the Bluetooth TTS chip enters the second low power consumption state of shallow sleep when there is no task. In this state, the user application end and the host computer can wake up the Bluetooth TTS chip from light sleep.
[0023] In one embodiment, the Bluetooth TTS chip may perform at least one of the following actions: restoring the default TTS parameters, configuring one TTS parameter, or configuring multiple TTS parameters simultaneously, based on the received serial data TTS parameter configuration instruction sent by the host computer or the Bluetooth data TTS parameter configuration instruction sent by the user application; When executing the serial port data TTS text-to-speech playback instruction, the Bluetooth data TTS text-to-speech playback instruction, the serial port data custom text playback instruction or the Bluetooth data custom text playback instruction, the Bluetooth TTS chip reads the TTS parameters from the TTS parameter storage area and performs the playback action.
[0024] In one embodiment, the Bluetooth TTS chip can perform at least one of the following configuration actions: restoring the default audio parameters, configuring one of the audio parameters, or configuring multiple audio parameters simultaneously based on the received serial data audio parameter configuration instruction sent by the host computer or the Bluetooth data audio parameter configuration instruction sent by the user application; When executing a serial port data audio decoding instruction, a Bluetooth data audio decoding instruction, a serial port data custom MP3 playback instruction or a Bluetooth data custom MP3 playback instruction, the Bluetooth TTS chip reads audio parameters from the audio parameter storage area and performs a playback action.
[0025] In one embodiment, the Bluetooth TTS chip can perform at least one of the following actions: restoring the default Bluetooth parameters, configuring one Bluetooth parameter, or configuring multiple Bluetooth parameters simultaneously, based on the received serial data Bluetooth parameter configuration instruction sent by the host computer, or the Bluetooth data Bluetooth parameter configuration instruction sent by the user application; The Bluetooth parameters at least include the Bluetooth name, MAC physical address, service UUID, enable UUID, Bluetooth broadcast data packet, Bluetooth scan response data packet, Bluetooth broadcast period, Bluetooth broadcast channel, Bluetooth transmission packet byte count, RSSI signal strength, Bluetooth transmit power, Bluetooth broadcast interval, Bluetooth connection interval, Bluetooth minimum connection interval, Bluetooth maximum connection interval, Bluetooth connection delay interval and Bluetooth connection timeout interval; When the Bluetooth function is turned on, the Bluetooth TTS chip reads the Bluetooth parameters from the Bluetooth parameter storage area and executes the action of turning on the Bluetooth function.
[0026] In one embodiment, the Bluetooth TTS chip can at least perform an action of restoring default general parameters based on the received serial port data general parameter configuration instructions sent by the host computer, or the Bluetooth data general parameter configuration instructions sent by the user application, and configure one of the general parameters or one of the multiple configuration actions performed simultaneously, wherein the general parameters at least include serial port communication baud rate parameters and boot chip operation mode.
[0027] In one embodiment, when the Bluetooth TTS chip is powered on, reset or restarted, or awakened from deep sleep, the serial port communication baud rate parameter is read from the general parameter storage area, and the serial port communication between the Bluetooth TTS chip and the host computer is performed based on the read serial port communication baud rate; After the Bluetooth TTS chip modifies the serial communication baud rate parameter based on the general parameter configuration instruction sent by the host computer or the user application, the serial communication baud rate parameter will take effect in real time, and the serial communication between the Bluetooth TTS chip and the host computer will be performed at the latest configured serial communication baud rate.
[0028] In one embodiment, when the Bluetooth TTS chip is powered on, reset or restarted, or awakened from deep sleep, the boot chip operation mode parameter is read from the general parameter storage area, and the pure serial port mode or the serial port Bluetooth hybrid mode is selected according to the boot chip operation mode parameter; After the Bluetooth TTS chip modifies the boot chip operation mode parameters based on the universal parameter configuration instructions sent by the host computer or the user application, the boot chip operation mode parameters will be saved in the universal parameter storage area of the storage die of the Bluetooth TTS chip. The next time the Bluetooth TTS chip is powered on, reset or restarted, or awakened from deep sleep, the boot chip operation mode parameters will be read from the universal parameter storage area, and the pure serial port interaction mode or the serial port Bluetooth mixed mode will be selected according to the boot chip operation mode parameters.
[0029] In one embodiment, the MCU-SOC main control die of the Bluetooth TTS chip can be connected to the external NOR FLASH based on the external pin. When the storage space of the storage die does not meet the storage conditions, the external NOR FLASH can be used as extended storage, and the Bluetooth TTS chip can perform pre-storage, addition and deletion management and modification of data on the external NOR FLASH; the data stored in the external NOR FLASH may include one or more of TTS resources, audio resources, custom text resources, custom MP3 resources and parameter resources; the data stored in the external NOR FLASH cannot include code, and the code must be stored in the storage die; data other than code can be stored in the external NOR FLASH and the storage die respectively, or all can be stored in the external NOR FLASH.
[0030] In one embodiment, during the Bluetooth pairing process based on the Bluetooth TTS chip, if the user selects identity information for Bluetooth connection based on the user application, the Bluetooth TTS chip broadcasts a broadcast data packet containing first identity information, and the user application parses the broadcast data packet and outputs the parsed identity information; if the identity information selected by the user matches the first identity information, the user application establishes a Bluetooth connection with the Bluetooth TTS chip; or If there is no need for the user to establish a Bluetooth connection based on the identity information selected by the user application, after the user application receives a broadcast data packet containing the first identity information, if the identity information of the broadcast data packet matches the identity information preset by the user application, the user application establishes a Bluetooth connection with the Bluetooth TTS chip, wherein the first identity includes at least one of the Bluetooth name, MAC physical address and other identity information of the Bluetooth TTS chip.
[0031] In one embodiment, if the user is not required to select identity information based on the user application end for Bluetooth connection, and the first identity information is one of the Bluetooth name of the Bluetooth TTS chip and other identity information, during the first connection process, after the user application end establishes a Bluetooth connection with the Bluetooth TTS chip based on the first identity information, the Bluetooth TTS chip stores the second identity information of the user application end, and the second identity information includes at least one of the MAC physical address of the user application end or other identity information; When it is not the first connection, the Bluetooth TTS chip broadcasts a broadcast data packet containing the second identity information. After the user application receives the broadcast data packet, if the broadcast data packet contains the second identity information, the user application establishes a Bluetooth connection with the Bluetooth TTS chip.
[0032] In one embodiment, the Bluetooth parameter storage area of the storage die of the Bluetooth TTS chip is preset with a preset broadcast data packet containing identity information when leaving the factory; The broadcast data packet may be a broadcast data packet configured by the host computer or the user application terminal by sending a Bluetooth parameter configuration instruction to the Bluetooth TTS chip.
[0033] In addition, to achieve the above-mentioned purpose, the present application also proposes an information processing device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the information processing method based on the Bluetooth TTS chip as described above, and the information processing device is a smart Bluetooth device.
[0034] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the information processing method based on the Bluetooth TTS chip as described above are implemented.
[0035] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps of the information processing method based on the Bluetooth TTS chip as described above are implemented.
[0036] One or more technical solutions proposed in this application have at least the following technical effects: Since the TTS module function and the Bluetooth module function are integrated into the Bluetooth TTS chip, the TTS function and the Bluetooth function can be realized through a common serial port. Based on this, the system complexity of the intelligent voice management system can be reduced. Compared with the existing technology, the intelligent voice system built based on the Bluetooth TTS chip has low system complexity. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0038] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following is a brief introduction to the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0039] Figure 1 This is a schematic diagram of the structure of an embodiment of a Bluetooth TTS chip and an application circuit of an information processing method based on a Bluetooth TTS chip of the present application; Figure 2 This is a schematic diagram of the structure of another embodiment of a Bluetooth TTS chip and an application circuit of the information processing method based on the Bluetooth TTS chip of the present application; Figure 3 The functional architecture of the Bluetooth TTS chip of the information processing method based on the Bluetooth TTS chip of this application and the communication logic diagram of the functional architecture with the host computer and the user application end; Figure 4 A flowchart of the first embodiment of the information processing method based on the Bluetooth TTS chip provided in this application; Figure 5 This is a schematic diagram of the information processing method based on the Bluetooth TTS chip in this application, which determines the transparent transmission data based on the data format, and the flow chart of data processing; Figure 6 This is a schematic diagram of the information processing method based on the Bluetooth TTS chip in this application, which determines the transparent transmission data based on the functional mode, and the flow chart of data processing; Figure 7 A flow chart showing parameter configuration and parameter validation of the information processing method based on the Bluetooth TTS chip of this application; Figure 8 This is a diagram showing the operation status of a Bluetooth TTS chip according to the information processing method of the Bluetooth TTS chip in this application; Fig. 9 A schematic diagram of the process of data source identification performed by the host computer of the information processing method based on the Bluetooth TTS chip of this application; Fig.10 Schematic diagram of the device structure of the hardware operating environment involved in the information processing method based on the Bluetooth TTS chip in the embodiment of the present application.
[0040] Description of Figure Numbers: 10. MCU-SOC main control die; 11. Audio processing module; 12. Storage management module; 13. Power management module; 14. Bluetooth RF modulation module; 20. Storage die; 30. Package; 40. External expansion memory; 50. Host computer.
[0041] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0042] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0043] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0044] In one embodiment of the present invention, the application circuit structure of the Bluetooth TTS chip is as follows: Figure 1 Please refer to Figure 1 The Bluetooth TTS chip includes a substrate and an MCU-SOC main control die 10 and a storage die 20 arranged on the substrate; The substrate, the MCU-SOC main control die 10 and the storage die 20 are packaged to form a package body 30; The storage die 20 is connected to the MCU-SOC master die 10; the MCU-SOC master die 10 supplies power to the storage die 20, and the storage die 20 and the MCU-SOC master die 10 perform data exchange via an SPI interface; The MCU-SOC main control bare chip 10 is at least used for Bluetooth communication and text-to-speech conversion; The package body 30 is provided with a plurality of pins connected to the MCU-SOC main control bare chip 10 .
[0045] In this embodiment, the substrate, the MCU-SOC main control die 10 and the storage die 20 are packaged in a SiP manner to form the package body 30. In this way, the package body 30 isolates the internal die, substrate or other components from the outside world, preventing impurities, dust or other pollutants in the air from corroding the inside of the package body 30, thereby protecting its electrical performance from damage.
[0046] In this embodiment, the storage chip 20 is connected to the MCU-SOC master chip 10 so that the MCU-SOC master chip 10 supplies power to the storage chip 20, and the storage chip 20 also interacts with the MCU-SOC master chip 10 through the SPI interface to read or write data stored in the storage chip 20, such as configuration parameters.
[0047] Another application circuit structure of Bluetooth TTS chip is as follows Figure 2 Please refer to Figure 2, the storage die 20 includes a NOR-FLASH storage die 20 (non-volatile memory), and the capacity of the NOR-FLASH storage die 20 is greater than or equal to 1MB; The MCU-SOC master control die 10 has a built-in SRAM (static random access memory) and a 32-bit CPU; The maximum main frequency of the CPU during operation is greater than or equal to 100 MHz; The SRAM capacity is greater than or equal to 80KB.
[0048] The CPU has a built-in FPU (hard floating point) and / or FFT (fast Fourier transform) computing unit to further speed up the data operation of the TTS (speech synthesis) algorithm model.
[0049] In this embodiment, compared with other storage bare chips 20, the NOR-FLASH storage bare chip 20 supports the MCU-SOC main control bare chip 10 to directly read the running code stored therein, thereby reducing the startup time and processing delay of the MCU-SOC main control bare chip 10, and the content saved in the NOR-FLASH storage bare chip 20 before power failure will not disappear after power failure, so that when the Bluetooth TTS chip is powered off (for example, powered off by the host computer, power failure or system restart), the previously stored data can also be protected, thereby ensuring the stability and reliability of the system to which it is applied, and being able to support frequent power on and off of the Bluetooth TTS chip.
[0050] In this embodiment, the boot program for the MCU-SOC master chip 10 to read the storage data of the NOR-FLASH storage chip 20 will be loaded into the SRAM for execution, so that the MCU-SOC master chip 10 can quickly read the running code. During the operation of the Bluetooth TTS chip, the SRAM can be used as a high-speed cache to store frequently accessed data and instructions to improve the response speed of the MCU-SOC master chip 10.
[0051] In this embodiment, the MCU-SOC main control die 10 has a built-in FPU (hard floating point) and / or FFT (fast Fourier transform) computing unit as well as a built-in MATH (mathematical operation unit) and / or AES (encryption algorithm unit) and / or INERRUPTCONTROLLER (interrupt controller). The CPU calls the FPU and FFT to further speed up the data operation of the TTS algorithm model, thereby realizing the text-to-speech conversion function.
[0052] For further information, please refer to Figure 2 , the MCU-SOC master control die 10 also includes: An audio processing module 11, wherein the audio processing module 11 is connected to a plurality of pins provided on the package body 30; A plurality of pins connected to the audio processing module 11 include audio output pins; The plurality of pins further include: a power amplifier adaptation POPEN pin and a power amplifier adaptation MUTE pin; The audio processing module 11 at least supports any one or more audio decoding of MP3, G729, ADPCM, WAV, and PCM formats; The audio processing module 11 supports single-channel / dual-channel 16-bit DAC audio output.
[0053] In this embodiment, the audio processing module 11 is used to decode the audio resources (prompt sound, MP3 or other audio) input from the host computer or stored in the storage die 20, and output the processed audio signal to the speaker through the audio output pin.
[0054] In this embodiment, the pins set on the package body also include: a power amplifier adapter POPEN pin and a power amplifier adapter MUTE pin. The power amplifier adapter MUTE pin is used to connect the MCU-SOC main control chip 10 with the enable end of the power amplifier module, and the power amplifier adapter POPEN pin is used for the MCU-SOC main control chip to access the corresponding control signal.
[0055] In addition, the MCU-SOC main control die 10 also includes: The storage management module 12 is connected to the plurality of pins provided on the package body 30 , and the storage management module 12 is connected to the storage die 20 via an SPI interface.
[0056] The storage management module 12 is used to manage and operate the data stored in the storage die 20, and to exchange data with the host computer via multiple pins set on the package body 30. With such a setting, in actual applications, the user can control the storage management module 12 through the host computer to read, write, erase and other operations on the data of the storage die 20 according to actual needs. By managing the storage die 20 through the storage management module 12, the storage efficiency and reliability of the data can be improved.
[0057] For further information, please refer to Figure 2 , the MCU-SOC master control die 10 also includes: A power management module 13, wherein the power management module 13 is connected to the plurality of pins provided on the package body 30; The plurality of pins connected to the power management module 13 include: Power-on pin (VCC), ground pin (AGND), and reset pin (RESET); The power-on pin is used for the power management module 13 to access the power supply; The ground pin is used for grounding the power management module 13; The reset pin is used to receive a reset signal.
[0058] A Bluetooth RF modulation module 14, wherein the Bluetooth RF modulation module 14 is connected to a plurality of pins provided on the package body 30; A plurality of pins connected to the Bluetooth RF modulation module 14 include: Bluetooth antenna pin (BT_RF), power pin (AVDD), Bluetooth indicator pin (BT_LED), crystal input pin (XTALO) and crystal output pin (XTALI); The Bluetooth antenna pin is used for connecting the Bluetooth RF modulation module 14 to the Bluetooth antenna and establishing a communication connection with an external terminal through the Bluetooth antenna; The power pin is used for the Bluetooth RF modulation module 14 to access the power supply; The pins arranged on the package body also include: a crystal oscillator input pin (XTALO) and a crystal oscillator output pin (XTALI), the crystal oscillator input pin and the crystal oscillator output pin are both connected to the MCU-SOC bare chip, and the crystal oscillator input pin and the crystal oscillator output pin are used for connecting the MCU-SOC bare chip to the crystal oscillator.
[0059] It can be understood that the above-mentioned multiple functional modules all have multiple welding points PAD, and the functional modules are connected one by one with the corresponding multiple pins PIN on the package body 30 through the multiple welding points PAD.
[0060] For further information, please refer to Figure 2 , among the MCU-SOC master chip 10 and the storage chip 20, only the MCU-SOC master chip 10 interacts with the host computer; The pins on the package 30 for the MCU-SOC main control die 10 to interact with the host computer include: A signal transmission pin (TXD) and a signal receiving pin (RXD) are used for the MCU-SOC main control bare chip 10 to communicate with a host computer; A busy / idle status pin (R / B) and a wake-up pin (WAKEUP), wherein the busy / idle status pin is used by the host computer to obtain the working status of the MCU-SOC main control die 10, and the wake-up pin is used by the host computer to control the wake-up of the Bluetooth TTS chip; The first baud rate configuration pin (BAUD1) and the second baud rate configuration pin (BAUD2) are used for the MCU-SOC main control bare chip 10 to implement initial rate configuration when it is powered on.
[0061] In this embodiment, the signal sending pin and the signal receiving pin are both UART serial communication signal lines, and the MCU-SOC main control bare chip 10 exchanges data with the host computer through the UART serial communication.
[0062] In this embodiment, the MCU-SOC main control bare chip 10 also has multiple serial communication interface modules and lead groups, and the multiple serial communication interface modules and lead groups include: IIC, SPI and USB. IIC, SPI and USB are all connected one by one with multiple corresponding pins on the package body 30 through welding points PAD. With this arrangement, the MCU-SOC main control bare chip 10 can select any communication method according to actual needs to receive signals transmitted from the host computer; among them, UART, IIC, SPI and USB are all peripheral interfaces.
[0063] For further information, please refer to Figure 2 , the plurality of pins provided on the package body 30 include: The MCU-SOC main control bare chip 10 is used for connecting the external expansion memory to the external pins, and the MCU-SOC main control bare chip 10 is connected to the external expansion memory via the external pins.
[0064] In this embodiment, the external pin can use the SPI bus. The MCU-SOC main control chip 10 is connected to the external expansion memory through the SPI bus. The SPI bus includes a clock line (CLK), a data output line (D1), a data input line (D0) and a chip select line (CS). When the storage space of the storage chip 20 is full, the user can connect the external expansion memory to the SPI bus so that the host computer can read, write or erase data on the external expansion memory. This setting provides a flexible expansion solution for the user when the storage chip 20 does not have enough space.
[0065] Based on the structure of the Bluetooth TTS chip, the main solution of the embodiment of the present application is to integrate the TTS (Text-to-Speech, speech synthesis) function and the Bluetooth function into the Bluetooth TTS chip. The TTS function and the Bluetooth function can be realized based on the serial port instructions of the serial port, thereby reducing the complexity of building an intelligent voice management system.
[0066] In the prior art, the voice module and the Bluetooth module are integrated into the intelligent voice management system as independent components. When the voice module and the Bluetooth module are independent components, different power management, data storage, computing processing, data caching and other backup requirements will be generated in the intelligent voice management system, which makes the power consumption required for the operation of the intelligent voice management system large and the system design complexity of the intelligent voice management system high.
[0067] The present application provides a solution, which integrates the TTS function module into the Bluetooth chip to form a Bluetooth TTS chip, which is connected to the host computer or the main control MCU through the serial port. The host computer can realize the TTS function and Bluetooth function by sending serial port instructions, thereby significantly reducing the complexity of system design when constructing an intelligent voice management system through the TTS Bluetooth chip.
[0068] Specifically, the functional architecture of the Bluetooth TTS chip of the present application and the communication logic between the functional architecture and the main control MCU (Microcontroller Unit) end and the user application end are as follows: Figure 3 As shown in the figure, in the intelligent voice management system, the host computer is used to monitor the operation status of the management system, issue instructions, collect and process analysis data, and the Bluetooth TTS chip is used as a lower computer to perform specific operations. The host computer communicates with the Bluetooth TTS chip based on the serial port; the user application end includes a mobile phone, tablet or other Bluetooth terminal, and the host computer includes the main control chip end.
[0069] The Bluetooth TTS chip consists of a substrate and an MCU-SOC main control die ( Figure 3 The Bluetooth TTS MCU shown in the figure and the Nor Flash (flash memory) die make up the Nor Flash, also known as the storage die. Please continue to refer to Figure 3 The MCU-SOC main control of Bluetooth TTS can be used as the intermediate carrier of the chip to realize Bluetooth BLE (Bluetooth Low Energy) data transmission and data communication with the external intelligent terminal, namely the user application end, and the host computer. In addition, the Bluetooth TTS chip can broadcast Bluetooth broadcast packet data, can communicate with the host computer through the serial port, the user application end can establish a Bluetooth connection with the Bluetooth TTS chip and communicate with Bluetooth, and the TTS Bluetooth chip can perform processing actions based on the data sent by the host computer and the user application end.
[0070] The MCU-SOC main control communicates with the host computer through the serial port to realize the TTS function, audio decoding function, parameter configuration saving function and Bluetooth function. Based on this, the host computer only needs to send serial port instructions through the serial port, such as TTS playback and action instruction set, audio decoding playback and action instruction set, parameter configuration and query instruction set, custom text playback and action instruction set, turn on and off Bluetooth function instruction set, etc. The MCU-SOC main control of the Bluetooth TTS chip can respond to these instructions to realize the offline TTS function, audio decoding function, configuration parameter saving function or Bluetooth function, and after the MUC-SOC main control executes the corresponding control action, it will feedback the processing results to the host computer and transmit the data back.
[0071] Therefore, after the TTS function is integrated into the Bluetooth chip to form a Bluetooth TTS chip, the TTS function and the Bluetooth function can be realized on one chip based on the serial port, reducing the complexity of the system design. It should be noted that the power amplification and playback processing of the audio signal can be realized on the Bluetooth TTS chip through the TTS serial port instructions and the audio decoding serial port instructions. In addition, the Bluetooth TTS chip can respond to the instruction set sent by the user application end based on the wireless Bluetooth and perform the corresponding processing actions.
[0072] Nor Flash manages resource storage, which includes four main storage areas: the code area for storing all codes of the Bluetooth TTS chip, the TTS resource area for storing voice model resources and text analysis resources, the audio resource area for storing prompt tones, MP3 and other audio, and the configuration parameter storage area for storing TTS parameters, Bluetooth parameters and audio parameters. In addition, it also includes other storage contents such as custom text resource area and custom MP3 resource area.
[0073] During the communication process, the host computer and the user application only interact with the CPU (Central Processing Unit) in the MCU-SOC main control of the Bluetooth TTS chip, and forward instructions and perform related control processing. Among them, the MCU-SOC main control and Nor Flash are encapsulated through the SPI (Serial Peripheral Interface) method to form a package. In addition, the Bluetooth TTS chip has a dedicated external Flash pin and then an external Flash, as an extension of the audio resource area of the built-in Nor Flash, so as to support the storage of more audio resources.
[0074] During the communication process, the host computer communicates with the Bluetooth TTS chip based on the serial port, and the user application communicates based on wireless Bluetooth. During the process of audio decoding and playback and parameter configuration saving, the audio signal can be played through the speaker.
[0075] As an optional bare chip configuration selection method, you can choose an MCU-SOC master bare chip with a main frequency of at least 80M and a memory of at least 80K, and a Nor Flash bare chip with an SPI interface and a capacity greater than or equal to 1M bytes.
[0076] It should be noted that the execution subject of this embodiment can be the MCU main control of the Bluetooth TTS chip, which processes instructions through a central processing unit, or a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device that can realize the above functions. The following takes the MCU main control of the Bluetooth TTS chip as an example to illustrate this embodiment and the following embodiments.
[0077] Based on this, the embodiment of the present application provides an information processing method based on a Bluetooth TTS chip, which is applied to a Bluetooth TTS chip, wherein the Bluetooth TTS chip includes a serial port Bluetooth hybrid mode, referring to Figure 4 , Figure 4 This is a flow chart of the first embodiment of the information processing method based on the Bluetooth TTS chip of the present application.
[0078] In this embodiment, the information processing method based on the Bluetooth TTS chip includes steps S10 to S30: Step S10, in the serial port Bluetooth hybrid mode, when data is received, determining the data sender according to the data receiving channel of the data; if the data receiving channel is serial port reception, determining the data sender is the host computer; if the data receiving channel is Bluetooth reception, determining the data sender is the user application end; It should be noted that when receiving data, the Bluetooth TTS chip can perform corresponding processing actions according to the sender of the data, and the optional implementation method of determining the sender of the data is to determine it through the data receiving channel. The data receiving channel includes serial port reception and Bluetooth reception, that is, in the serial port Bluetooth hybrid mode, the Bluetooth TTS chip can implement TTS-related functions based on the serial port and Bluetooth-related functions based on Bluetooth communication.
[0079] As an optional implementation, in the serial port Bluetooth hybrid mode, the process of the Bluetooth TTS chip performing a processing action based on the received data is as follows: Figure 5 As shown, after receiving the data, the Bluetooth TTS chip will determine the data source and then perform corresponding processing actions based on the data source. That is, when processing the serial port data sent by the host computer or the Bluetooth data sent by the user application, the Bluetooth TTS chip can determine the data type according to the data format, and then perform corresponding processing actions based on the data type.
[0080] Step S20, when the data sender is the host computer, execute the TTS text-to-speech playback action based on the serial port data sent by the host computer or directly transparently forward the serial port data to the user application end, wherein the serial port data at least includes serial port data TTS text-to-speech playback instructions and serial port transparent transmission data.
[0081] In this embodiment, the TTS text-to-speech playback action is performed based on the serial port data sent by the host computer or the serial port data is directly transparently forwarded to the user application end, so that the Bluetooth TTS chip can realize the TTS function and the Bluetooth function at the same time.
[0082] As an optional implementation, the serial port data includes one or more of serial port data parsing instructions and serial port data action instructions in addition to the serial port data TTS text-to-speech playback instructions and serial port transparent transmission data.
[0083] Exemplarily, the serial port data action instructions may include one or more of serial port data TTS action instructions, serial port data audio decoding and playback instructions, serial port data audio decoding action instructions, serial port data TTS parameter configuration instructions, serial port data audio parameter configuration instructions, serial port data Bluetooth parameter configuration instructions, serial port data general parameter configuration instructions, serial port data custom text playback instructions, serial port data custom text action instructions, serial port data custom MP3 playback instructions, serial port data custom MP3 action instructions, serial port data status query instructions, serial port data parameter query instructions, serial port data information query instructions, serial port data general action instructions, serial port data error instructions, serial port data Bluetooth function start instruction, serial port data Bluetooth function stop instruction and serial port data Bluetooth action instructions; the serial port data TTS action instructions may include one of the following instructions: pause TTS playback instruction, resume TTS playback, stop TTS playback, mute for a period of time The serial port data audio decoding action instruction may include one or more instructions of pausing TTS audio instruction, resuming audio playback, stopping audio playback, and muting for a period of time; the serial port data status query instruction may include one or more instructions of querying chip busy and idle status instruction, querying Bluetooth connection status instruction, and querying Bluetooth broadcast status instruction; the serial port data parameter query instruction may include one or more instructions of querying TTS parameter instruction, querying audio parameter instruction, querying Bluetooth parameter instruction, and querying general parameter instruction; the serial port data information query instruction may include one or more instructions of querying version number; the serial port data general action instruction may include one or more instructions of reset instruction, deep sleep instruction, shallow sleep instruction, deep sleep wake-up instruction, and shallow sleep wake-up instruction; the serial port data Bluetooth action instruction may include one or more instructions of disconnecting Bluetooth connection instruction, communication test instruction, and carrier test instruction. Among them, the serial port data custom text action instruction may include one or more instructions including an instruction to obtain the overall information of the custom text, an instruction to obtain the custom text of the specified serial number, an instruction to update the custom text of the specified serial number, an instruction to add a new custom text and an instruction to clear all custom texts; the serial port data custom MP3 action instruction may include one or more instructions including an instruction to obtain the overall information of the custom MP3, an instruction to obtain the custom MP3 of the specified serial number, an instruction to update the custom MP3 of the specified serial number, an instruction to add a new custom MP3 and an instruction to clear all custom MP3s.
[0084] It can be understood that when the serial port data conforms to the instruction format of the preset serial port data action instruction, the Bluetooth TTS chip executes TTS text-to-speech playback action, TTS action processing action, audio decoding playback action, audio decoding action processing action, TTS parameter configuration modification action, audio parameter configuration modification action, Bluetooth parameter configuration modification action, general parameter configuration instruction modification action, custom text playback action of a specified serial number, custom text action processing action, custom MP3 playback action of a specified serial number, custom MP3 action processing action, status query action, parameter query action, information query action, general action processing action, error instruction processing action, Bluetooth function enable action, Bluetooth function disable action or one of the Bluetooth action processing actions based on the serial port data.
[0085] For details, please refer to Figure 5 , in the serial port Bluetooth hybrid mode, after receiving the serial port data sent by the upper computer, it can be determined whether the serial port data is the serial port transparent transmission data based on the preset instruction format; if the serial port data conforms to the instruction format of the preset serial port data parsing instruction, the serial port data is determined to be the serial port data parsing instruction, and the serial port data is parsed, and the parsed data is forwarded to the user application end; if the serial port data conforms to the instruction format of the preset serial port data TTS text-to-speech playback instruction, the serial port data is determined to be the serial port data TTS text-to-speech playback instruction, and the TTS text-to-speech playback action is executed; if the serial port data conforms to the instruction format of the preset serial port data action instruction, the serial port data is determined to be the serial port data action instruction, and the processing action corresponding to the serial port data action instruction is executed; otherwise, the serial port data is determined to be serial port transparent transmission data, and the serial port transparent transmission data is directly transparently forwarded to the user application end. Among them, when the serial port data is an instruction to turn off the Bluetooth function in the serial port data action instruction, it is necessary to switch the operation mode to the pure serial port operation mode. If it is not to turn off the Bluetooth function, then. The preset instruction format can be a format in which the first few bytes are set to a specific style. For example, the serial port data with the first byte of "0xFD" is a serial port data TTS playback instruction, and the first two bytes are "AT", which is a serial port data action instruction. The first three bytes are "AN=", which is a data parsing instruction. In other cases, it is a serial port transparent transmission data. It should be noted that the content of the above first few bytes is only used for explanation and does not limit the data format. After receiving the serial port data and making a judgment, if the data cannot be recognized and processed, an error message of "error" will be returned to the host computer.
[0086] Please continue to refer to Figure 5It should be noted that after the Bluetooth TTS chip executes all the processing actions corresponding to each serial port data, the corresponding processing results will be returned to the user application end or the host computer. That is, after the Bluetooth TTS chip processes the actions corresponding to the data sent by the data sender, it will return the processing results, query results or data sending results to the data sender: after receiving the serial port data TTS text-to-speech playback instruction or the serial port data action instruction sent by the host computer and completing the processing action corresponding to the received instruction, the processing result or query result After receiving the serial port data parsing instruction sent by the host computer and forwarding the data parsing to the user application end, the data sending result is sent back to the host computer; after receiving the serial port transparent transmission data sent by the host computer and transparently transmitting the data to the user application end, the data sending result is sent back to the host computer. It should be noted that the processing result, query result and data sending result are not the transparent transmission data and parsing data forwarded by the Bluetooth TTS chip to the host computer, that is, these results can be ordinary data transmission results.
[0087] Based on this, the Bluetooth TTS chip can execute the corresponding TTS audio synthesis function and Bluetooth / BLE communication function based on the data sent by the host computer, reducing the complexity of the intelligent voice management system built based on the Bluetooth TTS chip.
[0088] Step S30, when the data sender is the user application end, based on the Bluetooth data sent by the user application end, execute the action of directly transparently forwarding the Bluetooth data to the host computer, wherein the Bluetooth data at least includes Bluetooth transparent transmission data.
[0089] In this embodiment, based on the Bluetooth data sent by the user application end, the Bluetooth data is directly transparently forwarded to the host computer, so that the Bluetooth TTS chip can respond to the data of the host computer to implement TTS function and Bluetooth function in Bluetooth TTS mode, and can also respond to the Bluetooth data sent by the user application end to execute Bluetooth function.
[0090] As an optional implementation, the Bluetooth data, in addition to the Bluetooth transparent transmission data, at least includes one or more instructions of Bluetooth data TTS text-to-speech playback instructions, Bluetooth data parsing instructions and Bluetooth data action instructions.
[0091] Exemplarily, the Bluetooth data action instruction may include one or more instructions of Bluetooth data TTS action instruction, Bluetooth data audio decoding and playback instruction, Bluetooth data audio decoding action instruction, Bluetooth data TTS parameter configuration instruction, Bluetooth data audio parameter configuration instruction, Bluetooth data Bluetooth parameter configuration instruction, Bluetooth data general parameter configuration instruction, Bluetooth data custom text playback instruction, Bluetooth data custom text action instruction, Bluetooth data custom MP3 playback instruction, Bluetooth data custom MP3 action instruction, Bluetooth data status query instruction, Bluetooth data parameter query instruction, Bluetooth data information query instruction, Bluetooth data general action instruction, Bluetooth data error instruction, Bluetooth data Bluetooth function start instruction, Bluetooth data Bluetooth function turn off instruction and Bluetooth data Bluetooth action instruction; the Bluetooth data TTS action instruction may include one or more instructions of pausing TTS playback instruction, resuming TTS playback, stopping TTS playback, and mute for a period of time; the Bluetooth data audio decoding action instruction may include one or more instructions of pausing TTS audio instruction, resuming audio playback, stopping audio playback, and mute for a period of time; the Bluetooth data status query instruction may include one or more instructions of querying chip busy and idle status instruction, querying Bluetooth connection status instruction and querying Bluetooth broadcast status instruction; the Bluetooth data The parameter query instruction may include one or more instructions of querying TTS parameter instructions, querying audio parameter instructions, querying Bluetooth parameter instructions and querying general parameter instructions; the Bluetooth data information query instruction may include one or more instructions of querying version number; the Bluetooth data general action instruction may include one or more instructions of reset instruction, deep sleep instruction, shallow sleep instruction, deep sleep wake-up instruction and shallow sleep wake-up instruction; the Bluetooth data Bluetooth action instruction may include one or more instructions of disconnecting Bluetooth connection instruction, communication test instruction and carrier test instruction; if the Bluetooth data conforms to the instruction format of the preset Bluetooth data action instruction, the Bluetooth TTS chip executes one of the TTS action processing action, audio decoding and playback action, audio decoding action processing action, TTS parameter configuration modification action, audio parameter configuration modification action, Bluetooth parameter configuration modification action, general parameter configuration instruction modification action, specified serial number custom text playback action, custom text action processing action, specified serial number custom MP3 playback action, custom MP3 action processing action, status query action, parameter query action, information query action, general action processing action, error instruction processing action, Bluetooth function enable action, Bluetooth function disable action or Bluetooth action processing action based on the Bluetooth data. The Bluetooth data custom text action instruction may include one or more instructions of obtaining custom text overall information instruction, obtaining custom text instruction of a specified serial number, updating custom text instruction of a specified serial number, adding a new custom text instruction and clearing all custom text instructions.The Bluetooth data custom MP3 action instruction may include one or more instructions of obtaining custom MP3 overall information instructions, obtaining custom MP3 instructions of specified serial numbers, updating custom MP3 instructions of specified serial numbers, adding a new custom MP3 instruction and clearing all custom MP3 instructions.
[0092] It can be understood that when the Bluetooth data conforms to the instruction format of the preset Bluetooth data action instruction, the Bluetooth TTS chip executes TTS action processing action, audio decoding and playback action, audio decoding action processing action, TTS parameter configuration modification action, audio parameter configuration modification action, Bluetooth parameter configuration modification action, general parameter configuration instruction modification action, custom text playback action of a specified serial number, custom text action processing action, custom MP3 playback action of a specified serial number, custom MP3 action processing action, status query action, parameter query action, information query action, general action processing action, error instruction processing action, Bluetooth function enable action, Bluetooth function disable action or one of the Bluetooth action processing actions based on the Bluetooth data.
[0093] For details, please refer to Figure 5 , in the serial port Bluetooth hybrid mode, after receiving the Bluetooth data sent by the user application, it can be determined whether the Bluetooth data is the Bluetooth transparent transmission data based on the preset instruction format; if the Bluetooth data conforms to the instruction format of the preset Bluetooth data parsing instruction, the Bluetooth data is determined to be the Bluetooth data parsing instruction, and the Bluetooth data is parsed, and the parsed data is forwarded to the host computer; if the Bluetooth data conforms to the instruction format of the preset Bluetooth data TTS text-to-speech playback instruction, the Bluetooth data is determined to be the Bluetooth data TTS text-to-speech playback instruction, and the TTS text-to-speech playback action is executed; if the Bluetooth data conforms to the instruction format of the preset Bluetooth data action instruction, the Bluetooth data is determined to be the Bluetooth data action instruction, and the processing action corresponding to the Bluetooth data action instruction is executed; otherwise, the Bluetooth data is determined to be Bluetooth transparent transmission data, and the Bluetooth transparent transmission data is directly transparently forwarded to the host computer. The preset instruction format may be a format in which the first few bytes are set to a specific style. For example, the Bluetooth data with the first byte "0xFD" is a Bluetooth data TTS play instruction, and the first two bytes are "AT", which is a Bluetooth data action instruction, and the first three bytes are "AN=", which is a Bluetooth data parsing instruction. Other cases are Bluetooth transparent transmission data. It should be noted that the content of the first few bytes above is only used for explanation and does not limit the data format.
[0094] Please continue to refer to Figure 5It should be noted that after the Bluetooth TTS chip executes all the processing actions corresponding to each Bluetooth data, the processing results will be fed back to the user application end or the host computer, that is, after the Bluetooth TTS chip receives the Bluetooth data TTS text-to-speech playback instruction or Bluetooth data action instruction sent by the user application end and completes the processing action corresponding to the received instruction, the processing result or query result will be returned to the user application end; after receiving the Bluetooth data parsing instruction sent by the user application end and forwarding the data parsing to the host computer, the data sending result will be returned to the user application end; after receiving the Bluetooth transparent transmission data sent by the user application end and transparently transmitting the data to the host computer, the data sending result will be returned to the user application end, wherein the processing result, the query result and the data sending result are not the transparent transmission data and parsing data forwarded by the Bluetooth TTS chip to the user application end, that is, these results can be ordinary data transmission results.
[0095] This embodiment provides an information processing method based on a Bluetooth TTS chip, and the Bluetooth TTS chip can perform corresponding control actions according to the instruction type of the data received in the serial port Bluetooth hybrid mode. At the same time, in the serial port Bluetooth hybrid mode, in addition to realizing the TTS function, audio decoding and playback, parameter configuration storage and other functions, the Bluetooth TTS chip can also realize data return and data communication between the user application end and the host computer, thereby realizing the TTS function and Bluetooth function on the Bluetooth TTS chip, reducing the complexity of building an intelligent voice management system.
[0096] Based on the first embodiment, in the second embodiment, the Bluetooth TTS chip also includes a pure serial port mode, the power consumption of the pure serial port mode is lower than the serial port Bluetooth mixed mode, wherein after the Bluetooth TTS chip leaves the factory, its startup operation mode is the pure serial port mode or the serial port Bluetooth mixed mode.
[0097] Specifically, in the pure serial port mode, the Bluetooth TTS chip does not turn on the Bluetooth function and cannot receive the Bluetooth data sent by the user application. After the Bluetooth TTS chip receives the serial port data sent by the host computer to turn on the Bluetooth function, it executes the action of turning on the Bluetooth function and enters the serial port Bluetooth hybrid mode. In the serial port Bluetooth hybrid mode, when the Bluetooth TTS chip receives the serial port data sent by the host computer to turn off the Bluetooth function, or receives the serial port data sent by the user application to turn off the Bluetooth function, it executes the action of turning off the Bluetooth function and enters the pure serial port mode. It should be noted that the pure serial port mode is a low-power mode of the Bluetooth TTS chip. In this mode, the Bluetooth TTS chip turns off the Bluetooth function and can only perform functions such as TTS text-to-speech playback, audio decoding playback, and TTS parameter and audio parameter configuration storage.
[0098] In the pure serial port mode or the serial port Bluetooth hybrid mode, as an optional implementation method of executing the TTS text-to-speech playback action, the text content corresponding to the serial port data or Bluetooth data and the TTS parameters of the text content can be determined, and the TTS text-to-speech playback action can be executed according to the text content and the TTS parameters. Among them, the TTS parameters at least include the language, speaker, TTS volume, speech speed, intonation, Chinese pronunciation style, English 0 reading strategy, English word pronunciation method, digital processing strategy, prompt tone strategy, Chinese pinyin recognition strategy, Chinese name pronunciation strategy, Chinese number "1" reading strategy, Chinese rhythm annotation strategy, Chinese punctuation reading strategy, power-on POP sound delay, sentence-first missing sound delay, and sentence-end POP sound delay.
[0099] Exemplarily, when receiving the serial port data TTS text-to-speech playback instruction, the TTS parameters are set as follows: text encoding = GBK; speaking speed = level 5; volume = level 8; intonation = level 5; speaker = Xiao Ming; prompt tone = processed as prompt tone; pronunciation style = straightforward; number reading = read as numerical value; number "1" = read as "yao"; punctuation reading = no punctuation; rhythm = no rhythm marking; pinyin = no recognition of Chinese pinyin; surname = automatic judgment; sound effect = no sound effect; English "0" = read as "zero"; English words = read as letters.
[0100] Furthermore, after the user application establishes a Bluetooth connection with the Bluetooth TTS chip, the Bluetooth TTS chip will actively send a Bluetooth connection notification message to the host computer in a set format, and the Bluetooth connection notification message includes at least the connection service UUID, the connection communication mode, the MAC physical address and other Bluetooth information; after the user application disconnects the Bluetooth connection with the Bluetooth TTS chip, the Bluetooth TTS chip will actively send a Bluetooth disconnection notification message to the host computer, wherein the Bluetooth connection notification message and the Bluetooth disconnection notification message are not the transparent data or parsed data forwarded by the Bluetooth TTS chip to the host computer. Similarly, during the process of Bluetooth pairing, Bluetooth connection or Bluetooth disconnection with the Bluetooth TTS chip, the host computer or the user application can send the TTS text-to-speech playback instruction to the Bluetooth TTS chip to perform a process reminder, wherein the TTS broadcast content for the process reminder includes at least Bluetooth pairing, Bluetooth connected, Bluetooth disconnected or other Bluetooth process reminder content. Based on this, it is convenient for users to use and improves the versatility of the Bluetooth TTS chip.
[0101] This embodiment provides an information processing method based on a Bluetooth TTS chip. The Bluetooth TTS chip can realize TTS-related functions and Bluetooth functions in a serial port Bluetooth hybrid mode, and can also realize TTS-related functions in a pure serial port mode, realizing data return and communication between the Bluetooth TTS chip and the host computer. At the same time, in the process of establishing Bluetooth connection, pairing and Bluetooth disconnection, in addition to sending corresponding notification information to the host computer, it can also respond to TTS text-to-speech playback instructions during the connection, pairing or disconnection process, so as to provide reminders during Bluetooth connection, pairing or disconnection, and improve user experience.
[0102] Based on any of the above embodiments, in the third embodiment, please refer to Figure 6 In the serial port Bluetooth hybrid mode, the Bluetooth TTS chip can determine the data type according to the data format and the function mode. The function mode includes the instruction function mode and the transparent transmission function mode. After the Bluetooth TTS chip leaves the factory, its function mode is the transparent transmission function mode or the instruction function mode. The specific mode can be set according to the actual needs of the user.
[0103] Specifically, when the received data is serial port data, please continue to refer to Figure 6 , after receiving the serial port data sent by the host computer, determine whether the serial port data is the serial port transparent transmission data according to the set command function mode and transparent transmission function mode, wherein all serial port data received in the transparent transmission function mode are identified as serial port transparent transmission data; the serial port data received in the command function mode at least includes the serial port data TTS text-to-speech playback instruction, the serial port data action instruction, the serial port data parsing instruction and the error instruction, wherein the serial port data action instruction includes a serial port data entering transparent transmission function mode instruction and a serial port data exiting transparent transmission function mode instruction; in the command function mode, when the serial port data entering transparent transmission function mode instruction sent by the host computer is received, the command function mode is switched to the transparent transmission function mode; when the serial port data exiting transparent transmission function mode instruction sent by the host computer is received, the transparent transmission function mode is switched to the command function mode.
[0104] When the received data is Bluetooth data, whether the Bluetooth data is the Bluetooth transparent transmission data is determined according to the set command function mode and transparent transmission function mode, wherein all Bluetooth data received in the transparent transmission function mode are identified as Bluetooth transparent transmission data; the Bluetooth data received in the command function mode at least includes the Bluetooth data TTS text-to-speech playback instruction, the Bluetooth data action instruction, the Bluetooth data parsing instruction and the error instruction, wherein the Bluetooth data action instruction includes a Bluetooth data entering transparent transmission function mode instruction and a Bluetooth data exiting transparent transmission function mode instruction; in the command function mode, when the Bluetooth data entering transparent transmission function mode instruction sent by the user application end is received, the command function mode is switched to the transparent transmission function mode; when the Bluetooth data exiting transparent transmission function mode instruction sent by the user application end is received, the transparent transmission function mode is switched to the command function mode.
[0105] For further information, please refer to Figure 6 In addition to being able to judge the data type according to the functional mode, it can also combine the functional mode with the preset instruction format, that is, improve the accuracy of data recognition through multiple judgments.
[0106] This embodiment provides an information processing method based on a Bluetooth TTS chip, which analyzes and judges the received data by setting a functional mode and performs judgment and processing in a specific format, which can effectively improve the accuracy of data judgment and thus improve the task execution efficiency of the Bluetooth TTS chip.
[0107] Based on any of the above embodiments, in a fourth embodiment, the Bluetooth TTS chip of the present application includes an MCU-SOC main control die and a storage die, and the content stored in the storage die includes at least a code area and a TTS resource area; when the Bluetooth TTS chip is powered on and working, the MCU-SOC main control die reads and runs a preset code from the code area; when the Bluetooth TTS chip performs the TTS text-to-speech playback action, the MCU-SOC main control die needs to read the TTS resource from the TTS resource area. By building a flash memory chip into the Bluetooth TTS chip, it is possible to ensure that data is not lost when power is off, without adding an additional data backup mechanism or a complex power management solution.
[0108] Furthermore, the content stored in the storage chip of the Bluetooth TTS chip also includes one or more of an audio resource area, a custom text resource area and a custom MP3 resource area; when the Bluetooth TTS chip performs an audio decoding and playback action, the MCU-SOC main control chip reads audio resources from the audio resource area; when the Bluetooth TTS chip performs a custom text playback action of a specified serial number, the MCU-SOC main control chip reads custom text resources from the custom text resource area; when the Bluetooth TTS chip performs a custom MP3 playback action of a specified serial number, the MCU-SOC main control chip reads custom MP3 resources from the custom MP3 resource area. Among them, the custom text resource area of the storage die of the Bluetooth TTS chip can be preset with multiple custom texts at the factory; the host computer can update and add the custom text in the custom text resource area of the storage die of the Bluetooth TTS chip by sending corresponding instructions through the serial port and the user application end through Bluetooth; the host computer sends a custom text playback instruction to the Bluetooth TTS chip through the serial port and the user application end through Bluetooth, and the Bluetooth TTS chip reads the custom text of the specified serial number from the custom text resource area, and then performs TTS text-to-speech playback according to the TTS parameters; the host computer and the user application end user can perform personalized customization, for example, the text of a certain serial number preset at the factory "Hello, master, I am Xiao Dingdong" can be updated to "Hello, princess, I am Calabash Brothers".
[0109] In addition, the custom MP3 resource area of the storage die of the Bluetooth TTS chip can be preset with multiple custom MP3s at the factory; the host computer can update and add custom MP3s in the custom MP3 resource area of the storage die of the Bluetooth TTS chip by sending corresponding instructions through the serial port and the user application end through Bluetooth; the host computer sends custom MP3 play instructions to the Bluetooth TTS chip through the serial port and the user application end through Bluetooth, and the Bluetooth TTS chip reads the custom MP3 of the specified serial number from the custom MP3 resource area, and then plays the custom MP3 of the specified serial number according to audio parameters; the host computer and the user application end users can perform personalized customization, for example, they can update the MP3 of a certain serial number preset at the factory to the recording MP3 of their own children. It should be noted that when performing audio decoding and playback, the audio decoding and playback formats supported by the Bluetooth TTS chip include at least: MP3, G729, ADPCM, WAV, PCM, MP4, WMA, APE, FLAC, AAC, M4A, AIF, AIFC, and MP2.
[0110] In addition, the contents stored in the storage die of the Bluetooth TTS chip also include a configuration parameter storage area; the configuration parameter storage area includes at least one or more of a TTS parameter storage area, an audio parameter storage area, a Bluetooth parameter storage area, and a general parameter storage area.
[0111] When processing data, the Bluetooth TTS chip can perform corresponding processing from each storage area. Exemplarily, the Bluetooth TTS chip can respond to the serial data audio parameter configuration instruction sent by the host computer or the Bluetooth data audio parameter configuration instruction sent by the user application end to configure and modify the parameters of the audio parameter storage area; the Bluetooth TTS chip can respond to the serial data Bluetooth parameter configuration instruction sent by the host computer or the Bluetooth data Bluetooth parameter configuration instruction sent by the user application end to configure and modify the parameters of the Bluetooth parameter storage area; the Bluetooth TTS chip can respond to the serial data general parameter configuration instruction sent by the host computer or the Bluetooth data general parameter configuration instruction sent by the user application end to configure and modify the parameters of the general parameter storage area; the Bluetooth TTS chip can respond to the relevant parameter configuration modification instruction sent by the host computer or the user application end to modify one parameter in the parameter storage area or configure and modify multiple parameters at the same time, wherein, when any parameter in the configuration parameter storage area is configured and modified to a different value, it will be saved in the storage bare chip in real time, and the configured parameters will not be lost when the Bluetooth TTS chip is powered off or in deep sleep.
[0112] It should be noted that in order to avoid the reduction of the service life of Flash due to unlimited writing of Flash, when the parameters set in the parameter configuration serial port instruction are the same as the parameters stored inside the Bluetooth TTS chip, the instruction to write the parameters to Flash will not be executed, thereby extending the life of Flash, that is, after the Bluetooth TTS chip receives the relevant parameter configuration instruction, if all the configured parameters are the same as the corresponding parameters in the configuration parameter storage area, the parameter configuration modification action will not be executed. In the configuration process, for example, the parameter preservation strategy of the Bluetooth TTS chip can at least increase the life of the storage die of the Bluetooth TTS chip by N times. The configuration parameter storage area is 4K bytes. When it is factory set, 4K is divided into N storage areas, each of which is M bytes in size, N*M=4K bytes. When the Bluetooth TTS chip leaves the factory, all parameters are stored in the first block area, and the other 2nd to Nth blocks are empty and all write 0xFF bytes. Based on this, the service life of the storage die is improved.
[0113] Specifically, if at least one of the configured parameters is different from the corresponding parameter in the configuration parameter storage area, the parameter configuration modification action corresponding to the parameter configuration instruction is executed, wherein the storage bare chip divides the configuration parameter storage area into N blocks, and all parameters are stored in the first block when leaving the factory; when there is a parameter change, all parameters will be assembled into new data in turn and written to the second block, the third block, ... until the Nth block; when there is another parameter change, the storage bare chip will erase the configuration parameter storage area as a whole, assemble all parameters into new data and rewrite them to the first block, repeat this process, and finally send the result of whether the parameter configuration modification is successful to the host computer or the user application end, thereby completing the parameter configuration modification action. Based on this, the parameter modification efficiency is improved, and the service life of the storage bare chip is also improved.
[0114] This embodiment provides an information processing method based on a Bluetooth TTS chip, wherein the Bluetooth TTS chip includes an MCU-SOC main control die and a storage die. When executing related instructions, the corresponding parameters can be obtained in the storage area corresponding to the storage die and the corresponding processing actions can be executed. The storage die based on the Bluetooth TTS chip can quickly extract and process the content corresponding to the instruction, thereby improving the task processing efficiency of the Bluetooth TTS chip. At the same time, when modifying the parameter configuration, the parameter configuration modification method based on the storage die can significantly improve the service life of the current storage die, thereby improving the service life of the Bluetooth TTS chip. At the same time, data will not be lost when power is off, thereby improving the effectiveness of data storage.
[0115] Based on the above embodiments, in the fifth embodiment, the Bluetooth TTS chip can at least perform the action of restoring the default TTS parameters, configure one TTS parameter or one of the multiple configuration actions of configuring simultaneously based on the received serial port data TTS parameter configuration instruction sent by the host computer, or the Bluetooth data TTS parameter configuration instruction sent by the user application; wherein, when the Bluetooth TTS chip executes the serial port data TTS text-to-speech playback instruction, the Bluetooth data TTS text-to-speech playback instruction, the serial port data custom text playback instruction or the Bluetooth data custom text playback instruction, it reads the TTS parameters from the TTS parameter storage area and executes the playback action.
[0116] Optionally, the Bluetooth TTS chip can at least perform an action of restoring default audio parameters, configure one audio parameter or one of multiple configuration actions performed simultaneously based on the received serial data audio parameter configuration instruction sent by the host computer, or the Bluetooth data audio parameter configuration instruction sent by the user application, wherein the audio parameters at least include audio volume, background sound volume, loop playback mode, loop playback number and loop playback time. When executing the serial data audio decoding instruction, the Bluetooth data audio decoding instruction, the serial data custom MP3 playback instruction or the Bluetooth data custom MP3 playback instruction, the Bluetooth TTS chip reads the audio parameters from the audio parameter storage area and performs the playback action.
[0117] Optionally, the Bluetooth TTS chip can at least perform the action of restoring the default Bluetooth parameters, configure one Bluetooth parameter or one of multiple configuration actions of configuring simultaneously based on the received serial data Bluetooth parameter configuration instructions sent by the host computer, or the Bluetooth data Bluetooth parameter configuration instructions sent by the user application, wherein the Bluetooth parameters at least include Bluetooth name, MAC physical address, service UUID, enable UUID, Bluetooth broadcast data packet, Bluetooth scan response data packet, Bluetooth broadcast cycle, Bluetooth broadcast channel, number of Bluetooth transmission packet bytes, RSSI signal strength, Bluetooth transmit power, Bluetooth broadcast interval, Bluetooth connection interval, Bluetooth minimum connection interval, Bluetooth maximum connection interval, Bluetooth connection delay interval and Bluetooth connection timeout interval; when the Bluetooth function is turned on, the Bluetooth TTS chip reads the Bluetooth parameters from the Bluetooth parameter storage area and executes the action of turning on the Bluetooth function.
[0118] In addition, the Bluetooth TTS chip can perform frequent power-off and power-on processing, and the data will not be lost after the chip is powered off. Specifically, during operation, the Bluetooth TTS chip can perform at least the action of restoring the default general parameters based on the received serial data general parameter configuration instruction sent by the host computer, or the user application sends the Bluetooth data general parameter configuration instruction, and configures one of the general parameters or one of the multiple configuration actions configured at the same time, wherein the general parameters at least include the serial communication baud rate parameter and the startup chip operation mode. When the Bluetooth TTS chip is powered on, reset and restarted, or awakened from deep sleep, the serial communication baud rate parameter is read from the general parameter storage area, and the serial communication between the Bluetooth TTS chip and the host computer is based on the read serial communication baud rate; the Bluetooth TTS chip can modify the serial communication baud rate parameter based on the general parameter configuration instruction sent by the host computer or the user application, and the serial communication baud rate parameter will take effect in real time, and the serial communication between the Bluetooth TTS chip and the host computer is performed according to the latest configured serial communication baud rate.
[0119] During the parameter configuration modification process, when the Bluetooth TTS chip is powered on, reset and restarted, or awakened from deep sleep, the boot chip operation mode parameters are read from the general parameter storage area, and the pure serial port mode or the serial port Bluetooth hybrid mode is selected according to the boot chip operation mode parameters. At the same time, after the Bluetooth TTS chip modifies the boot chip operation mode parameters based on the general parameter configuration instructions sent by the host computer or the user application, the boot chip operation mode parameters will be saved in the general parameter storage area of the storage die of the Bluetooth TTS chip. The next time the Bluetooth TTS chip is powered on, reset and restarted, or awakened from deep sleep, the boot chip operation mode parameters are read from the general parameter storage area, and the pure serial port interactive mode or the serial port Bluetooth hybrid mode is selected according to the boot chip operation mode parameters.
[0120] For example, taking the Bluetooth broadcast data packet as an example, the parameter configuration and validation process of the Bluetooth TTS chip is as follows: Figure 7 As shown, when the Bluetooth TTS chip is turned on, the Flash, i.e. the storage chip, pre-stores a broadcast Bluetooth packet A, which is a factory preset packet or a packet modified by the previous configuration. Then, based on the startup operation mode parameters, the pure serial port mode or the serial port Bluetooth hybrid mode is entered, and then the stored Bluetooth broadcast packet A is broadcasted. After the host computer configures the Bluetooth broadcast packet B based on the configuration instruction, in the serial port Bluetooth hybrid mode, the Bluetooth broadcast packet B can be directly broadcast based on the instruction to turn on the Bluetooth function sent by the host computer, so that the Bluetooth broadcast packet B takes effect. In the pure serial port mode, after entering the serial port Bluetooth hybrid mode through the instruction to turn on the Bluetooth function, the Bluetooth broadcast packet B is broadcasted, and finally the Bluetooth broadcast packet B takes effect. In the subsequent restart process, the Bluetooth TTS chip will broadcast the content of the Bluetooth broadcast packet B. At this time, the parameter configuration modification process is completed.
[0121] In addition, to increase the storage space of the Bluetooth TTS chip, please continue to refer to Figure 3The MCU-SOC main control chip can be connected to the external NOR FLASH based on the external pin. When the storage space of the storage chip does not meet the storage conditions, the external NOR FLASH can be used as extended storage. The Bluetooth TTS chip can perform pre-storage, addition and deletion management and modification of data on the external NOR FLASH; the data stored in the external NOR FLASH may include one or more of TTS resources, audio resources, custom text resources, custom MP3 resources and parameter resources; the data stored in the external NOR FLASH cannot include code, and the code must be stored in the storage chip; data other than code can be stored in the external NOR FLASH and the storage chip respectively, or all can be stored in the external NOR FLASH.
[0122] This embodiment provides an information processing method based on a Bluetooth TTS chip. Based on the storage die of the Bluetooth TTS chip, the content corresponding to the instruction can be quickly extracted and processed, thereby improving the task processing efficiency of the Bluetooth TTS chip. At the same time, based on the storage die, it is ensured that the parameters after the configuration is saved are not lost when the power is turned off. At the same time, the Bluetooth TTS chip can perform frequent power-off and power-on processing, and the data will not be lost after the chip is powered off. While improving the data validity, it also increases the service life of the Bluetooth TTS chip. Based on this, when building an intelligent voice management system based on the Bluetooth TTS chip, there is no need to add additional data backup mechanisms or complex power management solutions, which improves the stability of building an intelligent voice management system and reduces the complexity of building an intelligent voice management system.
[0123] Based on the above embodiments, in the sixth embodiment, the operation state of the Bluetooth TTS chip is as follows: Figure 8 As shown, the Bluetooth TTS chip supports entering three low-power states when there is no task, namely, zero-power mode of shutdown, low-power mode of light sleep, and ultra-low-power mode of deep sleep, and the tasks include serial port tasks of the host computer and Bluetooth tasks of the user application. The serial port tasks of the host computer at least include serial port data TTS text-to-speech playback instruction execution tasks, serial port transparent data transmission tasks, serial port data action instruction execution tasks, and serial port data parsing instruction execution tasks; the Bluetooth tasks of the user application at least include Bluetooth data TTS text-to-speech playback instruction execution tasks, Bluetooth transparent data transmission tasks, Bluetooth data action instruction execution tasks, and Bluetooth data parsing instruction execution tasks; wherein, the configuration parameter storage area of the Bluetooth TTS chip has saved the parameters required to execute the serial port tasks and the Bluetooth tasks; Furthermore, before the host computer and the user application end issue tasks, the host computer powers on the Bluetooth TTS chip, and then issues the serial port task and one or more tasks of the Bluetooth task. The Bluetooth TTS chip reads relevant parameters from the configuration parameter storage area to quickly execute tasks. When all tasks are executed and there are no new tasks within the set time, the host computer powers off the Bluetooth TTS chip, so that the Bluetooth TTS chip is powered off when there is no task and achieves zero power consumption, that is, enters the shutdown state.
[0124] Please continue to refer to Figure 8 Before the host computer and the user application end issue a task, the host computer sends a deep wake-up instruction to the Bluetooth TTS chip to wake it up from deep sleep, and then issues one or more tasks in the serial port task and the Bluetooth task. The Bluetooth TTS chip reads relevant parameters from the configuration parameter storage area to quickly execute tasks. When all tasks are completed and there are no new tasks within the set time, the host computer sends a deep sleep instruction to the Bluetooth TTS chip to put it into deep sleep, so that the Bluetooth TTS chip enters the first low power consumption state of deep sleep when there is no task, that is, the ultra-low power consumption state. In this state, the host computer can wake up the Bluetooth TTS chip from the deep sleep state, and the user application end cannot wake up the Bluetooth TTS chip from the deep sleep state.
[0125] Please continue to refer to Figure 8 Before issuing a task, the host computer and the user application end send a shallow wake-up instruction to the Bluetooth TTS chip to wake it up from a shallow sleep, and then issue one or more tasks in the serial port task and the Bluetooth task. The Bluetooth TTS chip reads relevant parameters from the configuration parameter storage area to quickly execute tasks. When all tasks are completed and there are no new tasks within the set time, the host computer or the user application end sends a shallow sleep instruction to the Bluetooth TTS chip to put it into a shallow sleep, so that the Bluetooth TTS chip enters a second low-power state of shallow sleep when there is no task. In this state, the user application end and the host computer can wake up the Bluetooth TTS chip from shallow sleep.
[0126] It should be noted that after the Bluetooth TTS chip is turned on, it can perform the corresponding mode based on the power-on operation mode parameters, and can switch modes according to relevant instructions. The power consumption of the serial port Bluetooth hybrid mode is higher than that of the pure serial port mode. In the pure serial port mode, the serial port data sent by the host computer, such as serial port data TTS playback instructions, serial port data action instructions, serial port data parsing instructions or serial port data transparent transmission instructions, etc., are executed. In the serial port Bluetooth hybrid mode, the serial port data sent by the host computer can be processed, as well as the Bluetooth data sent by the user application. Among them, the pure serial port mode or the serial port Bluetooth hybrid mode can be entered according to the mode parameters. For example, when the preset or modified mode parameter is 0, the Bluetooth TTS chip enters the pure serial port mode, and when the mode parameter is 1, it enters the serial port Bluetooth hybrid mode.
[0127] Based on this, the Bluetooth TTS chip supports waking up and powering on the Bluetooth TTS chip when the host computer has TTS tasks and Bluetooth tasks, and supports the host computer to issue a deep sleep instruction or directly power off after the task is completed to achieve low power consumption. By setting a variety of different power consumption modes, the Bluetooth TTS chip can respond to the instructions of the user application or the host computer in different scenarios and enter the corresponding low power consumption mode, reducing the power consumption of the Bluetooth TTS chip and increasing the service life of the Bluetooth TTS chip.
[0128] Based on any of the above embodiments, in the seventh embodiment, please refer to Fig. 9 , the upper computer can judge and process the received data based on the data format, that is, the data format that meets the preset return data, such as +***, or the data that is seen through as "RTN", belongs to the return data after the Bluetooth TTS chip processes the instruction, and the data format that meets the preset Bluetooth notification, such as the instruction starting with "Connect-", is considered to be the connection notification data or disconnection notification data sent by the user application after the connection or disconnection, and the data format that meets the preset data sending success notification, such as the beginning of "ACK", can be considered to be the sending success notification data after the data is transparently forwarded to the user application, or the sending success notification after the data is parsed and forwarded to the user application. When the data cannot be identified, it belongs to the transparent transmission data directly forwarded from the user application, or the parsed data that needs to be parsed by the user application and then parsed and forwarded. It should be noted that the above data format content is only used for explanation and is not a limitation of this application.
[0129] Based on any of the above embodiments, in the eighth embodiment, when the Bluetooth TTS chip is performing Bluetooth pairing, if the user performs a Bluetooth connection method based on the method of selecting matching identity information, for example, after scanning the Bluetooth device through the mobile phone, the Bluetooth TTS chip broadcasts a broadcast data packet containing the first identity information, and the user application side not only parses out the identity information of the broadcast packet data broadcast by the Bluetooth TTS chip, but also parses out the identity information of the broadcast packet data broadcast by all other devices, and displays all the parsed identity information on the screen of the user application side and gives it to the user of the user application side to choose to connect. If the user selects the identity information on the screen to match the first identity information, the user application side establishes a Bluetooth connection with the Bluetooth TTS chip. That is, the user performs a Bluetooth connection based on the identity information selected by the user application side, and the Bluetooth TTS chip broadcasts a broadcast data packet containing the first identity information. After the user application side parses the broadcast data packet, it outputs the parsed identity information; if the identity information selected by the user matches the first identity information, the user application side establishes a Bluetooth connection with the Bluetooth TTS chip. Based on this, the initiative of the Bluetooth connection is given to the user of the user application end, wherein the first identity identification includes at least one of the Bluetooth name, MAC physical address and other identity identification information of the Bluetooth TTS chip.
[0130] In another optional pairing method, automatic pairing can be performed based on the first identity information without user participation. In this process, the Bluetooth TTS chip broadcasts a broadcast data packet containing the first identity information. After the user application receives the broadcast packet data containing the first identity information, it determines whether the first identity information contained in the broadcast packet data matches the identity information preset by the user application. If so, the user application automatically establishes a Bluetooth connection with the Bluetooth TTS chip. That is, after the user application receives the broadcast data packet containing the first identity information, if the identity information of the broadcast data packet matches the identity information preset by the user application, the user application establishes a Bluetooth connection with the Bluetooth TTS chip. Automatic pairing and establishment of a Bluetooth connection by matching identity information does not require user participation on the user application side, thereby improving Bluetooth connection efficiency.
[0131] Furthermore, the user application end can be automatically paired with the Bluetooth TTS chip and a Bluetooth connection can be established by double-confirming the matching identity information, without the need for user participation of the user application end. This improves the pairing efficiency while preventing the user application end from mistakenly connecting to a device other than the Bluetooth TTS chip with the same first identity information.
[0132] Specifically, based on this pairing connection mode, when the connection is established for the first time, the Bluetooth TTS chip broadcasts a broadcast data packet containing the first identity information. After the user application receives the broadcast data packet containing the first identity information, it determines whether the first identity information contained in the broadcast data packet is consistent with the identity information preset by the user application. If so, the user application automatically establishes a Bluetooth connection with the Bluetooth TTS chip. After the user application establishes a Bluetooth connection with the Bluetooth TTS chip for the first time, the user application sends the second identity information to the Bluetooth TTS chip. The Bluetooth TTS chip stores and records the second identity information and assembles a broadcast data packet containing the second identity information. Subsequently, when the connection is not established for the first time, that is, when reconnecting after disconnection, the Bluetooth TTS chip broadcasts a broadcast data packet containing the second identity information. When the user application receives the broadcast data packet containing the second identity information, the user application determines whether the broadcast data packet contains the second identity information. If so, the Bluetooth connection is automatically established with the Bluetooth TTS chip.
[0133] Furthermore, the Bluetooth parameter storage area of the storage die of the Bluetooth TTS chip is preset with a preset broadcast data packet containing identity information when leaving the factory. The broadcast data packet can be a broadcast data packet configured by the host computer or the user application by sending a Bluetooth parameter configuration instruction to the Bluetooth TTS chip.
[0134] Based on multiple Bluetooth connection modes, the efficiency of Bluetooth connection is improved, while the versatility of Bluetooth TTS chips is improved.
[0135] The present application provides an information processing device, the information processing device comprising: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the information processing method based on the Bluetooth TTS chip in the above-mentioned embodiment 1. The information processing device is a smart Bluetooth device, which includes the Bluetooth TTS chip described in the embodiment of the present application.
[0136] Reference below Fig.10, which shows a schematic diagram of the structure of an information processing device suitable for implementing the embodiments of the present application. The information processing device in the embodiments of the present application may include but is not limited to mobile terminals based on Bluetooth TTS chips such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals, etc., and fixed terminals based on Bluetooth TTS chips such as digital TVs, desktop computers, etc. Fig.10 The information processing device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0137] like Fig.10 As shown, the information processing device may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the information processing device are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the information processing device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows an information processing device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0138] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0139] The information processing device provided by the present application adopts the information processing method based on the Bluetooth TTS chip in the above embodiment, which can solve the technical problem of high complexity in building an intelligent voice management system. Compared with the prior art, the beneficial effects of the information processing device provided by the present application are the same as the beneficial effects of the information processing method based on the Bluetooth TTS chip provided in the above embodiment, and the other technical features in the information processing device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0140] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0141] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0142] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the information processing method based on the Bluetooth TTS chip in the above-mentioned embodiment.
[0143] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.
[0144] The computer-readable storage medium may be included in the information processing device; or may exist independently without being installed in the information processing device.
[0145] The computer-readable storage medium carries one or more programs, and when the one or more programs are executed by the information processing device, the information processing device can write computer program codes for performing the operations of the present application in one or more programming languages or a combination thereof, and the programming languages include object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
[0146] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0147] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0148] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned information processing method based on the Bluetooth TTS chip, and can solve the technical problem of high complexity in building an intelligent voice management system. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the information processing method based on the Bluetooth TTS chip provided by the above-mentioned embodiment, and will not be repeated here.
[0149] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned information processing method based on Bluetooth TTS chip when executed by a processor.
[0150] The computer program product provided by this application can solve the technical problem of high complexity in building an intelligent voice management system. Compared with the prior art, the beneficial effects of the computer program product provided by this application are the same as the beneficial effects of the information processing method based on the Bluetooth TTS chip provided by the above embodiment, which will not be repeated here.
[0151] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. An information processing method based on a Bluetooth TTS chip, characterized in that: Applied to a Bluetooth TTS chip, the TTS Bluetooth chip includes a serial port Bluetooth hybrid mode. In the serial port Bluetooth hybrid mode, the Bluetooth function of the Bluetooth TTS chip is turned on, the Bluetooth TTS chip can broadcast Bluetooth broadcast packet data, can communicate with the host computer via serial port, the user application end can establish a Bluetooth connection with the Bluetooth TTS chip and communicate via Bluetooth, and the TTS Bluetooth chip can perform processing actions based on the data sent by the host computer and the user application end; the information processing method includes: In the serial port Bluetooth hybrid mode, when data is received, the data sender is determined according to the data receiving channel of the data; if the data receiving channel is serial port reception, the data sender is determined to be the host computer; if the data receiving channel is Bluetooth reception, the data sender is determined to be the user application end; When the data sender is the host computer, a TTS text-to-speech playback action is performed based on the serial port data sent by the host computer, or the serial port data is directly transparently transmitted and forwarded to the user application end, wherein the serial port data at least includes a serial port data TTS text-to-speech playback instruction and serial port transparent transmission data; When the data sender is the user application end, an action of directly transparently forwarding the Bluetooth data to the host computer is performed based on the Bluetooth data sent by the user application end, wherein the Bluetooth data at least includes Bluetooth transparent transmission data.
2. The method according to claim 1, characterized in that The Bluetooth TTS chip also includes a pure serial port mode, the power consumption of which is lower than that of the serial port Bluetooth hybrid mode. After the Bluetooth TTS chip leaves the factory, its startup operation mode is the pure serial port mode or the serial port Bluetooth hybrid mode. In the pure serial port mode, the Bluetooth TTS chip does not turn on the Bluetooth function and cannot receive the Bluetooth data sent by the user application. After the Bluetooth TTS chip receives the serial port data Bluetooth function turn-on instruction sent by the host computer, it executes the Bluetooth function turn-on action and enters the serial port Bluetooth hybrid mode; In the serial port Bluetooth hybrid mode, when the Bluetooth TTS chip receives a serial port data instruction to turn off the Bluetooth function sent by the host computer, or receives a Bluetooth instruction to turn off the Bluetooth function sent by the user application, it executes the action of turning off the Bluetooth function and enters the pure serial port mode.
3. The method according to any one of claims 1 to 2, characterized in that The Bluetooth data sent by the user application terminal at least includes one or more instructions of Bluetooth data TTS text-to-speech playback instructions, Bluetooth data parsing instructions and Bluetooth data action instructions.
4. The method according to claim 3, characterized in that In the serial port Bluetooth hybrid mode, after receiving the Bluetooth data sent by the user application, judging whether the Bluetooth data is the Bluetooth transparent transmission data based on a preset instruction format; If the Bluetooth data conforms to the instruction format of the preset Bluetooth data parsing instruction, the Bluetooth data is judged to be the Bluetooth data parsing instruction, and the Bluetooth data is parsed, and the parsed data is forwarded to the host computer; If the Bluetooth data conforms to the command format of the preset Bluetooth data TTS text-to-speech playback command, the Bluetooth data is determined to be the Bluetooth data TTS text-to-speech playback command, and the TTS text-to-speech playback action is executed; If the Bluetooth data conforms to the instruction format of the preset Bluetooth data action instruction, the Bluetooth data is determined to be the Bluetooth data action instruction, and a processing action corresponding to the Bluetooth data action instruction is executed; Otherwise, it is determined that the Bluetooth data is Bluetooth transparent transmission data, and the Bluetooth transparent transmission data is directly transparently forwarded to the host computer.
5. The method according to claim 3, characterized in that In the serial port Bluetooth hybrid mode, after receiving the Bluetooth data sent by the user application, judging whether the Bluetooth data is the Bluetooth transparent transmission data according to the set command function mode and transparent transmission function mode, wherein after the Bluetooth TTS chip leaves the factory, its function mode is the transparent transmission function mode or the command function mode; All Bluetooth data received in the transparent transmission function mode are identified as Bluetooth transparent transmission data; The Bluetooth data received in the command function mode at least includes the Bluetooth data TTS text-to-speech playback instruction, the Bluetooth data action instruction, the Bluetooth data parsing instruction and the error instruction, wherein the Bluetooth data action instruction includes a Bluetooth data entering transparent transmission function mode instruction and a Bluetooth data exiting transparent transmission function mode instruction; In the command function mode, when a Bluetooth data entering transparent transmission function mode command is received from the user application end, the command function mode is switched to the transparent transmission function mode; when a Bluetooth data exiting transparent transmission function mode command is received from the user application end, the transparent transmission function mode is switched to the command function mode.
6. The method according to claim 4, characterized in that After receiving the Bluetooth data TTS text-to-speech playback instruction or Bluetooth data action instruction sent by the user application end and completing the processing action corresponding to the received instruction, the Bluetooth TTS chip returns the processing result or query result to the user application end; After receiving the Bluetooth data parsing instruction sent by the user application end and forwarding the data parsing to the host computer, the data sending result is returned to the user application end; After receiving the Bluetooth transparent transmission data sent by the user application end and transparently transmitting the data to the host computer, the data transmission result is transmitted back to the user application end, wherein the processing result, the query result and the data transmission result are not the transparent transmission data and parsed data forwarded by the Bluetooth TTS chip to the host computer.
7. The method according to any one of claims 1 to 2, characterized in that The serial port data sent by the host computer at least includes one or more instructions of serial port data parsing instructions and serial port data action instructions.
8. The method according to claim 7, characterized in that In the serial port Bluetooth hybrid mode, after receiving the serial port data sent by the host computer, judging whether the serial port data is the serial port transparent transmission data based on a preset instruction format; If the serial port data conforms to the preset instruction format of the serial port data parsing instruction, the serial port data is determined to be the serial port data parsing instruction, and the serial port data is parsed, and the parsed data is forwarded to the user application end; If the serial port data conforms to the preset instruction format of the serial port data TTS text-to-speech playback instruction, then the serial port data is determined to be the serial port data TTS text-to-speech playback instruction, and the TTS text-to-speech playback action is executed; If the serial port data conforms to the preset instruction format of the serial port data action instruction, the serial port data is determined to be the serial port data action instruction, and a processing action corresponding to the serial port data action instruction is executed; Otherwise, it is determined that the serial port data is serial port transparent transmission data, and the serial port transparent transmission data is directly transparently forwarded to the user application end.
9. The method according to claim 7, characterized in that In the serial port Bluetooth hybrid mode, after receiving the serial port data sent by the host computer, it is determined whether the serial port data is the serial port transparent transmission data according to the set command function mode and transparent transmission function mode, wherein, after the Bluetooth TTS chip leaves the factory, its function mode is the transparent transmission function mode or the command function mode: All serial port data received in the transparent transmission function mode are identified as serial port transparent transmission data; The serial port data received in the command function mode at least includes the serial port data TTS text-to-speech playback instruction, the serial port data action instruction, the serial port data parsing instruction and the error instruction, wherein the serial port data action instruction includes a serial port data entering transparent transmission function mode instruction and a serial port data exiting transparent transmission function mode instruction; In the command function mode, when the serial port data entering transparent transmission function mode instruction sent by the host computer is received, the command function mode is switched to the transparent transmission function mode; when the serial port data exiting transparent transmission function mode instruction sent by the host computer is received, the transparent transmission function mode is switched to the command function mode.
10. The method according to claim 7, characterized in that After the Bluetooth TTS chip processes the action corresponding to the data sent by the data sender, it will return the processing result, query result or data sending result to the data sender: After receiving the serial port data TTS text-to-speech playback instruction or the serial port data action instruction sent by the host computer and completing the processing action corresponding to the received instruction, the processing result or the query result is returned to the host computer; After receiving the serial port data parsing instruction sent by the host computer and forwarding the data parsing to the user application end, the data sending result is returned to the host computer; After receiving the serial port transparent transmission data sent by the host computer and transparently transmitting the data to the user application end, the data transmission result is transmitted back to the host computer, wherein the processing result, the query result and the data transmission result are not the transparent transmission data and parsed data forwarded by the Bluetooth TTS chip to the user application end.
11. The method according to any one of claims 1 to 2, characterized in that: After the user application establishes a Bluetooth connection with the Bluetooth TTS chip, the Bluetooth TTS chip will actively send Bluetooth connection notification information to the host computer in a set format, and the Bluetooth connection notification information at least includes the connection service UUID, connection communication mode, MAC physical address and other Bluetooth information; After the user application disconnects the Bluetooth connection with the Bluetooth TTS chip, the Bluetooth TTS chip will actively send a Bluetooth disconnection notification message to the host computer, wherein the Bluetooth connected notification message and the Bluetooth disconnected notification message are not transparent transmission data or parsed data forwarded by the Bluetooth TTS chip to the host computer.
12. The method according to any one of claims 1 to 2, characterized in that During the process of Bluetooth pairing, Bluetooth connection or Bluetooth disconnection between the user application end and the Bluetooth TTS chip, the host computer or the user application end may send the TTS text-to-speech playback instruction to the Bluetooth TTS chip to provide a progress reminder, wherein the TTS broadcast content for the progress reminder includes at least Bluetooth pairing, Bluetooth connected, Bluetooth disconnected or other Bluetooth process reminder content.
13. The method according to any one of claims 1 to 2, characterized in that: The Bluetooth TTS chip includes an MCU-SOC main control die and a storage die, and the content stored in the storage die at least includes a code area and a TTS resource area; When the Bluetooth TTS chip is powered on and works, the MCU-SOC main control die reads and runs the preset code from the code area; When the Bluetooth TTS chip performs the TTS text-to-speech playback operation, the MCU-SOC main control die needs to read the TTS resources from the TTS resource area.
14. The method according to claim 13, characterized in that The content stored in the storage die of the Bluetooth TTS chip also includes one or more of an audio resource area, a custom text resource area, and a custom MP3 resource area; When the Bluetooth TTS chip performs an audio decoding and playing action, the MCU-SOC main control bare chip reads the audio resource from the audio resource area; When the Bluetooth TTS chip executes the custom text playback action of the specified sequence number, the MCU-SOC main control bare chip reads the custom text resource from the custom text resource area; When the Bluetooth TTS chip executes the custom MP3 playing action of the specified sequence number, the MCU-SOC main control bare chip reads the custom MP3 resource from the custom MP3 resource area.
15. The method according to claim 13, characterized in that The content stored in the storage die of the Bluetooth TTS chip also includes a configuration parameter storage area; The configuration parameter storage area includes at least one or more of a TTS parameter storage area, an audio parameter storage area, a Bluetooth parameter storage area and a general parameter storage area; The Bluetooth TTS chip can respond to the serial data audio parameter configuration instruction sent by the host computer or the Bluetooth data audio parameter configuration instruction sent by the user application end to configure and modify the parameters of the audio parameter storage area; The Bluetooth TTS chip can respond to the serial data Bluetooth parameter configuration instruction sent by the host computer or the Bluetooth data Bluetooth parameter configuration instruction sent by the user application end to configure and modify the parameters of the Bluetooth parameter storage area; The Bluetooth TTS chip can respond to the serial port data universal parameter configuration instruction sent by the host computer or the Bluetooth data universal parameter configuration instruction sent by the user application end to configure and modify the parameters of the universal parameter storage area; The Bluetooth TTS chip can respond to the relevant parameter configuration modification instructions sent by the host computer or the user application end, modify one parameter in the parameter storage area or configure and modify multiple parameters at the same time. When any parameter in the configuration parameter storage area is configured and modified to a different value, it will be saved in the storage bare chip in real time, and the configured parameters will not be lost when the Bluetooth TTS chip is powered off or in deep sleep.
16. The method according to claim 15, characterized in that After the Bluetooth TTS chip receives the relevant parameter configuration instruction, if all the configured parameters are the same as the corresponding parameters in the configuration parameter storage area, the parameter configuration modification action is not performed; If at least one of the configured parameters is different from the corresponding parameter in the configuration parameter storage area, the parameter configuration modification action corresponding to the parameter configuration instruction is executed, wherein the storage bare chip divides the configuration parameter storage area into N blocks, and all parameters are stored in the first block when leaving the factory; when a parameter is changed, all parameters are assembled into new data in sequence and written to the second block, the third block, ... until the Nth block; when a parameter is changed again, the storage bare chip will erase the configuration parameter storage area as a whole, assemble all parameters into new data and rewrite them to the first block, and repeat this process, and finally send the result of whether the parameter configuration modification is successful to the host computer or the user application end, thereby completing the parameter configuration modification action.
17. The method according to claim 15, characterized in that The Bluetooth TTS chip supports entering three low-power states when there is no task. The serial port tasks of the host computer at least include serial port data TTS text-to-speech playback instruction execution tasks, serial port transparent data transmission tasks, serial port data action instruction execution tasks and serial port data analysis instruction execution tasks; The Bluetooth tasks of the user application end include at least a Bluetooth data TTS text-to-speech playback instruction execution task, a Bluetooth transparent transmission data transparent transmission task, a Bluetooth data action instruction execution task, and a Bluetooth data parsing instruction execution task; wherein the configuration parameter storage area of the Bluetooth TTS chip has stored the parameters required to execute the serial port task and the Bluetooth task; Before the host computer and the user application end issue tasks, the host computer powers on the Bluetooth TTS chip, and then issues one or more tasks among the serial port tasks and the Bluetooth tasks. The Bluetooth TTS chip reads relevant parameters from the configuration parameter storage area to quickly execute tasks. When all tasks are executed and there are no new tasks within a set time, the host computer powers off the Bluetooth TTS chip, so that the Bluetooth TTS chip is powered off when there is no task and achieves zero power consumption; Before the host computer and the user application end issue a task, the host computer sends a deep wake-up instruction to the Bluetooth TTS chip to wake it up from deep sleep, and then issues one or more tasks in the serial port task and the Bluetooth task. The Bluetooth TTS chip reads relevant parameters from the configuration parameter storage area to quickly execute tasks. When all tasks are completed and there are no new tasks within the set time, the host computer sends a deep sleep instruction to the Bluetooth TTS chip to put it into deep sleep, so that the Bluetooth TTS chip enters the first low-power state of deep sleep when there is no task. In this state, the host computer can wake up the Bluetooth TTS chip from the deep sleep state, and the user application end cannot wake up the Bluetooth TTS chip from the deep sleep state; Before issuing a task, the host computer and the user application end send a shallow wake-up instruction to the Bluetooth TTS chip to wake it up from light sleep, and then issue one or more tasks among the serial port task and the Bluetooth task. The Bluetooth TTS chip reads relevant parameters from the configuration parameter storage area to quickly execute tasks. When all tasks are executed and there are no new tasks within the set time, the host computer or the user application end sends a shallow sleep instruction to the Bluetooth TTS chip to put it into light sleep, so that the Bluetooth TTS chip enters the second low power consumption state of shallow sleep when there is no task. In this state, the user application end and the host computer can wake up the Bluetooth TTS chip from light sleep.
18. The method according to claim 15, characterized in that The Bluetooth TTS chip can perform at least one of the actions of restoring default TTS parameters, configuring one TTS parameter, or configuring multiple TTS parameters simultaneously based on the received serial data TTS parameter configuration instruction sent by the host computer or the Bluetooth data TTS parameter configuration instruction sent by the user application; When executing the serial port data TTS text-to-speech playback instruction, the Bluetooth data TTS text-to-speech playback instruction, the serial port data custom text playback instruction or the Bluetooth data custom text playback instruction, the Bluetooth TTS chip reads the TTS parameters from the TTS parameter storage area and performs the playback action.
19. The method according to claim 15, characterized in that The Bluetooth TTS chip can perform at least one of the actions of restoring default audio parameters, configuring one audio parameter, or configuring multiple audio parameters simultaneously based on the received serial data audio parameter configuration instruction sent by the host computer or the Bluetooth data audio parameter configuration instruction sent by the user application; When executing a serial port data audio decoding instruction, a Bluetooth data audio decoding instruction, a serial port data custom MP3 playback instruction or a Bluetooth data custom MP3 playback instruction, the Bluetooth TTS chip reads audio parameters from the audio parameter storage area and performs a playback action.
20. The method of claim 15, wherein: The Bluetooth TTS chip can perform at least one of the following actions: restoring the default Bluetooth parameters, configuring one Bluetooth parameter, or configuring multiple Bluetooth parameters simultaneously, based on the received serial port data Bluetooth parameter configuration instruction sent by the host computer, or the Bluetooth data Bluetooth parameter configuration instruction sent by the user application; The Bluetooth parameters at least include the Bluetooth name, MAC physical address, service UUID, enable UUID, Bluetooth broadcast data packet, Bluetooth scan response data packet, Bluetooth broadcast period, Bluetooth broadcast channel, number of Bluetooth transmission packet bytes, RSSI signal strength, Bluetooth transmit power, Bluetooth broadcast interval, Bluetooth connection interval, Bluetooth minimum connection interval, Bluetooth maximum connection interval, Bluetooth connection delay interval and Bluetooth connection timeout interval; When the Bluetooth function is turned on, the Bluetooth TTS chip reads the Bluetooth parameters from the Bluetooth parameter storage area and executes the action of turning on the Bluetooth function.
21. The method of claim 15, wherein: The Bluetooth TTS chip can at least perform an action of restoring default universal parameters, configure one universal parameter or one of multiple configuration actions performed simultaneously based on the received serial port data universal parameter configuration instructions sent by the host computer, or the Bluetooth data universal parameter configuration instructions sent by the user application, wherein the universal parameters at least include serial port communication baud rate parameters and boot chip operation mode.
22. The method according to claim 21, characterized in that When the Bluetooth TTS chip is powered on, reset or restarted, or awakened from deep sleep, the serial port communication baud rate parameter is read from the general parameter storage area, and the serial port communication between the Bluetooth TTS chip and the host computer is performed based on the read serial port communication baud rate; After the Bluetooth TTS chip modifies the serial communication baud rate parameter based on the general parameter configuration instruction sent by the host computer or the user application, the serial communication baud rate parameter will take effect in real time, and the serial communication between the Bluetooth TTS chip and the host computer will be performed at the latest configured serial communication baud rate.
23. The method of claim 21, wherein: When the Bluetooth TTS chip is powered on, reset or restarted, or awakened from deep sleep, the boot chip operation mode parameters are read from the general parameter storage area, and the pure serial port mode or the serial port Bluetooth hybrid mode is selected according to the boot chip operation mode parameters; After the Bluetooth TTS chip modifies the boot chip operation mode parameters based on the universal parameter configuration instructions sent by the host computer or the user application, the boot chip operation mode parameters will be saved in the universal parameter storage area of the storage die of the Bluetooth TTS chip. The next time the Bluetooth TTS chip is powered on, reset or restarted, or awakened from deep sleep, the boot chip operation mode parameters will be read from the universal parameter storage area, and the pure serial port interaction mode or the serial port Bluetooth mixed mode will be selected according to the boot chip operation mode parameters.
24. The method of claim 13, wherein: The MCU-SOC main control bare chip of the Bluetooth TTS chip can be connected to the external NOR FLASH based on the external pin. When the storage space of the storage bare chip does not meet the storage conditions, the external NOR FLASH can be used as an extended storage. The Bluetooth TTS chip can perform pre-storage, addition and deletion management and modification of data on the external NOR FLASH; the data stored in the external NOR FLASH may include one or more of TTS resources, audio resources, custom text resources, custom MP3 resources and parameter resources; the data stored in the external NOR FLASH cannot include code, and the code must be stored in the storage bare chip; Data other than codes may be stored in the external NOR FLASH and the storage bare chip respectively, or all of them may be stored in the external NOR FLASH.
25. The method of claim 13, wherein: During the Bluetooth pairing process based on the Bluetooth TTS chip, if the user performs a Bluetooth connection based on the identity information selected by the user application, the Bluetooth TTS chip broadcasts a broadcast data packet containing a first identity information, and the user application parses the broadcast data packet and outputs the identity information obtained by parsing; if the identity information selected by the user matches the first identity information, the user application establishes a Bluetooth connection with the Bluetooth TTS chip; or If there is no need for the user to establish a Bluetooth connection based on the identity information selected by the user application, after the user application receives a broadcast data packet containing the first identity information, if the identity information of the broadcast data packet matches the identity information preset by the user application, the user application establishes a Bluetooth connection with the Bluetooth TTS chip, wherein the first identity includes at least one of the Bluetooth name, MAC physical address and other identity information of the Bluetooth TTS chip.
26. The method of claim 25, wherein: If it is not necessary for the user to select identity information based on the user application end for Bluetooth connection, and the first identity information is one of the Bluetooth name of the Bluetooth TTS chip and other identity information, during the first connection process, after the user application end establishes a Bluetooth connection with the Bluetooth TTS chip based on the first identity information, the Bluetooth TTS chip stores the second identity information of the user application end, where the second identity information includes at least one of the MAC physical address of the user application end or other identity information; When it is not the first connection, the Bluetooth TTS chip broadcasts a broadcast data packet containing the second identity information. After the user application receives the broadcast data packet, if the broadcast data packet contains the second identity information, the user application establishes a Bluetooth connection with the Bluetooth TTS chip.
27. The method of claim 25, wherein: The Bluetooth parameter storage area of the storage die of the Bluetooth TTS chip is preset with a preset broadcast data packet containing identity information when leaving the factory; The broadcast data packet may be a broadcast data packet configured by the host computer or the user application terminal by sending a Bluetooth parameter configuration instruction to the Bluetooth TTS chip.
28. An information processing device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the information processing method based on a Bluetooth TTS chip as described in any one of claims 1 to 27.
29. The information processing device according to claim 28, characterized in that The information processing device is a smart Bluetooth device.
30. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the information processing method based on the Bluetooth TTS chip as described in any one of claims 1 to 27 are implemented.
31. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the information processing method based on a Bluetooth TTS chip as claimed in any one of claims 1 to 27 are implemented.
