Handwriting pen, and voice control method based on handwriting pen
Patent Information
- Application Number
- CN202611072047.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-17
- Publication Date
- 2026-10-20
AI Technical Summary
传统语音触发方式单一,多依赖人工按键触发、单一传感触发等方式,触发逻辑灵敏性不足,易出现误触发或触发延迟现象,例如环境轻微干扰导致误启动语音采集,或复杂操作场景下无法及时响应语音交互需求,严重影响用户使用体验
[0049]上述手写笔,以及基于手写笔的语音控制方法,依托SAR传感器实现近距离预判断,结合气流传感器完成行为意图二次验证,采用多传感协同触发机制,有效规避环境干扰引发的功能误启动,显著提升手写笔语音交互的稳定性与抗干扰能力;通过分级启动传感模块的方式,降低设备待机能耗,延长手写笔续航时长;同时结合循环缓冲区存储缓冲语音数据,弥补触发瞬间的语音信息缺失,保证语音指令的完整性与识别精度,实现流畅、精准的远距离语音控制交互,优化用户使用体验。
Smart Images

Figure FT_1 
Figure FT_2 
Figure FT_3
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic device technology, and in particular to a stylus and a voice control method based on the stylus. Background Technology
[0002] With the development of touch technology and mobile office, styluses have become an important accessory for electronic devices such as smartphones and tablets. Modern styluses are no longer limited to writing and drawing; their functions are constantly expanding, and integrating voice interaction functions has become an important development trend to provide a more convenient way to input commands.
[0003] Currently, styluses equipped with voice interaction functions have many technical shortcomings in actual use. Traditional voice triggering methods are singular, relying mainly on manual button triggering or single sensor triggering. The triggering logic lacks sensitivity and is prone to false triggering or triggering delays. For example, slight environmental interference may cause voice acquisition to be accidentally activated, or the styluse may fail to respond to voice interaction needs in a timely manner in complex operation scenarios, which seriously affects the user experience. Summary of the Invention
[0004] Therefore, it is necessary to provide a stylus and a voice control method based on the stylus to address the aforementioned technical issues, enabling smooth and accurate long-distance voice control interaction and optimizing the user experience.
[0005] In a first aspect, this application provides a stylus, comprising:
[0006] ontology;
[0007] A specific absorption rate SAR sensor configured in the body is used to detect the distance between the body and the target object;
[0008] A sound acquisition device configured in the main body is used to acquire voice data;
[0009] An airflow sensor, configured within the main body, is used to detect the airflow around the main body;
[0010] And a controller configured in the main body, which is connected to the SAR sensor, the sound acquisition device and the airflow sensor, and the controller is used for:
[0011] If the distance between the body and the target object is determined to be less than or equal to a preset distance threshold based on the sensing signal sent by the SAR sensor, then the sound acquisition device and the airflow sensor are activated.
[0012] If an airflow change signal is received from the airflow sensor within a preset time period, the sound acquisition device is controlled to collect real-time voice data.
[0013] Send real-time voice data and buffered voice data to the target terminal so that the target terminal can perform voice control operations;
[0014] The target terminal is the terminal that establishes communication with the stylus; the buffered voice data is the voice acquisition device that collects and stores the voice data in the stylus's circular buffer during the pre-start time period; the pre-start time period is the time period between the start of the voice acquisition device and the start of the control of the voice acquisition device to collect real-time voice data.
[0015] In one embodiment, the body includes a pen body and a pen tip;
[0016] The SAR sensor is embedded or attached to a preset area of the pen body; wherein the preset area is the grip area, or the connection area between the pen body and the pen tip; the SAR sensor is one of a ring sensor and two symmetrically arranged point SAR sensors.
[0017] In one embodiment, if the SAR sensor is a ring sensor, the controller is used to:
[0018] Based on the sensing signal sent by the SAR sensor, the real-time sensing distance between the pen body and the target object is determined; if the real-time sensing distance is less than or equal to a preset distance threshold, the distance between the pen body and the target object is determined to be less than or equal to the preset distance threshold.
[0019] In one embodiment, the SAR sensor is two symmetrically arranged point SAR sensors, and the controller is used to:
[0020] The sensor simultaneously acquires the sensing signals output by two symmetrically arranged point SAR sensors; if the signal strength of the sensing signals from the two symmetrically arranged point SAR sensors increases simultaneously, it is determined that the distance between the body and the target object is less than or equal to a preset distance threshold.
[0021] In one embodiment, the airflow sensor is located at the end of the pen body away from the pen tip; the airflow sensor is one of a microelectromechanical system (MEMS) thermal flow sensor, a micro differential pressure sensor, and a thin-film airflow sensor.
[0022] In one embodiment, when the controller activates the sound acquisition device and the airflow sensor, it performs the following functions:
[0023] An activation command is sent to the sound acquisition device; wherein the activation command is used to instruct the sound acquisition device to switch from a sleep state to an operating state in order to acquire voice data around the stylus; and a wake-up command is sent to the airflow sensor; wherein the wake-up command is used to instruct the airflow sensor to enter an airflow detection state in order to detect changes in airflow near the stylus.
[0024] In one embodiment, the controller is also configured to:
[0025] If no airflow change signal is received from the airflow sensor within the preset time period, the sound acquisition device and the airflow sensor will be put into sleep mode, and the buffered voice data stored in the loop buffer will be cleared.
[0026] In one embodiment, the controller is also configured to:
[0027] If the distance between the main body and the target object is determined to be greater than a preset distance threshold based on the sensing signal sent by the SAR sensor, the sound acquisition device and the airflow sensor are controlled to enter a sleep state, and the buffered voice data stored in the circular buffer is cleared.
[0028] Secondly, this application provides a voice control method based on a stylus, applied to a controller of the stylus, comprising:
[0029] If the distance between the stylus and the target object is determined to be less than or equal to a preset distance threshold based on the sensing signal sent by the SAR sensor, then the sound acquisition device and airflow sensor in the stylus are activated.
[0030] If an airflow change signal is received from the airflow sensor within a preset time period, the sound acquisition device is controlled to collect real-time voice data.
[0031] Send real-time voice data and buffered voice data to the target terminal so that the target terminal can perform voice control operations;
[0032] The target terminal is the terminal that establishes communication with the stylus; the buffered voice data is the voice acquisition device that collects and stores the voice data in the stylus's circular buffer during the pre-start time period; the pre-start time period is the time period between the start of the voice acquisition device and the start of the control of the voice acquisition device to collect real-time voice data.
[0033] In one embodiment, the method further includes:
[0034] If no airflow change signal is received from the airflow sensor within the preset time period, the sound acquisition device and the airflow sensor will be put into sleep mode, and the buffered voice data stored in the loop buffer will be cleared.
[0035] Thirdly, this application also provides a voice control device based on a stylus, comprising:
[0036] The device startup module is used to activate the sound acquisition device and airflow sensor in the stylus if the distance between the stylus body and the target object is less than or equal to a preset distance threshold, based on the sensing signal sent by the SAR sensor.
[0037] The data acquisition module is used to control the sound acquisition device to collect real-time voice data if an airflow change signal sent by the airflow sensor is received within a preset time period.
[0038] The voice control module is used to send real-time voice data and buffered voice data to the target terminal so that the target terminal can perform voice control operations; wherein, the target terminal is the terminal that establishes communication with the stylus; the buffered voice data is collected by the sound acquisition device and stored in the stylus's circular buffer during the pre-start time period; the pre-start time period is the time period from when the sound acquisition device is started to before the control of the sound acquisition device to collect real-time voice data.
[0039] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:
[0040] If the distance between the stylus and the target object is determined to be less than or equal to a preset distance threshold based on the sensing signal sent by the SAR sensor, then the sound acquisition device and airflow sensor in the stylus are activated.
[0041] If an airflow change signal is received from the airflow sensor within a preset time period, the sound acquisition device is controlled to collect real-time voice data.
[0042] Send real-time voice data and buffered voice data to the target terminal so that the target terminal can perform voice control operations;
[0043] The target terminal is the terminal that establishes communication with the stylus; the buffered voice data is the voice acquisition device that collects and stores the voice data in the stylus's circular buffer during the pre-start time period; the pre-start time period is the time period between the start of the voice acquisition device and the start of the control of the voice acquisition device to collect real-time voice data.
[0044] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps:
[0045] If the distance between the stylus and the target object is determined to be less than or equal to a preset distance threshold based on the sensing signal sent by the SAR sensor, then the sound acquisition device and airflow sensor in the stylus are activated.
[0046] If an airflow change signal is received from the airflow sensor within a preset time period, the sound acquisition device is controlled to collect real-time voice data.
[0047] Send real-time voice data and buffered voice data to the target terminal so that the target terminal can perform voice control operations;
[0048] The target terminal is the terminal that establishes communication with the stylus; the buffered voice data is the voice acquisition device that collects and stores the voice data in the stylus's circular buffer during the pre-start time period; the pre-start time period is the time period between the start of the voice acquisition device and the start of the control of the voice acquisition device to collect real-time voice data.
[0049] The aforementioned stylus, and the voice control method based on the stylus, rely on a SAR sensor to achieve near-range pre-judgment, and combine with an airflow sensor to complete the behavioral intention. Figure 2 This verification employs a multi-sensor collaborative triggering mechanism to effectively avoid accidental function activation caused by environmental interference, significantly improving the stability and anti-interference capability of the stylus's voice interaction. By tiered activation of the sensor modules, it reduces device standby power consumption and extends the stylus's battery life. Simultaneously, it combines a circular buffer to store and buffer voice data, compensating for the loss of voice information at the moment of triggering, ensuring the integrity and recognition accuracy of voice commands, achieving smooth and accurate long-distance voice control interaction, and optimizing the user experience. Attached Figure Description
[0050] To more clearly illustrate the technical solutions in the embodiments or related technologies of this application, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0051] Figure 1 This is a schematic diagram illustrating the principle of a stylus provided in one embodiment;
[0052] Figure 2 This is a block diagram illustrating the principle of a stylus provided in one embodiment;
[0053] Figure 3 This is a flowchart illustrating a voice control method based on a stylus in one embodiment;
[0054] Figure 4 This is a flowchart illustrating the process of determining whether the distance between the body and the target object is less than or equal to a preset distance threshold in one embodiment.
[0055] Figure 5 This is a flowchart illustrating the process of determining whether the distance between the body and the target object is less than or equal to a preset distance threshold in another embodiment.
[0056] Figure 6 This is a schematic diagram of the process for activating the sound acquisition device and the airflow sensor in one embodiment;
[0057] Figure 7 This is a flowchart illustrating a voice control method based on a stylus in another embodiment;
[0058] Figure 8 This is a structural block diagram of a voice control device based on a stylus in one embodiment. Detailed Implementation
[0059] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0060] With the development of touch technology and mobile office capabilities, styluses have become an essential accessory for electronic devices such as smartphones and tablets. Modern styluses are no longer limited to writing and drawing; their functions are constantly expanding, with integrated voice interaction becoming a significant trend to provide more convenient command input. Currently, regardless of the triggering method used, voice activation solutions for styluses typically have a brief time lag between the generation of the trigger signal and the full activation of the microphone. If the user speaks quickly, the beginning of the command may be lost, leading to voice recognition failure or incomplete commands, thus impacting the user experience.
[0061] To address the aforementioned challenges, the stylus provided in this application embodiment can be applied to, for example... Figure 1 In the application environment shown, the stylus includes a body; a Specific Absorption Rate (SAR) sensor configured in the body for detecting the distance between the body and a target object; a sound acquisition device configured in the body for acquiring voice data; an airflow sensor configured in the body for detecting airflow around the body; and a controller configured in the body, the controller being connected to the SAR sensor, the sound acquisition device, and the airflow sensor, and the controller being configured to: activate the sound acquisition device and the airflow sensor if the distance between the body and the target object is determined to be less than or equal to a preset distance threshold based on the sensing signal sent by the SAR sensor; control the sound acquisition device to acquire real-time voice data if an airflow change signal sent by the airflow sensor is received within a preset time period; and send real-time voice data and buffered voice data to a target terminal to enable the target terminal to perform voice control operations; wherein, the target terminal is a terminal that establishes communication with the stylus; the buffered voice data is acquired by the sound acquisition device and stored in the stylus's circular buffer during a pre-start time period; the pre-start time period is the time period between the start of the sound acquisition device and before controlling the sound acquisition device to acquire real-time voice data.
[0062] A stylus is a portable interactive tool adapted to touch-screen smart terminals. It has a pen-like structure and can physically contact the touchscreen to achieve functions such as writing, tapping, control, and interaction. It is widely used in tablet computers, touch-screen computers, smart tablets, and touch-screen all-in-one devices. The stylus body is the main supporting structure of the stylus, a one-piece rigid shell structure that serves as the mounting, fixing, and protective carrier for all functional components. The body provides overall mechanical structural support, ensuring the mechanical structure for holding and writing with the stylus; internally, it has reserved sealed / installation cavities to accommodate various sensors, data acquisition devices, controllers, circuits, and power supply modules; it possesses basic performance characteristics such as dustproof, impact-proof, and electromagnetic shielding to reduce external environmental interference and ensure the stable operation of internal sensing components. The target terminal refers to a smart terminal device that establishes a wireless / wired communication connection with the stylus, can receive data transmitted by the stylus, and execute corresponding control operations. For example, the target terminal can be a tablet, smart touch-screen computer, handheld smart device, touch-screen all-in-one device, portable smart terminal, or other touch-screen smart device that can be used with a stylus.
[0063] In one embodiment, such as Figure 1 and Figure 2 As shown, a stylus is provided, including: a body; a specific absorption rate (SAR) sensor disposed in the body for detecting the distance between the body and a target object; a sound acquisition device disposed in the body for acquiring voice data; an airflow sensor disposed in the body for detecting airflow around the body; and a controller disposed in the body, the controller being connected to the SAR sensor, the sound acquisition device, and the airflow sensor.
[0064] The main structure of the stylus is its shell, providing mounting, structural support, and protection for various functional sensors, electrical components, and control modules, thus forming the stylus's overall shape and grip. The SAR sensor is integrated into the pen body or a designated location on the outer wall using either embedded or adhesive methods. Its compact layout adapts to the miniaturized design of the stylus, avoids interference from external structures, and ensures stable sensing performance. The grip area corresponds to the area where the user holds the stylus, facilitating close-range sensing of targets such as the human hand.
[0065] Among them, the SAR sensor is a near-field sensing sensor, which differs from traditional electromagnetic induction. Its core function is to detect the spatial distance between the stylus and the target object (human body, hand, head, etc.). The SAR sensor uses the principles of electromagnetic induction and near-field coupling induction to emit sensing signals in real time and receive feedback signals. Based on the signal strength and changes in coupling, it quantifies and calculates the relative distance between the stylus and surrounding target objects.
[0066] In one embodiment, the pen body includes a pen body and a pen tip; a SAR sensor is embedded or attached to a preset area on the pen body; wherein, the preset area is a grip area, or the connection area between the pen body and the pen tip; the SAR sensor is one of a ring sensor and two symmetrically arranged point SAR sensors. The ring SAR sensor, with a ring structure, surrounds the preset position on the pen body, possessing 360° omnidirectional sensing capability, a comprehensive sensing range, no blind spots, and the ability to detect the distance to targets around the pen from all directions. The symmetrically arranged point SAR sensors use two independent point sensing units, symmetrically fixed on both sides of the pen body, with a simple structure, small footprint, and strong detection direction targeting, reducing hardware costs while ensuring accuracy in near-field sensing. The preset area is a pre-defined specific installation position on the pen body, including two types: a grip area and a pen body-tip connection area; the grip area is the area on the pen body corresponding to the hand grip, facilitating near-field human body sensing. The pen body-tip connection area is the connecting part at the front end of the pen, located between the front section of the pen body and the pen tip.
[0067] Optionally, the stylus body consists of a pen body and a pen tip; the SAR sensor is fixed to a preset area of the pen body by embedding or attaching, which can be the grip area of the stylus or the connection area between the pen body and the pen tip; depending on the structural design requirements, the SAR sensor can be a ring sensor or two symmetrically arranged point SAR sensors; the ring SAR sensor can form a surrounding sensing area to achieve 360° omnidirectional distance detection; the two point SAR sensors are arranged symmetrically on both sides of the pen body, relying on bidirectional sensing signals for collaborative discrimination. Both structures can stably collect electromagnetic induction signals of surrounding target objects, providing reliable sensing data for distance judgment. In this embodiment, the SAR sensor is flexibly arranged in the grip area or the connection area between the pen body and the pen tip, conforming to the actual usage conditions of the stylus, and can accurately sense the user's close proximity. At the same time, it provides two sensing structure schemes, namely ring and symmetrical dot, to adapt to different pen body structure designs, installation space and cost requirements. The combination of all-round or bidirectional sensing effectively eliminates detection blind spots, reduces environmental electromagnetic interference, improves the sensitivity and stability of distance detection, provides a reliable pre-judgment basis for subsequent multi-sensor linkage triggering mechanisms, and reduces the phenomenon of false triggering of voice function.
[0068] The sound acquisition device is an acoustic acquisition hardware integrated inside the stylus, typically a combination of a miniature microphone, a pickup module, and a voice acquisition chip. It is used to capture ambient sound signals in real time, converting analog sound signals into electrical signals. It possesses signal acquisition and noise reduction preprocessing capabilities, and can collect audio data such as ambient noise and human voice. In this embodiment, it supports buffered voice acquisition during the pre-start phase, storing voice data in the stylus's built-in circular buffer. After activation, it acquires real-time ambient voice data, providing raw data for terminal voice control and voice command recognition. In conjunction with control logic, it can start and stop as needed, avoiding power waste caused by prolonged idle acquisition. The airflow sensor incorporates a miniature fluid sensing element to detect airflow velocity, airflow disturbance, and airflow changes in the stylus's external environment in real time. Based on the principles of thermal sensing, pressure sensing, and micro-airflow sensing, it captures subtle parameter changes caused by airflow and outputs an electrical signal indicating airflow change. In this embodiment, the airflow sensor serves as a secondary verification trigger condition for the voice interaction function. Combined with human operation actions (airflow disturbances caused by hand movements, breathing, and gripping actions), it helps to determine the user's true interaction intention, filters out false triggers caused by simple close proximity (only close proximity without movement or airflow changes will not trigger voice upload), and significantly improves anti-interference capabilities.
[0069] In one embodiment, the airflow sensor is located at the end of the pen body furthest from the tip. The airflow sensor is one of three types: a micro-electro-mechanical system (MEMS) thermal flow sensor, a differential pressure sensor, and a thin-film airflow sensor. The pen body end refers to the distal portion of the stylus pen body furthest from the tip, which is the dedicated mounting location for the airflow sensor. A MEMS thermal flow sensor is a miniature sensor that detects airflow fluctuations by utilizing temperature changes caused by airflow, based on the principle of heat sensing. A differential pressure sensor is a detection element that identifies airflow changes by sensing the slight pressure difference generated by airflow. A thin-film airflow sensor uses a flexible thin-film sensing structure; its electrical parameters change under the influence of airflow, thus achieving airflow detection.
[0070] Optionally, the airflow sensor can be fixedly installed at the tail end of the stylus body, that is, the end area of the pen body away from the writing tip, away from the writing operation area, to avoid airflow interference caused by writing and pen tip contact. The airflow sensor can be selected from any one of MEMS thermal flow sensor, micro differential pressure sensor or thin film airflow sensor. All kinds of sensing elements are miniature integrated structures, which can be adapted to the small installation space inside the stylus, continuously sense the air flow status of the surrounding environment of the pen body, capture signals such as airflow disturbance and airflow velocity changes in real time, and transmit the corresponding electrical signals of airflow changes to the controller, providing sensing data support for interactive trigger judgment. In this embodiment, the airflow sensor is positioned at the rear of the pen body, away from the pen tip, which effectively isolates irrelevant airflow interference caused by writing operations and improves the accuracy of airflow detection. Employing various types of airflow sensors, including MEMS thermal, micro-differential pressure, and thin-film sensors, allows for flexible adaptation to different structural designs and cost requirements. The components are small in size and highly integrated, facilitating miniaturized pen body structures. The multiple sensor types balance detection sensitivity and environmental adaptability, stably identifying valid airflow change signals, reducing the probability of false triggering, and ensuring the stable operation of the multi-sensor collaborative triggering mechanism.
[0071] The controller is a miniature control chip / microprocessor (MCU / main control chip) built into the stylus, serving as the core control and computing unit for the stylus. The controller is electrically connected to the SAR sensor, sound acquisition device, and airflow sensor, receiving detection signals from all the sensing modules.
[0072] Based on the above embodiments, during the use of the stylus, such as Figure 3 As shown, the stylus controller is also used for:
[0073] S301, if the distance between the main body and the target object is determined to be less than or equal to a preset distance threshold based on the sensing signal sent by the SAR sensor, then the sound acquisition device and the airflow sensor are activated.
[0074] Among them, the sensing signal is an electrical signal that is collected and output by the SAR sensor in real time. The signal strength corresponds to the distance between the stylus and the target object and is used for distance judgment.
[0075] The preset distance threshold is a critical distance value set in advance in the controller, which serves as a criterion for judging close-range interaction. In this embodiment, the preset distance threshold can be adaptively adjusted for different application scenarios. In an exemplary embodiment, for daily writing scenarios, the preset distance threshold can be set to 1cm. When a person's hand is within 1cm of the pen body, it is determined that the user is about to speak, and the microphone and airflow sensor are activated in advance. This preset distance threshold can ensure that the stylus will not accidentally trigger recording when placed in a pocket or on a table, and can be stably triggered when raising the hand to write or speaking close to the pen.
[0076] In another exemplary embodiment, for scenarios prone to false sensing, the preset distance threshold can be set to 0.5cm, and data collection will only be initiated when a person's hand is within 0.5cm of the pen body, which greatly filters out stray coupling signals from desktop metal, backpacks, wrist clothing, etc.
[0077] In another exemplary embodiment, for scenarios requiring rapid response, such as meetings and teaching, the preset distance threshold can be set to 1.5cm. The user's hand can be 1.5cm away from the pen body to start recording in advance, and the audio cache is started as soon as the user raises his hand to speak, with no loss of the beginning of the voice.
[0078] Optionally, the controller continuously receives the sensing signals transmitted by the SAR sensor in real time. It analyzes parameters such as the sensing signal strength and coupling coefficient using a built-in algorithm to calculate the real-time distance between the stylus and the target object. Further, it compares the real-time distance with a pre-stored preset distance threshold. When the detected distance is less than or equal to the preset threshold, the controller issues a start control command, simultaneously powering on the sound acquisition device and the airflow sensor. The controller writes the voice data collected by the sound acquisition device into a preset, finite-sized circular buffer in real time as buffered voice data. This circular buffer temporarily stores voice data from the most recent period (e.g., the last 3 seconds). The purpose of this is to retain the preceding voice segments from several seconds before the sensor triggers, even if the user has already spoken before the sensor triggers. When the recording process officially starts, the preceding voice stored in the buffer can be read synchronously to completely record the beginning of the user's speech, avoiding the loss of the initial voice segment and improving recording integrity.
[0079] S302, if an airflow change signal is received from the airflow sensor within a preset time period, the sound acquisition device is controlled to collect real-time voice data.
[0080] The preset time period is a fixed time range pre-set by the controller, serving as a detection window for airflow change signals. In one embodiment, the length of the preset time period is configurable, for example, it can be adjusted between 0.5 seconds and 3 seconds; a shorter window is suitable for users who require a fast response, while a longer window provides users with more time to complete the "approach + blow" action, reducing the requirement for operational continuity.
[0081] Airflow change signal is a feedback electrical signal generated by the airflow sensor after detecting fluctuations or disturbances in the ambient airflow, used to identify user actions. Real-time voice data is real-time audio data synchronously collected by the sound acquisition device after airflow triggering.
[0082] Optionally, after the sound acquisition device and airflow sensor are started, the controller activates a timed detection mechanism, locking a preset time period as the detection window; within this time range, it continuously listens to the output signal of the airflow sensor and monitors the surrounding airflow status in real time; when abnormal changes in airflow velocity, airflow pressure, or airflow disturbance are detected and identified as valid airflow change signals, the controller triggers a voice acquisition command, driving the sound acquisition device to switch to full-speed acquisition mode, continuously capturing real-time voice information on site, shielding static airflow interference from the environment, and avoiding false triggering.
[0083] S303 sends real-time voice data and buffered voice data to the target terminal so that the target terminal can perform voice control operations.
[0084] The target terminal is the terminal that establishes communication with the stylus. The buffered voice data is the voice acquisition device that collects and stores it in the stylus's circular buffer during a pre-startup period. The pre-startup period is the time between the start of the voice acquisition device and before the device is activated to collect real-time voice data; in other words, the buffered voice data is the voice data pre-collected and stored in the stylus's circular buffer after the device is activated but before the voice function is activated. The circular buffer uses a "first-in, first-out" data storage strategy, and its capacity should be sufficient to cover the maximum possible delay between the activation of the voice acquisition device and the completion of secondary confirmation and the start of data transmission. It is typically designed to store 2 to 5 seconds of audio data to ensure a "word-prevention" effect at various operating speeds.
[0085] Optionally, the controller retrieves pre-stored buffered voice data from the stylus's built-in circular buffer and simultaneously integrates the currently collected real-time voice data. Through the stylus's built-in wireless communication module, the two sets of voice data are packaged and encrypted, and then sent to the target terminal with the established communication link. After receiving the data, the target terminal integrates and parses the buffered voice data and the real-time voice data to complete the full voice command recognition, and then executes the corresponding voice control operation to realize human-computer interaction response.
[0086] In one embodiment, a voice assistant module can be deployed in the stylus. If an airflow change signal is received from an airflow sensor within a preset time period, the voice assistant module can be activated. This module controls the sound acquisition device to collect real-time voice data and retrieves pre-stored buffered voice data in a circular buffer in real time. It synchronously integrates the real-time voice data collected by the sound acquisition device, performs preprocessing, noise reduction, and signal integration on the integrated voice data, and sends the integrated complete voice data to the target terminal through the stylus's communication module. This assists the target terminal in completing voice recognition, semantic parsing, and voice control command execution, thereby triggering related functions such as voice interaction, voice input, and intelligent control, and realizing voice collaborative interaction between the stylus and the target terminal.
[0087] The aforementioned stylus uses a SAR sensor to perform near-range prediction and combines it with an airflow sensor to complete the action intention. Figure 2 This verification employs a multi-sensor collaborative triggering mechanism to effectively avoid accidental function activation caused by environmental interference, significantly improving the stability and anti-interference capability of the stylus's voice interaction. By tiered activation of the sensor modules, it reduces device standby power consumption and extends the stylus's battery life. Simultaneously, it combines a circular buffer to store and buffer voice data, compensating for the loss of voice information at the moment of triggering, ensuring the integrity and recognition accuracy of voice commands, achieving smooth and accurate long-distance voice control interaction, and optimizing the user experience.
[0088] In one embodiment, if the SAR sensor is a ring sensor, such as Figure 4 As shown, the controller executes an optional implementation method that determines, based on the sensing signal sent by the SAR sensor, that the distance between the body and the target object is less than or equal to a preset distance threshold, including:
[0089] S401, the controller determines the real-time sensing distance between the pen body and the target object based on the sensing signal sent by the SAR sensor.
[0090] Among them, the real-time sensing distance is the real-time spatial distance between the stylus pen body and the target object, which is obtained by the controller based on the sensing signal output by the ring SAR sensor and through algorithm analysis and calculation.
[0091] Optionally, the controller continuously receives the sensing signals collected and output by the SAR sensor in real time, and uses a preset signal conversion algorithm and distance conversion model to analyze and calculate parameters such as the intensity of the sensing signal and the electromagnetic coupling coefficient, and calculates the real-time sensing distance between the pen body and the target object in real time, so as to realize dynamic and continuous distance monitoring.
[0092] S402, if the real-time sensing distance is less than or equal to the preset distance threshold, then determine that the distance between the main body and the target object is less than or equal to the preset distance threshold.
[0093] The target objects are interactive objects such as the human body and hand around the stylus, which are the target subjects for distance detection.
[0094] Optionally, the controller will compare the real-time calculated sensing distance with the preset distance threshold in real time. When the detected real-time sensing distance is less than or equal to the preset distance threshold, the controller determines that the stylus and the target object are in close range, which meets the preset triggering conditions and completes the logical determination of the close range state.
[0095] In this embodiment, based on the SAR sensor's sensing signal, the real-time sensing distance is obtained through quantization calculation, and the numerical threshold comparison is used as the judgment basis, which effectively improves the accuracy and stability of close-range recognition. It can continuously and dynamically monitor the changes in the distance of the pen's surrounding environment, and the judgment logic is rigorous. It can effectively avoid misjudgments caused by environmental electromagnetic interference, and provide reliable and stable pre-judgment conditions for the subsequent activation of the sensing module and the triggering of voice acquisition, reducing the probability of function mis-triggering and improving the reliability of handwriting pen interaction control.
[0096] In one embodiment, if the SAR sensor consists of two symmetrically arranged point SAR sensors, such as... Figure 5 As shown, an optional implementation method in which the controller determines, based on the sensing signal sent by the SAR sensor, that the distance between the body and the target object is less than or equal to a preset distance threshold includes:
[0097] S501 synchronously acquires the sensing signals output by two symmetrically arranged point SAR sensors.
[0098] Optionally, the controller uses a synchronous sampling mechanism to collect the sensing signals output by two symmetrically arranged point SAR sensors in parallel, continuously and synchronously monitoring the dynamic changes of the two sensing signals to ensure the synchronicity and consistency of the sensing data acquisition on both sides and avoid judgment errors caused by timing deviations.
[0099] S502, if the signal strength of the sensing signals of two symmetrically arranged point SAR sensors increases simultaneously, then it is determined that the distance between the body and the target object is less than or equal to a preset distance threshold.
[0100] Among them, signal strength is a quantitative parameter that characterizes the degree of electromagnetic coupling of the SAR sensor. The closer the target object is, the stronger the electromagnetic coupling and the higher the signal strength.
[0101] Optionally, the controller monitors the intensity change trend of the two sensing signals in real time and continuously compares the signal intensity change pattern; if and only if the signal intensity of the two point SAR sensors increases synchronously, it is determined that the target object is simultaneously approaching the stylus body from both sides, thereby determining that the distance between the stylus and the target object is less than or equal to the preset distance threshold, thus completing the effective determination of the close distance condition.
[0102] In this embodiment, a dual-sided symmetrical point SAR sensor is used for collaborative detection, which overcomes the limitations of single-point detection. Relying on the synchronous changes of two signals as the judgment basis, it can effectively avoid misjudgments caused by unilateral environmental interference and local electromagnetic fluctuations. Through the discrimination logic of synchronous enhancement of dual-sided signals, the true state of the user holding the pen at close range is accurately identified, which greatly improves the reliability and anti-interference ability of distance detection. At the same time, the point sensor has a simple structure and occupies little space, which makes it easy to arrange compactly in the small space of the pen body, reducing hardware costs and installation difficulty.
[0103] In one embodiment, such as Figure 6 As shown, one optional implementation of the controller activating the sound acquisition device and airflow sensor includes:
[0104] S601, send an activation command to the sound acquisition device.
[0105] The activation command instructs the sound acquisition device to switch from sleep mode to working mode to collect voice data around the stylus. Sleep mode refers to the low-power standby mode of the sound acquisition device, which only retains basic circuitry and does not perform data acquisition. Working mode is the normal operating mode of the sound acquisition device, which has both voice pickup and data acquisition functions.
[0106] Optionally, the controller generates and sends a dedicated activation command to the sound acquisition device; upon receiving the command, the sound acquisition device immediately exits the sleep low-power mode, switches to continuous working state, starts the internal sound pickup module, and collects the voice signals of the surrounding environment of the stylus in real time, completing the preparation for voice data acquisition.
[0107] S602 sends a wake-up command to the airflow sensor.
[0108] The wake-up command instructs the airflow sensor to enter airflow detection mode to detect changes in airflow near the stylus. Airflow detection mode refers to the operating mode where the airflow sensor, after activating, monitors changes in the surrounding airflow in real time.
[0109] Optionally, the controller synchronously sends a wake-up command to the airflow sensor; after receiving the command, the airflow sensor switches from standby mode to airflow detection mode, activates the airflow sensing element, and continuously monitors the dynamic changes such as airflow and airflow disturbance around the stylus, capturing airflow change signals generated by user operations in real time.
[0110] In this embodiment, the controller sends activation and wake-up commands in stages to enable the sound acquisition device and airflow sensor to start and stop on demand, avoiding the continuous operation of the sensing module for a long time, effectively reducing the overall power consumption of the stylus and extending the device's battery life; a sleep-wake switching mechanism is adopted to start the detection module only after the close-range triggering conditions are met, reducing the acquisition of invalid environmental data.
[0111] In one embodiment, after the stylus completes the near-distance pre-determination between itself and the target object using the SAR sensor, it simultaneously wakes up the airflow sensor and activates the sound acquisition device, putting the device into an interactive detection state to complete the pre-interaction preparation for voice interaction. However, in real-world applications, there are invalid scenarios where the stylus is close to a person or object, but the user has no intention of voice interaction or holding the device. Relying solely on near-distance detection can easily cause the voice acquisition module to remain on standby and the cache to continuously store invalid data, which not only increases the device's idle power consumption but also causes cache resource occupation, easily leading to subsequent interaction recognition errors. Therefore, in this embodiment, if no airflow change signal is received from the airflow sensor within a preset time period, the sound acquisition device and airflow sensor are controlled to enter a sleep state, and the buffered voice data stored in the circular buffer is cleared.
[0112] Optionally, after the SAR sensor detects that the distance between the stylus and the target object meets the close-range threshold condition, the controller wakes up the airflow sensor and activates the sound acquisition device, putting both devices into a working detection state. Simultaneously, the controller starts its built-in timer to begin timing a preset detection period. Throughout the entire preset time period, the controller continuously monitors the output signal of the airflow sensor in real time, constantly detecting whether there are any valid airflow disturbances or airflow fluctuations corresponding to airflow changes. If, after the complete preset window period, the controller does not receive any valid airflow change signal from the airflow sensor, it means that this was merely a simple close-range approach of the device, without any user interaction such as holding, voice input, or other actions. This constitutes an invalid scenario such as accidental environmental approach or device inactivity at close range, and does not meet the requirements for voice interaction. At this time, the controller executes the reset control logic. On the one hand, it sends sleep commands to the sound acquisition device and the airflow sensor respectively, controlling the two working modules to exit the working detection state and enter the low-power sleep mode, stopping the voice acquisition and airflow detection operations. On the other hand, the controller sends a cache clear command to clear all the buffered voice data temporarily stored in the stylus's circular buffer, release the device's local cache storage space, avoid invalid and redundant data occupying storage resources, and clear the preparatory data corresponding to this invalid interaction scenario, complete the overall device function reset, and wait for the next trigger condition.
[0113] In this embodiment, the system can accurately distinguish between genuine user interaction needs and simple near-field false sensing scenarios. When there is no user intention, the sensing and acquisition modules are shut down in a timely manner, avoiding long-term idle operation of the sensors and voice pickup modules. This greatly reduces the standby and invalid operation power consumption of the stylus and effectively improves the stylus's battery life. At the same time, by automatically clearing invalid voice cache data in the circular buffer, the system avoids redundant data accumulation from occupying device storage resources and prevents historical invalid cache data from interfering with the next voice interaction recognition, ensuring the accuracy and purity of data acquisition.
[0114] In one embodiment, during stylus operation, the distance between the stylus and the target object is monitored in real time using a SAR sensor, serving as the core criterion for determining the start and stop of voice acquisition and sensing modules. When the distance between the stylus and the target object exceeds a set threshold, it indicates that the user has left the interaction scenario and there is no longer a need for voice interaction. At this time, an automatic reset mechanism needs to be activated to promptly shut down the relevant sensing acquisition modules and clear the temporary buffer, thereby reducing device power consumption, eliminating the accumulation of invalid data, and ensuring the overall stability and energy efficiency of the stylus's operation. In this embodiment, if the distance between the stylus and the target object is determined to be greater than a preset distance threshold based on the sensing signal sent by the SAR sensor, the sound acquisition device and airflow sensor are controlled to enter a sleep state, and the buffered voice data stored in the circular buffer is cleared.
[0115] Optionally, the controller continuously receives the sensing signals transmitted in real time from the SAR sensor. Through signal analysis and calculation, it determines the distance between the stylus and the target object in real time. When the detected distance between the two is greater than a preset distance threshold, it is determined that the stylus has moved away from the user, there is no need for voice interaction, and it does not belong to a valid interaction scenario. Under this condition, the controller simultaneously sends a sleep control command to control the sound acquisition device and the airflow sensor to stop working and switch to a low-power sleep state, stopping voice acquisition and airflow detection operations. At the same time, the controller sends a clear command to the storage module, automatically clearing all buffered voice data temporarily stored in the circular buffer, releasing cache space, clearing invalid temporary data, and restoring each functional module to the initial standby state, waiting for the next valid trigger condition.
[0116] In this embodiment, based on the distance detection results of the SAR sensor, the usage scenario of the stylus can be determined in real time. When the stylus moves away from the target object, the voice acquisition and airflow detection modules are shut down in time, which effectively avoids the energy loss caused by the long-term operation of useless modules, significantly reduces the power consumption of the stylus, and extends the device's battery life. At the same time, timely clearing of the buffered voice data in the circular buffer can avoid the waste of storage resources caused by the accumulation of invalid cached data, prevent historical redundant data from interfering with subsequent voice acquisition and data transmission, and ensure the accuracy and independence of data acquisition.
[0117] In one embodiment, such as Figure 7 This paper presents a voice control method based on a stylus, applied to the controller in the stylus. One possible implementation of this method is as follows:
[0118] S701, if the distance between the stylus and the target object is determined to be less than or equal to a preset distance threshold based on the sensing signal sent by the SAR sensor, an activation command is sent to the sound acquisition device in the stylus.
[0119] The activation command is used to instruct the sound acquisition device to switch from sleep mode to working mode in order to collect voice data around the stylus.
[0120] S702 sends a wake-up command to the airflow sensor in the stylus.
[0121] The wake-up command is used to instruct the airflow sensor to enter the airflow detection state in order to detect changes in airflow near the stylus.
[0122] S703, determine whether an airflow change signal sent by the airflow sensor has been received within a preset time period; if yes, execute S704; if no, execute S706.
[0123] S704 controls the sound acquisition device to collect real-time voice data.
[0124] S705 sends real-time voice data and buffered voice data to the target terminal so that the target terminal can perform voice control operations.
[0125] S706 controls the sound acquisition device and airflow sensor to enter sleep mode and clears the buffered voice data stored in the loop buffer.
[0126] The specific processes of S701-S706 described above can be found in the description of the above method embodiments. Their implementation principles and technical effects are similar and will not be repeated here.
[0127] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0128] Based on the same inventive concept, this application also provides a stylus-based voice control device for implementing the above-mentioned stylus-based voice control method. The solution provided by this device is similar to the implementation described in the above method; therefore, the specific limitations of one or more stylus-based voice control device embodiments provided below can be found in the limitations of the stylus-based voice control method described above, and will not be repeated here.
[0129] In one exemplary embodiment, such as Figure 8 As shown, a voice control device 800 based on a stylus is provided, including: a device startup module 810, a data acquisition module 820, and a voice control module 830, wherein:
[0130] The device startup module 810 is used to activate the sound acquisition device and airflow sensor in the stylus if the distance between the stylus body and the target object is determined to be less than or equal to a preset distance threshold based on the sensing signal sent by the SAR sensor.
[0131] The data acquisition module 820 is used to control the sound acquisition device to acquire real-time voice data if it receives an airflow change signal sent by the airflow sensor within a preset time period.
[0132] The voice control module 830 is used to send real-time voice data and buffered voice data to the target terminal so that the target terminal can perform voice control operations; wherein, the target terminal is a terminal that establishes communication with the stylus; the buffered voice data is collected by the sound acquisition device and stored in the circular buffer of the stylus during the pre-start time period; the pre-start time period is the time period from the start of the sound acquisition device to the time before the control of the sound acquisition device to collect real-time voice data.
[0133] In one embodiment, if the SAR sensor is a ring sensor, the device startup module 810 is used to:
[0134] Based on the sensing signal sent by the SAR sensor, the real-time sensing distance between the pen body and the target object is determined; if the real-time sensing distance is less than or equal to a preset distance threshold, the distance between the pen body and the target object is determined to be less than or equal to the preset distance threshold.
[0135] In one embodiment, if the SAR sensor consists of two symmetrically arranged point SAR sensors, the device startup module 810 is used to:
[0136] The sensor simultaneously acquires the sensing signals output by two symmetrically arranged point SAR sensors; if the signal strength of the sensing signals from the two symmetrically arranged point SAR sensors increases simultaneously, it is determined that the distance between the body and the target object is less than or equal to a preset distance threshold.
[0137] In one embodiment, the device startup module 810 is further configured to:
[0138] An activation command is sent to the sound acquisition device; wherein the activation command is used to instruct the sound acquisition device to switch from a sleep state to an operating state in order to acquire voice data around the stylus; and a wake-up command is sent to the airflow sensor; wherein the wake-up command is used to instruct the airflow sensor to enter an airflow detection state in order to detect changes in airflow near the stylus.
[0139] In one embodiment, the stylus-based voice control device 800 further includes a first clearing module for:
[0140] If no airflow change signal is received from the airflow sensor within the preset time period, the sound acquisition device and the airflow sensor will be put into sleep mode, and the buffered voice data stored in the loop buffer will be cleared.
[0141] In one embodiment, the stylus-based voice control device 800 further includes a second clearing module for:
[0142] If the distance between the main body and the target object is determined to be greater than a preset distance threshold based on the sensing signal sent by the SAR sensor, the sound acquisition device and the airflow sensor are controlled to enter a sleep state, and the buffered voice data stored in the circular buffer is cleared.
[0143] The various modules in the aforementioned handwriting-based voice control device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so that the processor can call and execute the corresponding operations of each module.
[0144] In one exemplary embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0145] If the distance between the stylus and the target object is determined to be less than or equal to a preset distance threshold based on the sensing signal sent by the SAR sensor, then the sound acquisition device and airflow sensor in the stylus are activated.
[0146] If an airflow change signal is received from the airflow sensor within a preset time period, the sound acquisition device is controlled to collect real-time voice data.
[0147] Send real-time voice data and buffered voice data to the target terminal so that the target terminal can perform voice control operations;
[0148] The target terminal is the terminal that establishes communication with the stylus; the buffered voice data is the voice acquisition device that collects and stores the voice data in the stylus's circular buffer during the pre-start time period; the pre-start time period is the time period between the start of the voice acquisition device and the start of the control of the voice acquisition device to collect real-time voice data.
[0149] In one embodiment, if the SAR sensor is a ring sensor, the computer program, when executed by the processor, also performs the following steps:
[0150] Based on the sensing signal sent by the SAR sensor, the real-time sensing distance between the pen body and the target object is determined; if the real-time sensing distance is less than or equal to a preset distance threshold, the distance between the pen body and the target object is determined to be less than or equal to the preset distance threshold.
[0151] In one embodiment, if the SAR sensor is two symmetrically arranged point SAR sensors, the computer program, when executed by the processor, also performs the following steps:
[0152] The sensor simultaneously acquires the sensing signals output by two symmetrically arranged point SAR sensors; if the signal strength of the sensing signals from the two symmetrically arranged point SAR sensors increases simultaneously, it is determined that the distance between the body and the target object is less than or equal to a preset distance threshold.
[0153] In one embodiment, when the computer program is executed by the processor to activate the sound acquisition device and the airflow sensor, it also performs the following steps:
[0154] An activation command is sent to the sound acquisition device; wherein the activation command is used to instruct the sound acquisition device to switch from a sleep state to an operating state in order to acquire voice data around the stylus; and a wake-up command is sent to the airflow sensor; wherein the wake-up command is used to instruct the airflow sensor to enter an airflow detection state in order to detect changes in airflow near the stylus.
[0155] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0156] If no airflow change signal is received from the airflow sensor within the preset time period, the sound acquisition device and the airflow sensor will be put into sleep mode, and the buffered voice data stored in the loop buffer will be cleared.
[0157] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0158] If the distance between the main body and the target object is determined to be greater than a preset distance threshold based on the sensing signal sent by the SAR sensor, the sound acquisition device and the airflow sensor are controlled to enter a sleep state, and the buffered voice data stored in the circular buffer is cleared.
[0159] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:
[0160] If the distance between the stylus and the target object is determined to be less than or equal to a preset distance threshold based on the sensing signal sent by the SAR sensor, then the sound acquisition device and airflow sensor in the stylus are activated.
[0161] If an airflow change signal is received from the airflow sensor within a preset time period, the sound acquisition device is controlled to collect real-time voice data.
[0162] Send real-time voice data and buffered voice data to the target terminal so that the target terminal can perform voice control operations;
[0163] The target terminal is the terminal that establishes communication with the stylus; the buffered voice data is the voice acquisition device that collects and stores the voice data in the stylus's circular buffer during the pre-start time period; the pre-start time period is the time period between the start of the voice acquisition device and the start of the control of the voice acquisition device to collect real-time voice data.
[0164] In one embodiment, if the SAR sensor is a ring sensor, the computer program, when executed by the processor, also performs the following steps:
[0165] Based on the sensing signal sent by the SAR sensor, the real-time sensing distance between the pen body and the target object is determined; if the real-time sensing distance is less than or equal to a preset distance threshold, the distance between the pen body and the target object is determined to be less than or equal to the preset distance threshold.
[0166] In one embodiment, if the SAR sensor is two symmetrically arranged point SAR sensors, the computer program, when executed by the processor, also performs the following steps:
[0167] The sensor simultaneously acquires the sensing signals output by two symmetrically arranged point SAR sensors; if the signal strength of the sensing signals from the two symmetrically arranged point SAR sensors increases simultaneously, it is determined that the distance between the body and the target object is less than or equal to a preset distance threshold.
[0168] In one embodiment, when the computer program is executed by the processor to activate the sound acquisition device and the airflow sensor, it also performs the following steps:
[0169] An activation command is sent to the sound acquisition device; wherein the activation command is used to instruct the sound acquisition device to switch from a sleep state to an operating state in order to acquire voice data around the stylus; and a wake-up command is sent to the airflow sensor; wherein the wake-up command is used to instruct the airflow sensor to enter an airflow detection state in order to detect changes in airflow near the stylus.
[0170] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0171] If no airflow change signal is received from the airflow sensor within the preset time period, the sound acquisition device and the airflow sensor will be put into sleep mode, and the buffered voice data stored in the loop buffer will be cleared.
[0172] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0173] If the distance between the main body and the target object is determined to be greater than a preset distance threshold based on the sensing signal sent by the SAR sensor, the sound acquisition device and the airflow sensor are controlled to enter a sleep state, and the buffered voice data stored in the circular buffer is cleared.
[0174] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps:
[0175] If the distance between the stylus and the target object is determined to be less than or equal to a preset distance threshold based on the sensing signal sent by the SAR sensor, then the sound acquisition device and airflow sensor in the stylus are activated.
[0176] If an airflow change signal is received from the airflow sensor within a preset time period, the sound acquisition device is controlled to collect real-time voice data.
[0177] Send real-time voice data and buffered voice data to the target terminal so that the target terminal can perform voice control operations;
[0178] The target terminal is the terminal that establishes communication with the stylus; the buffered voice data is the voice acquisition device that collects and stores the voice data in the stylus's circular buffer during the pre-start time period; the pre-start time period is the time period between the start of the voice acquisition device and the start of the control of the voice acquisition device to collect real-time voice data.
[0179] In one embodiment, if the SAR sensor is a ring sensor, the computer program, when executed by the processor, also performs the following steps:
[0180] Based on the sensing signal sent by the SAR sensor, the real-time sensing distance between the pen body and the target object is determined; if the real-time sensing distance is less than or equal to a preset distance threshold, the distance between the pen body and the target object is determined to be less than or equal to the preset distance threshold.
[0181] In one embodiment, if the SAR sensor is two symmetrically arranged point SAR sensors, the computer program, when executed by the processor, also performs the following steps:
[0182] The sensor simultaneously acquires the sensing signals output by two symmetrically arranged point SAR sensors; if the signal strength of the sensing signals from the two symmetrically arranged point SAR sensors increases simultaneously, it is determined that the distance between the body and the target object is less than or equal to a preset distance threshold.
[0183] In one embodiment, when the computer program is executed by the processor to activate the sound acquisition device and the airflow sensor, it also performs the following steps:
[0184] An activation command is sent to the sound acquisition device; wherein the activation command is used to instruct the sound acquisition device to switch from a sleep state to an operating state in order to acquire voice data around the stylus; and a wake-up command is sent to the airflow sensor; wherein the wake-up command is used to instruct the airflow sensor to enter an airflow detection state in order to detect changes in airflow near the stylus.
[0185] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0186] If no airflow change signal is received from the airflow sensor within the preset time period, the sound acquisition device and the airflow sensor will be put into sleep mode, and the buffered voice data stored in the loop buffer will be cleared.
[0187] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0188] If the distance between the main body and the target object is determined to be greater than a preset distance threshold based on the sensing signal sent by the SAR sensor, the sound acquisition device and the airflow sensor are controlled to enter a sleep state, and the buffered voice data stored in the circular buffer is cleared.
[0189] It should be noted that the data involved in this application (including but not limited to data used for analysis, data stored, data displayed, etc.) are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.
[0190] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0191] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0192] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A stylus, characterized in that, include: ontology; A specific absorption rate SAR sensor configured in the body is used to detect the distance between the body and the target object; A sound acquisition device configured in the main body is used to acquire voice data; An airflow sensor configured in the body is used to detect the airflow around the body; and a controller configured in the main body, the controller being connected to the SAR sensor, the sound acquisition device, and the airflow sensor, and the controller being used for: If, based on the sensing signal sent by the SAR sensor, it is determined that the distance between the body and the target object is less than or equal to a preset distance threshold, then the sound acquisition device and the airflow sensor are activated. If an airflow change signal is received from the airflow sensor within a preset time period, the sound acquisition device is controlled to collect real-time voice data. The real-time voice data and buffered voice data are sent to the target terminal so that the target terminal can perform voice control operations. The target terminal is a terminal that establishes communication with the stylus; the buffered voice data is collected by the sound acquisition device and stored in the circular buffer of the stylus during a pre-start time period; the pre-start time period is the time period between the start of the sound acquisition device and before the control of the sound acquisition device to collect real-time voice data.
2. The stylus according to claim 1, characterized in that, The main body includes a pen body and a pen tip; The SAR sensor is embedded or attached to a preset area of the pen body; wherein, the preset area is the grip area, or the connection area between the pen body and the pen tip of the stylus; The SAR sensor is one of a ring sensor and two symmetrically arranged point SAR sensors.
3. The stylus according to claim 2, characterized in that, The SAR sensor is the ring sensor, and the controller is used for: The real-time sensing distance between the pen body and the target object is determined based on the sensing signal sent by the SAR sensor. If the real-time sensing distance is less than or equal to the preset distance threshold, then it is determined that the distance between the body and the target object is less than or equal to the preset distance threshold.
4. The stylus according to claim 2, characterized in that, The SAR sensor is one of two symmetrically arranged point SAR sensors, and the controller is used for: Simultaneously acquire the sensing signals output by two symmetrically arranged point SAR sensors; If the signal strength of the sensing signals from two symmetrically arranged point SAR sensors increases simultaneously, it is determined that the distance between the body and the target object is less than or equal to a preset distance threshold.
5. The stylus according to claim 2, characterized in that, The airflow sensor is located at the end of the pen body away from the pen tip; The airflow sensor is one of the following: a MEMS thermal flow sensor, a micro differential pressure sensor, and a thin-film airflow sensor.
6. The stylus according to claim 1, characterized in that, When the controller activates the sound acquisition device and the airflow sensor, it is used to: Send an activation command to the sound acquisition device; wherein the activation command is used to instruct the sound acquisition device to switch from a sleep state to an active state to acquire voice data around the stylus; and, A wake-up command is sent to the airflow sensor; wherein the wake-up command is used to instruct the airflow sensor to enter the airflow detection state in order to detect changes in airflow near the stylus.
7. The stylus according to claim 1, characterized in that, The controller is also used for: If no airflow change signal is received from the airflow sensor within the preset time period, the sound acquisition device and the airflow sensor are controlled to enter a sleep state, and the buffered voice data stored in the loop buffer is cleared.
8. The stylus according to claim 1, characterized in that, The controller is also used for: If, based on the sensing signal sent by the SAR sensor, it is determined that the distance between the body and the target object is greater than a preset distance threshold, then the sound acquisition device and the airflow sensor are controlled to enter a sleep state, and the buffered voice data stored in the circular buffer is cleared.
9. A voice control method based on a stylus, characterized in that, The controller used in the stylus includes: If, based on the sensing signal sent by the SAR sensor, it is determined that the distance between the body of the stylus and the target object is less than or equal to a preset distance threshold, then the sound acquisition device and airflow sensor in the stylus are activated. If an airflow change signal is received from the airflow sensor within a preset time period, the sound acquisition device is controlled to collect real-time voice data. The real-time voice data and buffered voice data are sent to the target terminal so that the target terminal can perform voice control operations. The target terminal is a terminal that establishes communication with the stylus; the buffered voice data is collected by the sound acquisition device and stored in the circular buffer of the stylus during a pre-start time period; the pre-start time period is the time period between the start of the sound acquisition device and before the control of the sound acquisition device to collect real-time voice data.
10. The method according to claim 9, characterized in that, The method further includes: If no airflow change signal is received from the airflow sensor within the preset time period, the sound acquisition device and the airflow sensor are controlled to enter a sleep state, and the buffered voice data stored in the loop buffer is cleared.