A method for processing prompt sounds and a wearable device
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-03-24
- Publication Date
- 2026-08-14
AI Technical Summary
[0005]然而,受限于体积和成本控制,尤其是入耳式耳机或轻量化智能眼镜,其硬件资源配置往往十分紧张
[0009]上述技术方案的有益效果为:针对可穿戴设备需适配多语言提示音的需求,在提示音存储区空间大小固定的情况下,采用动态覆写方式,将设备型号对应的目标语言的提示音数据流,覆写至提示音存储区,实现了提示音存储区的动态复用,避免预装多种语言的提示音时存储空间的静态叠加,使得小容量的闪存即可支持原本大容量的闪存才能支持的多语言提示音功能,降低设备存储空间有限和多语言支持之间的矛盾,并且,通过建立事件与提示音索引号之间的映射,以及,在软件层面将提示音存储区划分为多个逻辑地址段,每个逻辑地址段对应提示音存储区的一个物理空间,以便将每个事件的提示音数据按逻辑地址段有序写入提示音存储区的物理空间,从而实现提示音内容的按需加载与动态更新,这样,在事件被触发时,能够根据索引号准确调用相应的提示音数据进行播放,打破存储空间对多语言支持的限制。
Smart Images

Figure CN122569874A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of wearable device technology, and provides a prompt sound processing method and a wearable device. Background Technology
[0002] With the popularization of the Internet of Things and smart wearable devices, wearable devices such as True Wireless Stereo (TWS) earphones and smart glasses have become indispensable electronic products in people's daily lives. In the process of human-computer interaction, these devices usually rely on prompt sounds to provide feedback on device status and greetings.
[0003] For example, "Power On" indicates that the device is powered on, "Bluetooth Connected" indicates that Bluetooth is connected, and "Battery Low" indicates that the battery is low; greeting sounds, such as "Good morning" and "Good evening," are key parts of enhancing the intuitiveness of the user experience.
[0004] In the wave of product globalization, when smart wearable devices are sold globally, they theoretically need to support prompts in dozens of languages such as Chinese, English, Japanese, Korean, French, and Spanish. In addition, high-quality voice prompt files (such as ADPCM, MP3, or SBC formats) take up a lot of space. A complete set of basic prompts (about 10-15) may require 100KB-200KB of space if recorded at a high sampling rate.
[0005] However, due to size and cost constraints, especially for in-ear headphones or lightweight smart glasses, hardware resource configuration is often very tight. Most mid-to-low-end wearable devices have a small built-in Flash capacity in their main control chip (SoC) (usually between 128KB and 1MB). After deducting the space occupied by firmware program storage area, user data storage area, Bluetooth protocol stack, etc., the space left for audio resources is very limited.
[0006] Therefore, reducing the contradiction between the limited storage space of wearable devices and the growing demand for multilingual prompt voice support has become an urgent problem to be solved in the globalization of products. Summary of the Invention
[0007] This application provides a prompt sound processing method and a wearable device to reduce the contradiction between the limited storage space of wearable devices and the growing demand for multilingual prompt sound support.
[0008] In a first aspect, embodiments of this application provide a notification sound processing method, applied to a wearable device, including: Receive a prompt sound data stream in the target language corresponding to the device model of the wearable device; wherein, the target language is selected by the user through the interactive interface of the connected mobile terminal, and the prompt sound data stream contains prompt sound data for multiple events, each event corresponding to a prompt sound index number; Based on the corresponding prompt tone index number of each of the multiple events, a logical address segment is allocated for the prompt tone data of each event in the prompt tone storage area; wherein, each logical address segment has a physical space in the prompt tone storage area, and the space capacity of the prompt tone storage area is fixed; Erase the historical notification sound data written in each physical space of the notification sound storage area, and overwrite the notification sound data of the multiple events to the corresponding physical spaces according to the corresponding logical address segments; In response to a target event trigger operation, the system reads and plays the prompt sound data of the target event from the physical space corresponding to the logical address segment corresponding to the prompt sound index number of the target event; wherein the target event is one of multiple events.
[0009] The beneficial effects of the above technical solution are as follows: Addressing the need for wearable devices to support multilingual prompts, and given a fixed size of the prompt storage area, a dynamic overwriting method is used to overwrite the prompt data stream of the target language corresponding to the device model into the prompt storage area. This achieves dynamic reuse of the prompt storage area, avoiding the static stacking of storage space when pre-installing prompts in multiple languages. This allows small-capacity flash memory to support multilingual prompt functions that previously required large-capacity flash memory, reducing the conflict between limited device storage space and multilingual support. Furthermore, by establishing a mapping between events and prompt index numbers, and dividing the prompt storage area into multiple logical address segments at the software level, with each logical address segment corresponding to a physical space within the prompt storage area, the prompt data for each event can be written sequentially to the physical space of the prompt storage area according to the logical address segments. This enables on-demand loading and dynamic updating of prompt content. Thus, when an event is triggered, the corresponding prompt data can be accurately retrieved and played based on the index number, breaking the limitation of storage space on multilingual support.
[0010] Optionally, the method further includes: Back up the historical notification sound data for each of the multiple events before erasing; When the writing of the notification sound data for the multiple events fails, the historical notification sounds of the backup multiple events will be rewritten to the corresponding physical space according to the logical address range. Notify the user of any failed writes.
[0011] The beneficial effects of the above technical solution are: when the writing of the prompt sound data in the target language fails, the prompt sound of the previous language version is rolled back through the rollback mechanism, ensuring the stability and availability of the device's prompt function.
[0012] Optionally, when the wearable device supports Bluetooth connectivity, receiving the prompt audio data stream in the target language corresponding to the device model of the wearable device includes: The system receives the notification sound data for each event sent by the mobile terminal in segments according to the notification sound index number. The multiple notification sound data are obtained by the mobile terminal through streaming download from the server.
[0013] The beneficial effects of the above technical solution are as follows: During Bluetooth transmission, the mobile terminal undertakes the high-power download task and transmits the prompt tone data of multiple events in segments to the wearable device in an orderly manner according to the prompt tone index number. In this way, the wearable device receives the complete prompt tone data stream through low-power Bluetooth transmission, thereby extending battery life.
[0014] Optionally, when the wearable device supports WiFi connectivity, receiving the prompt audio data stream in the target language corresponding to the device model of the wearable device includes: The system directly receives notification sounds for multiple events sent concurrently by the server.
[0015] The beneficial effects of the above technical solution are: directly downloading the prompt sound data stream concurrently from the server, effectively shortening the prompt sound update time.
[0016] Optionally, the step of overwriting the prompt sound data of the multiple events to the corresponding physical space according to the corresponding logical address segments includes: The notification sound data for each received event is cached, and the cached notification sound data is verified. Once all the notification sound data for the multiple events have been successfully verified, the notification sound data for each event is written to the corresponding physical space according to the logical address segment corresponding to the notification sound index number of each event, and the cache is released.
[0017] The beneficial effects of the above technical solution are: before writing the prompt sound data, data verification ensures the integrity and accuracy of the data.
[0018] Optionally, the space capacity of the prompt sound storage area is determined based on the amount of data of the prompt sound data of the multiple events.
[0019] The beneficial effects of the above technical solution are as follows: by determining the space capacity of the prompt sound storage area based on the data volume of multiple event prompt sound data, it is possible to ensure that all prompt sounds can be stored completely while avoiding waste of storage resources, thereby achieving the best balance between storage efficiency and functional integrity under limited storage capacity.
[0020] Secondly, embodiments of this application provide a wearable device, including a processor, a memory, a communication module, and a microphone. The microphone, the communication module, the memory, and the processor are connected via a bus. The memory includes a prompt sound storage area and a firmware program storage area. The firmware program storage area stores a computer program, and the processor performs the following operations according to the computer program: The communication module receives a prompt sound data stream in the target language corresponding to the device model of the wearable device; wherein, the target language is selected by the user through the interactive interface of the connected mobile terminal, and the prompt sound data stream contains prompt sound data for multiple events, each event corresponding to a prompt sound index number; Based on the corresponding prompt tone index number of each of the multiple events, a logical address segment is allocated for the prompt tone data of each event in the prompt tone storage area; wherein, each logical address segment has a physical space in the prompt tone storage area, and the space capacity of the prompt tone storage area is fixed; Erase the historical notification sound data written in each physical space of the notification sound storage area, and overwrite the notification sound data of the multiple events to the corresponding physical spaces according to the corresponding logical address segments; In response to a target event trigger operation, the system reads and plays the prompt sound data of the target event from the physical space corresponding to the logical address segment corresponding to the prompt sound index number of the target event; wherein the target event is one of multiple events.
[0021] Optionally, the processor also performs: Back up the historical notification sound data for each of the multiple events before erasing; When the writing of the notification sound data for the multiple events fails, the historical notification sounds of the backup multiple events will be rewritten to the corresponding physical space according to the logical address range. Notify the user of any failed writes.
[0022] Optionally, when the wearable device supports Bluetooth connectivity, the processor receives a prompt audio data stream in the target language corresponding to the device model of the wearable device. Specifically, the operation is as follows: The system receives the notification sound data for each event sent by the mobile terminal in segments according to the notification sound index number. The multiple notification sound data are obtained by the mobile terminal through streaming download from the server.
[0023] Optionally, when the wearable device supports WiFi connectivity, the processor receives a prompt audio data stream in the target language corresponding to the device model of the wearable device. Specifically, the operation is as follows: The system directly receives notification sounds for multiple events sent concurrently by the server.
[0024] Optionally, the processor overwrites the notification sound data of the multiple events to the corresponding physical space according to the corresponding logical address segments. Specifically, the operation is as follows: The notification sound data for each received event is cached, and the cached notification sound data is verified. Once all the notification sound data for the multiple events have been successfully verified, the notification sound data for each event is written to the corresponding physical space according to the logical address segment corresponding to the notification sound index number of each event, and the cache is released.
[0025] Optionally, the space capacity of the prompt sound storage area is determined based on the amount of data of the prompt sound data of the multiple events.
[0026] Thirdly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed, can implement the steps of the prompt sound processing method described in the first aspect above.
[0027] The technical effects of any of the implementation methods in the second to third aspects can be found in the technical effects of the corresponding implementation methods in the first aspect, and will not be repeated here. Attached Figure Description
[0028] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0029] Figure 1 The static superposition storage structure of the memory provided in the embodiments of this application; Figure 2A The prompt sound processing system provided in the embodiments of this application; Figure 2B The following is the architectural principle of the prompt sound processing system provided in the embodiments of this application; Figure 3A flowchart illustrating a method for processing prompt sounds on a wearable device side, as provided in an embodiment of this application; Figure 4 The prompt sound language selection interface provided in the embodiments of this application; Figure 5 The logical division of the prompt sound storage area at the software level for the embodiments of this application; Figure 6 The memory provides a dynamically multiplexed storage structure for embodiments of this application; Figure 7 This application provides an example of a prompt sound language switching method. Figure 8 A logic diagram for the storage of prompt sounds provided in the embodiments of this application; Figure 9 Timing interaction diagram provided for embodiments of this application; Figure 10 This is a structural diagram of a wearable device provided in an embodiment of this application. Detailed Implementation
[0030] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of this application will be clearly and completely described below with reference to the accompanying drawings of the embodiments of this application. Obviously, the described embodiments are only some embodiments of the technical solutions of this application, and not all embodiments. Based on the embodiments recorded in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the technical solutions of this application.
[0031] Based on the exemplary embodiments shown in this application, all other embodiments obtained by those skilled in the art without inventive effort are within the scope of protection of this application. Furthermore, although the disclosures in this application are presented by way of one or more exemplary examples, it should be understood that each aspect of these disclosures can constitute a complete technical solution on its own.
[0032] It should be noted that the brief descriptions of terms in this application are only for the convenience of understanding the embodiments described below, and are not intended to limit the embodiments of this application. Unless otherwise stated, these terms should be understood in their ordinary and common meaning.
[0033] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar or related products or entities and do not necessarily imply a specific order or sequence, unless otherwise indicated. It should be understood that such terms can be used interchangeably where appropriate, for example, in situations where implementation can proceed in a sequence other than those given in the embodiments illustrated or described in this application.
[0034] Furthermore, the terms “comprising” and “having”, and any variations thereof, are intended to cover but not exclusively include, for example, a product or device that includes a series of components is not necessarily limited to those that are explicitly listed, but may include other components that are not explicitly listed or that are inherent to such product or device.
[0035] Currently, to address the demand for multilingual prompts in the global sales of wearable devices, the relevant technologies for handling multilingual prompts mainly include the following solutions: (1) Regional customized curing solution Manufacturers flash firmware versions in the corresponding languages during the production stage, depending on the sales region. For example, versions sold to China are flashed with Chinese prompt sound firmware, while versions sold to Europe and America are flashed with English prompt sound firmware.
[0036] However, this solution requires maintaining multiple firmware versions and stock keeping units (SKUs), increasing production and inventory management costs, and users cannot change the language of the prompts themselves, resulting in poor flexibility.
[0037] For example, if a user buys headphones with firmware that includes English prompts, the prompts will always be in English and cannot be switched to Chinese, making it inconvenient for non-native English speakers. Alternatively, when a user travels abroad, they may not be able to switch to the local language for better understanding.
[0038] (2) Multilingual pre-installation solution
[0039] Employing a "static superposition" storage structure, such as Figure 1 As shown, pre-install as many commonly used language packs (such as Chinese and English) as possible in the device's Flash memory, or use an external high-capacity SPI Flash to store all languages.
[0040] However, pre-installing prompts in multiple languages will increase the required Flash storage space exponentially, directly increasing hardware costs and significantly increasing Bill of Materials (BOM) costs. Furthermore, pre-installing prompts in all languages means that dozens of language prompts will never be used by a single user, yet they will occupy valuable storage resources for a long time. At the same time, limited Flash capacity makes it impossible to cover all less common languages worldwide (such as Thai, Vietnamese, Arabic, etc.), which is also unrealistic at the hardware level, leading to a decline in the product's competitiveness in certain markets.
[0041] (3) Connection-end broadcasting scheme
[0042] The device itself does not store alert sounds. When an event is triggered, it sends a command via Bluetooth to the connected device (such as a mobile phone) and the connected device plays the alert sound and transmits it back to the device.
[0043] However, this solution requires the wearable device to remain connected to the connection point. Once the connection is lost or the app is cleared from the background, the notification sound function will be disabled. Furthermore, when the interaction chain is long, there is a significant delay from the triggering of the event to the app playing the audio and then to the device outputting the audio, resulting in a poor user experience.
[0044] (4) OTA Overall Firmware Upgrade Solution
[0045] When a user needs to switch the language of the notification sound, a complete upgrade package containing the firmware and the new language notification sound will be downloaded, and then the entire firmware in Flash will be replaced via Over-the-Air (OTA) update.
[0046] However, if a power outage or Bluetooth interruption occurs during the firmware upgrade process, the device can easily become unusable. Furthermore, transferring hundreds of KB or even several MB of the entire firmware just to modify a few notification sounds not only increases the user's waiting time but also requires the user to have certain flashing knowledge, making the operation quite difficult.
[0047] In view of this, this application provides a notification sound processing method. With a fixed capacity in the notification sound storage area, a logical address segment is allocated to the notification sound data of each event in the notification sound storage area based on the notification sound index number corresponding to each of the multiple events. Each logical address segment has a physical space in the notification sound storage area. Thus, by using a dynamic overwrite method, the notification sound data of multiple events involving the target language corresponding to the device model are overwritten to the physical space corresponding to the corresponding logical address segment. This achieves dynamic reuse of the notification sound storage area and on-demand loading and dynamic updating of notification sound content. Global multilingual support can be achieved with the capacity of a single language partition, effectively solving the problem that wearable devices cannot support multiple languages due to limited storage space, and realizing global multilingual dynamic customization under low-cost hardware.
[0048] In the notification sound processing method provided in this application embodiment, a fixed "event-notification sound index" mapping table is predefined in the firmware program, as shown in Table 1. The firmware program's code logic calls the notification sound index number to play the event notification sound based on the triggered event, and the code logic does not change with language.
[0049] Table 1. Event-Sound Index Mapping Table
[0050] The prompt sound processing method provided in this application adopts an architecture of "server-side storage + terminal control + device-side dynamic overwriting" to realize on-demand loading and dynamic updating of prompt sound content, thereby reducing the contradiction between the limited storage space of wearable devices and the growing demand for multilingual prompt sound support.
[0051] like Figure 2A As shown, the prompt sound processing system provided in this embodiment mainly includes a server 100, a mobile terminal 200, and a smart wearable device 300, wherein: Server 100 serves as a notification sound resource pool, storing notification sound data streams in different languages and with different timbres. Each notification sound data stream contains notification sound data for multiple events. Optionally, Server 100 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms, but it is not limited to these.
[0052] The mobile terminal 200 serves as a control hub, providing a user interface for users to select the language of the prompts. It also acts as a data transmission bridge, downloading the prompt audio data stream in the user-selected language from the server and transmitting it in packets to the wearable device 300 via Bluetooth. Optionally, the mobile terminal 200 may include, but is not limited to, mobile phones, tablets, computers, and in-vehicle terminals.
[0053] The smart wearable device 300, acting as the execution terminal, includes a processor, memory, communication module, and microphone. These four components work together to enable on-demand loading and dynamic updating of alert tone content. The communication module connects to the mobile terminal 100 for data transmission and reception. The processor parses the alert tone data, performs write / erase operations, and maintains an "event-alert tone index" mapping table. The memory contains a fixed-capacity alert tone storage area that supports repeated write / erase. This storage area's capacity is equal to the size of a complete alert tone data stream (containing alert tones for all events). At the software level, it is divided into multiple logical address segments. Each logical address segment has a physical space within the alert tone storage area, and each logical address segment corresponds to an alert tone index number. Thus, alert tone data can be written to the corresponding physical space according to the logical address segments corresponding to the alert tone index numbers of multiple events. The microphone is used to play the alert tone data.
[0054] Optionally, when the smart wearable device is a wearable device (such as headphones, glasses, etc.), the processor is a microprocessor, the memory is Flash memory, and the communication module is a Bluetooth module or a WiFi module.
[0055] Optionally, when the smart wearable device supports WiFi connectivity, it can directly download the prompt sound data stream in the selected target language from the server.
[0056] Taking the data pass-through bridge of the mobile terminal as an example, the architecture of the above system in the prompt sound processing process is as follows: Figure 2B As shown, the mobile terminal provides language selection and download functions. It downloads the selected target language's prompt sound data stream from the server's multilingual prompt sound resource library via a wireless network, packages the prompt sound data stream, and transmits it in segments to the wearable device via Bluetooth communication module. The wearable device's Flash memory contains a firmware program area and a prompt sound storage area. After receiving the data packet of prompt sound data for each event in segments, the wearable device parses the data. The MCU utilizes the mapping between "event-prompt sound index number" and writes the prompt sound data for each event into a specific physical space in the prompt sound storage area according to the logical address segment corresponding to the prompt sound index number.
[0057] Based on the above system structure, the flowchart of the notification sound processing method on the wearable device side provided in this application embodiment is as follows: Figure 3As shown, it mainly includes the following steps: S301: Receive the prompt tone data stream in the target language corresponding to the device model of the wearable device.
[0058] The target language is selected by the user through the interactive interface of the connected mobile terminal. The prompt sound data stream contains prompt sound data for multiple events, and each event corresponds to a prompt sound index number.
[0059] Typically, wearable devices connect to mobile terminals via Bluetooth. The mobile terminal provides an interactive interface, through which users can select the target language for the wearable device's prompts.
[0060] like Figure 4 As shown in the diagram, this is an interactive interface for selecting the target language. It is used to select Chinese as the target language for the headphones from the language list, which means configuring Chinese prompts for the headphones.
[0061] After the user selects the target language for the prompt tone, the mobile terminal sends a data retrieval request to the server. This request carries the wearable device's model number and the target language's language ID. Upon receiving the request, the server returns the prompt tone data stream in the target language based on the device model and language ID, thus bypassing the limitations of the device's pre-installed language prompt tone.
[0062] In some embodiments, when the wearable device supports Bluetooth connectivity (BLE or SPP), considering the low speed and low throughput characteristics of Bluetooth, and the large amount of data required for a complete set of alert sounds, the server first quickly sends the alert sound data stream in the target language to the mobile terminal. The mobile terminal decompresses the received alert sound data stream and verifies its integrity. After verification, the mobile terminal sends an update command to the wearable device and sends the alert sound data for each event corresponding to each alert sound index number in segments to the wearable device according to the alert sound index number order. Multiple alert sound data segments are obtained by the mobile terminal through streaming download from the server.
[0063] During Bluetooth transmission, the mobile terminal undertakes the high-power download task and transmits the notification sound data of multiple events in segments according to the notification sound index number. In this way, the wearable device receives the complete notification sound data stream through low-power Bluetooth transmission, thereby extending battery life.
[0064] In some embodiments, when the wearable device supports WiFi connectivity, considering the high speed and high throughput characteristics of WiFi, after receiving a data acquisition request, the server directly sends the prompt sound data of multiple events in the target language concurrently to the wearable device without the need for a mobile terminal relay, thereby quickly obtaining a complete set of prompt sound data streams in the target language and effectively shortening the time required for prompt sound updates.
[0065] It should be noted that this application embodiment does not impose restrictive requirements on the audio format of the prompt sound data, including but not limited to MP3, WAV, ADPCM or SBC formats. The firmware only needs to have the corresponding decoder built in. Changes in audio format do not affect the core logic of prompt sound processing.
[0066] S302: Based on the corresponding prompt tone index number of each of the multiple events, allocate a logical address segment for the prompt tone data of each event in the prompt tone storage area.
[0067] A contiguous physical space is reserved in the Flash memory as a notification sound storage area, meaning the space capacity of the notification sound storage area is fixed. Assuming the space occupied by the notification sound data for each event is fixed, and following the order of the notification sound index numbers of multiple events, the notification sound storage area is logically divided at the software level to obtain the logical address segment corresponding to the notification sound index number of each event. Each logical address segment has a physical space (such as a sector or block) within the notification sound storage area.
[0068] like Figure 5 As shown, the physical space of the prompt tone storage area is 0x08020000~0x08040000, and the space occupied by each prompt tone data is 0x4000 (16KB). The correspondence between the prompt tone index number and the logical address segment is as follows: Index number 1 -> logical address segment 0x08020000~0x08023FFF, Index number 2 -> logical address segment 0x08024000~0x08027FFF, Index number 2 -> logical address segment 0x08028000~0x0802BFFF, and so on.
[0069] The physical structure of Flash memory is as follows: Figure 6 As shown, although there are no mechanical changes in the physical structure of this embodiment, it still includes a Bluetooth protocol stack, firmware program area, and prompt tone storage area. However, the storage structure has been optimized. A fixed-capacity, dynamically reusable prompt tone storage area (Dynamic VoiceZone) is allocated in the Flash memory. This prompt tone storage area is not bound to a specific language, but serves as a temporary storage carrier for different language prompt tones. The stored content changes dynamically with the data packets of received prompt tone data, thereby changing the storage structure of multilingual prompt tones from "static superposition" to "dynamic reusability". In this way, global multilingual support can be achieved through a single language partition, effectively saving hardware storage resources and significantly reducing the BOM cost of the device.
[0070] In some embodiments, the space capacity of the Flash memory occupied by the prompt sound storage area is determined based on the amount of data of prompt sound data at multiple times. In this way, while avoiding the waste of storage resources, it ensures that a complete set of prompt sounds in the target language can be stored, thereby achieving the best balance between storage efficiency and functional integrity within a limited storage capacity.
[0071] S303: Erase the historical notification sound data written in each physical space of the notification sound storage area, and overwrite the notification sound data of multiple events to the corresponding physical space according to the corresponding logical address segment.
[0072] After receiving an update command from the mobile terminal, the wearable device unlocks the write protection of the Flash memory to update the prompt sound data.
[0073] Since the storage capacity of the notification sound area is fixed, to avoid data overflow, before writing the notification sound data stream of the target language, the logical address segment corresponding to the notification sound index number of each event is erased. The historical notification sound data written in the physical space where the notification sound storage area exists is cleared, that is, the physical space corresponding to each logical address segment is cleared to accommodate the notification sound data of the target language. Then, for each data packet of notification sound data received for an event, the logical address segment corresponding to the notification sound index number is overwritten to the corresponding physical space, thereby realizing the dynamic reuse of the notification sound storage area and the on-demand loading and dynamic updating of the notification sound content.
[0074] like Figure 7 As shown, when the user selects "Chinese", the physical space corresponding to the logical address segment of the prompt tone index number 0x01 is written with the Chinese prompt tone "Power On". When the user switches to "English", the wearable device downloads the English prompt tone data stream, erases the physical space corresponding to the logical address segment of the prompt tone index number 0x01 through the firmware, and rewrites the English prompt tone "Power On".
[0075] like Figure 8The diagram shows the logical flowchart for notification sound storage. The mobile terminal connects to the server via a wireless network (4G / 5G / WiFi), and the mobile terminal connects to the wearable device via Bluetooth (BLE / SPP protocol). After the user selects the target language for the notification sound on the mobile terminal's interface, the notification sound data stream for the target language is downloaded from the server via the wireless network. The notification sound data for each event in the data stream is packaged and, through the Bluetooth protocol stack, the data packets of each event's notification sound data are fragmented and sent to the wearable device in the order of the notification sound index number. The wearable device parses each received data packet and writes it to the Flash memory via the microprocessor. During the writing process, the microprocessor calls the code in the firmware program area, utilizing the mapping relationship between "event-notification sound index number," and writes the notification sound data for each event sequentially into the specific physical space of the notification sound storage area according to the logical address segment corresponding to the notification sound index number of each event.
[0076] This application embodiment is based on the mapping between "event-notification sound index number" to dynamically overwrite the notification sound data of each event to a fixed partition of the notification sound storage area. Only the notification sound content is updated without changing the notification sound type, thereby realizing storage space reuse and supporting dynamic customization of global multilingual systems at low hardware cost. It effectively balances the limited device storage space and multilingual notification sound support.
[0077] The pre-installed multilingual prompts use a "static overlay" storage structure, which has redundancy. For example, when the user uses the Chinese prompt, the storage space occupied by other language prompts is idle and wasted. However, the "dynamic reuse" storage structure, which overwrites the prompt storage area, eliminates the waste of idle storage space. This allows a small-capacity Flash memory (such as 512KB) to support multilingual functions that originally required a large-capacity Flash memory (such as 2MB). This effectively balances the contradiction between the limited storage space of wearable devices and the support for multilingual prompts.
[0078] In some embodiments, to ensure smooth updates of the prompt sounds, a data verification mechanism can be employed when writing the prompt sound data in the target language to ensure the integrity and accuracy of the prompt sound data. Specifically, the prompt sound data for each received event is cached, and the cached prompt sound data is verified. Once the prompt sound data for multiple events has been successfully verified, the prompt sound data for each event is written to the corresponding physical space according to the logical address segment corresponding to the prompt sound index number of each event, and the cache is released.
[0079] Optionally, the data verification mechanism may employ Cyclic Redundancy Check (CRC) verification.
[0080] In some embodiments, to avoid failure of the target language prompt sound update, the historical prompt sound data of multiple events are backed up before erasing the historical prompt sound data written in the prompt sound storage area, thereby improving the reliability of the prompt sound update through a rollback mechanism.
[0081] In practice, when the writing of the prompt sound data for the multiple events fails, the historical prompt sounds of the backup events are rewritten to the corresponding physical space according to the logical address range, thereby realizing the rollback of the prompt sound language version and ensuring the availability of the prompt sound. At the same time, the log of the writing failure is notified to the user so that the user can restart the switching of the prompt sound language.
[0082] S304: In response to the target event trigger operation, read the target event's prompt tone data from the corresponding address segment according to the target event's prompt tone index number and play it.
[0083] The target event is one of multiple events.
[0084] For example, when all the prompt sound data in the target language has been written, the wearable device restarts or reloads the mapping table of "event-prompt sound index number" to trigger the power-on event, which in turn plays the "POWER_ON" prompt sound in the target language.
[0085] This application addresses the need for wearable devices to support multilingual prompts. Given a fixed size for the prompt storage area, a dynamic overwriting method is employed. The prompt data stream for the target language corresponding to the device model is overwritten to the prompt storage area, achieving dynamic reuse of the prompt storage area. This avoids the static stacking of storage space when pre-installing prompts in multiple languages, allowing small-capacity flash memory to support multilingual prompt functions that previously required large-capacity flash memory. This reduces the conflict between limited device storage space and multilingual support. Furthermore, by establishing a mapping between events and prompt index numbers, and dividing the prompt storage area into multiple logical address segments at the software level, with each logical address segment corresponding to a physical space within the prompt storage area, the prompt data for each event is written sequentially to the physical space of the prompt storage area according to the logical address segments. This enables on-demand loading and dynamic updating of prompt content. Thus, when an event is triggered, the corresponding prompt data can be accurately retrieved and played based on the index number, breaking the limitation of storage space on multilingual support.
[0086] It should be noted that the processor of wearable devices does not depend on a specific brand of microprocessor (MCU). It only needs to have Flash read and write capabilities, making it highly versatile.
[0087] like Figure 9The diagram shown is a timing interaction diagram of the prompt tone processing procedure, and the steps are as follows: S1: The mobile terminal, wearable device, and server establish a communication connection.
[0088] S2: In response to the language selection operation, the mobile terminal sends a data retrieval request to the server based on the language ID of the selected target language and the device model of the wearable device.
[0089] S3: After receiving a data acquisition request, the server directly or indirectly returns a voice prompt data stream in the target language that matches the device model to the wearable device.
[0090] S4: When the wearable device receives a data packet of alert tone data for an event, it uses the mapping relationship between "event-alert tone index number" to determine the logical address segment corresponding to the alert tone index number of the event in the alert tone storage area.
[0091] The space capacity of the prompt tone storage area is fixed, which can store a complete set of prompt tones, and each physical space corresponds to a logical address segment.
[0092] S5: The wearable device writes the alert sound data of the event into the physical space corresponding to the alert sound storage area in the logical address segment.
[0093] S6: In response to the triggering operation of the target event, the wearable device reads the prompt sound data of the target event from a specific physical space according to the logical address segment corresponding to the prompt sound index number of the target event and plays it in the target language.
[0094] The prompt sound processing method provided in this application effectively saves hardware storage resources by dynamically overwriting multilingual prompt sounds. It only requires a single language partition to achieve global multilingual support, significantly reducing device BOM costs and greatly improving the convenience of user operation. It enables dynamic language switching without flashing the firmware. At the same time, it simplifies the production process through index number mapping, and a single firmware version can cover the global market, effectively reducing maintenance and inventory management costs.
[0095] Those skilled in the art will understand that various aspects of this application can be implemented as a system, method, or program product. Therefore, various aspects of this application can be specifically implemented in the following forms: a completely hardware implementation, a completely software implementation (including firmware, microcode, etc.), or a combination of hardware and software implementations, collectively referred to herein as a "circuit," "module," or "system."
[0096] Based on the same technical concept, this application provides a wearable device that can implement the steps of the above-mentioned prompt sound processing method and achieve the same technical effect.
[0097] See Figure 10 The wearable device includes a processor 1001, a memory 1002, a communication module 1003, and a microphone 1004, which are connected via a bus 1005. Microphone 1004 is used to play notification tones; Communication module 1003 is used for sending and receiving data; The memory 1002 includes a firmware program storage area 1002_1 and a prompt sound storage area 1002_2. The firmware program storage area 1002_1 stores a computer program, and the prompt sound storage area 1002_2 is used to store prompt sounds. The processor 1001 executes the steps of the above-mentioned prompt sound processing method according to the computer program.
[0098] It should be noted that, Figure 10 This is just one example; wearable devices may also include components such as power supplies, buttons, and displays, which are not shown.
[0099] In this embodiment, the memory may be a Flash memory, and the processor may be an MCU processor.
[0100] This application does not limit the specific connection medium between the microphone, communication module, memory, and processor. In this application, the bus between the microphone, communication module, memory, and processor is depicted with a thick line in the figures. The connection methods between other components are for illustrative purposes only and are not intended to be limiting. Buses can be categorized as address buses, data buses, control buses, etc. For ease of description, only one thick line is used in the figures, but this does not imply that there is only one bus or one type of bus.
[0101] This application also provides a computer-readable storage medium for storing instructions that, when executed, can perform the steps of any of the prompt sound processing methods in the foregoing embodiments.
[0102] This application also provides a computer program product for storing a computer program that performs the steps of any of the prompt sound processing methods in the foregoing embodiments.
[0103] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0104] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0105] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0106] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0107] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.
Claims
1. A method for processing prompt sounds, characterized in that, Applications in wearable devices, including: Receive a prompt sound data stream in the target language corresponding to the device model of the wearable device; wherein, the target language is selected by the user through the interactive interface of the connected mobile terminal, and the prompt sound data stream contains prompt sound data for multiple events, each event corresponding to a prompt sound index number; Based on the corresponding prompt tone index number of each of the multiple events, a logical address segment is allocated for the prompt tone data of each event in the prompt tone storage area; wherein, each logical address segment has a physical space in the prompt tone storage area, and the space capacity of the prompt tone storage area is fixed; Erase the historical notification sound data written in each physical space of the notification sound storage area, and overwrite the notification sound data of the multiple events to the corresponding physical spaces according to the corresponding logical address segments; In response to a target event trigger operation, the system reads and plays the prompt sound data of the target event from the physical space corresponding to the logical address segment corresponding to the prompt sound index number of the target event; wherein the target event is one of multiple events.
2. The method as described in claim 1, characterized in that, The method further includes: Back up the historical notification sound data for each of the multiple events before erasing; When the writing of the notification sound data for the multiple events fails, the historical notification sounds of the backup multiple events will be rewritten to the corresponding physical space according to the logical address range. Notify the user of any failed writes.
3. The method as described in claim 1, characterized in that, When the wearable device supports Bluetooth connectivity, receiving the prompt audio data stream in the target language corresponding to the device model of the wearable device includes: The system receives the notification sound data for each event sent by the mobile terminal in segments according to the notification sound index number. The multiple notification sound data are obtained by the mobile terminal through streaming download from the server.
4. The method as described in claim 1, characterized in that, When the wearable device supports WiFi connectivity, receiving the prompt audio data stream in the target language corresponding to the device model of the wearable device includes: The system directly receives notification sounds for multiple events sent concurrently by the server.
5. The method according to any one of claims 1-4, characterized in that, The step of overwriting the notification sound data of the multiple events to the corresponding physical space according to the corresponding logical address segments includes: The notification sound data for each received event is cached, and the cached notification sound data is verified. Once all the notification sound data for the multiple events have been successfully verified, the notification sound data for each event is written to the corresponding physical space according to the logical address segment corresponding to the notification sound index number of each event, and the cache is released.
6. The method according to any one of claims 1-4, characterized in that, The storage capacity of the notification sound area is determined based on the amount of data in the notification sound data of the multiple events.
7. A wearable device, characterized in that, It includes a processor, a memory, a communication module, and a microphone. The microphone, the communication module, the memory, and the processor are connected via a bus. The memory includes a prompt sound storage area and a firmware program storage area. The firmware program storage area stores a computer program, and the processor performs the following operations according to the computer program: The communication module receives a prompt sound data stream in the target language corresponding to the device model of the wearable device; wherein, the target language is selected by the user through the interactive interface of the connected mobile terminal, and the prompt sound data stream contains prompt sound data for multiple events, each event corresponding to a prompt sound index number; Based on the corresponding prompt tone index number of each of the multiple events, a logical address segment is allocated for the prompt tone data of each event in the prompt tone storage area; wherein, each logical address segment has a physical space in the prompt tone storage area, and the space capacity of the prompt tone storage area is fixed; Erase the historical notification sound data written in each physical space of the notification sound storage area, and overwrite the notification sound data of the multiple events to the corresponding physical spaces according to the corresponding logical address segments; In response to a target event trigger operation, the system reads and plays the prompt sound data of the target event from the physical space corresponding to the logical address segment corresponding to the prompt sound index number of the target event; wherein the target event is one of multiple events.
8. The wearable device as described in claim 7, characterized in that, The processor also performs: Back up the historical notification sound data for each of the multiple events before erasing; When the writing of the notification sound data for the multiple events fails, the historical notification sounds of the backup multiple events will be rewritten to the corresponding physical space according to the logical address range. Notify the user of any failed writes.
9. The wearable device as described in claim 7, characterized in that, The processor overwrites the notification sound data of the multiple events to the corresponding physical space according to the corresponding logical address segments. The specific operation is as follows: The notification sound data for each received event is cached, and the cached notification sound data is verified. Once all the notification sound data for the multiple events have been successfully verified, the notification sound data for each event is written to the corresponding physical space according to the logical address segment corresponding to the notification sound index number of each event, and the cache is released.
10. The wearable device as described in any one of claims 7-9, characterized in that, The storage capacity of the notification sound area is determined based on the amount of data in the notification sound data of the multiple events.