Bluetooth speaker control method and device, computer device, and storage medium

CN122598642APending Publication Date: 2026-08-18SHENZHEN CAFIYIN INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610798662.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-06-04
Publication Date
2026-08-18

AI Technical Summary

Technical Problem

[0006]本申请实施例的目的在于提出一种蓝牙音箱控制方法、装置、计算机设备及存储介质,以解决传统蓝牙音箱的场景适应性不足的技术问题

Benefits of technology

本申请公开的蓝牙音箱控制方法,通过语音交互获取并解析用户的使用需求与情绪状态,让音箱与用户的沟通更贴近日常使用感受。进而可以明确用户需要音箱完成的操作以及操作的具体时间,让音箱的运行安排贴合用户的实际使用需求。同时能够为用户匹配适配的场景运行方式,让音箱的工作状态契合不同使用场景的使用要求。此外可以为用户提供贴合自身情绪的交互内容,让音箱的交互体验更具人性化。最终既可以及时响应用户的交互需求,又可以在指定时间自动切换至对应场景运行,提升音箱在不同场景下的适配能力。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122598642A_ABST
    Figure CN122598642A_ABST
Patent Text Reader

Abstract

The application belongs to the technical field of smart home control, and relates to a Bluetooth sound box control method and device, computer equipment and a storage medium, which comprises the following steps: collecting a voice instruction of a user to the Bluetooth sound box, inputting the voice instruction into a preset voice analysis model, obtaining an emotional label and an instruction intention of the user according to the voice analysis model output, determining an event to be executed and an event execution time of the Bluetooth sound box according to the instruction intention, obtaining a mapping relationship between events and preset scene modes, determining a target scene mode corresponding to the event to be executed according to the mapping relationship, generating an interactive sentence of the Bluetooth sound box to the user according to the emotional label, replying to the voice instruction according to the interactive sentence, obtaining a current time of the Bluetooth sound box, and controlling a playing state of the Bluetooth sound box according to the target scene mode when the current time is equal to the event execution time. The application improves the adaptation capability of the Bluetooth sound box in different scenes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of smart home control technology, and in particular to a Bluetooth speaker control method, device, computer equipment, and storage medium. Background Technology

[0002] With the rapid popularization of smart homes and portable audio devices, Bluetooth speakers have been widely used in daily scenarios such as home, office, and leisure and entertainment. Users' demands for intelligent and scenario-based user experience of audio devices are constantly increasing.

[0003] Currently, traditional Bluetooth speakers mainly achieve basic functions such as audio playback and volume adjustment through Bluetooth connection. Some products only have simple light indicators or clock display functions. Overall, they are based on a fixed basic operating mode and have relatively fixed function configurations.

[0004] These types of Bluetooth speakers cannot automatically adjust their functions according to different user scenarios, and their intelligent adaptation capabilities are weak. This makes it difficult for Bluetooth speakers to adapt to the diverse usage needs of different scenarios, and they cannot provide users with a consistent and scenario-appropriate user experience.

[0005] In view of the above, this application is hereby submitted. Summary of the Invention

[0006] The purpose of this application is to provide a Bluetooth speaker control method, device, computer equipment, and storage medium to solve the technical problem of insufficient scene adaptability of traditional Bluetooth speakers.

[0007] To address the aforementioned technical problems, this application provides a Bluetooth speaker control method, employing the following technical solution: Collect user voice commands to the Bluetooth speaker, input the voice commands into a preset voice parsing model, and output the user's emotion tag and command intent based on the voice parsing model; Based on the instruction intent, determine the event to be executed and the execution time of the event for the Bluetooth speaker; Obtain the mapping relationship between events and preset scene modes, and determine the target scene mode corresponding to the event to be executed based on the mapping relationship; Based on the emotion tags, the Bluetooth speaker generates interactive statements for the user. The system responds to the voice command based on the interactive statement and obtains the current time of the Bluetooth speaker. When the current time is equal to the event execution time, the system controls the playback state of the Bluetooth speaker according to the target scene mode.

[0008] Furthermore, the speech parsing model includes a feature extraction layer, a fusion layer, an emotion classification layer, and an intent classification layer. Obtaining the user's emotion label and instruction intent based on the output of the speech parsing model includes: The feature extraction layer extracts a speech feature vector from the speech command, converts the speech command into command text, and extracts a text semantic feature vector from the command text. The fusion layer fuses the speech feature vector and the text semantic feature vector to obtain fused features. Through the emotion classification layer, based on the fusion features, the probabilities of multiple preset emotion tags are determined, and based on the probabilities of the multiple preset emotion tags, the user's emotion tag is determined. Through the intent classification layer, the probabilities of multiple preset intents are determined based on the fusion features, and the user's instruction intent is determined based on the probabilities of the multiple preset intents.

[0009] Furthermore, determining the event to be executed and the execution time of the event for the Bluetooth speaker according to the instruction intent includes: Match the event to be executed corresponding to the instruction intent in the preset event types, and determine whether the instruction intent contains time information; If the instruction intent contains the time information, then the time information is converted to obtain the event execution time; If the instruction intent does not include the time information, then the current time of the Bluetooth speaker is determined as the event execution time.

[0010] Furthermore, the scene mode includes an audio playlist and lighting effects. After controlling the playback state of the Bluetooth speaker according to the target scene mode when the current time equals the event execution time, the method further includes: Obtain the audio playlist of the Bluetooth speaker in the target scene mode; Based on multiple preset frequency bands, the audio digital signal of the currently playing song in the audio playlist is decomposed to obtain the signal strength corresponding to each preset frequency band; The current display parameters of the lighting effect of the Bluetooth speaker in the target scene mode are obtained. The current display parameters are adjusted according to the signal strength corresponding to each preset frequency band to obtain the target display parameters. The lighting effect of the Bluetooth speaker is then adjusted according to the target display parameters.

[0011] Furthermore, after controlling the playback state of the Bluetooth speaker according to the target scene mode when the current time equals the event execution time, the method further includes: Obtain smoke concentration data of the environment where the Bluetooth speaker is located; When the smoke concentration data is greater than a preset concentration threshold, a mode switching command for the Bluetooth speaker is generated; According to the mode switching command, the target scene mode is switched to the preset alarm mode.

[0012] Furthermore, when the current time equals the event execution time, controlling the playback state of the Bluetooth speaker according to the target scene mode includes: When the current time is equal to the event execution time, determine the current scene mode of the Bluetooth speaker, obtain the first priority corresponding to the current scene mode, and the second priority corresponding to the target scene mode; If the first priority is greater than the second priority, then the Bluetooth speaker is controlled to maintain the playback mode corresponding to the current scene mode; If the first priority is less than or equal to the second priority, then the current environment mode is switched to the target scene mode.

[0013] Furthermore, the target scene mode is a wake-up mode, and when the current time equals the event execution time, controlling the playback state of the Bluetooth speaker according to the target scene mode includes: The brightness of the Bluetooth speaker's light and the alarm clock audio of the wake-up mode are obtained. Based on the event execution time, an early wake-up period is determined, and during the early wake-up period, the brightness of the Bluetooth speaker's light is controlled to be increased to a preset first brightness value; When the current time equals the event execution time, the brightness of the Bluetooth speaker's light is increased to a preset second brightness value, and the alarm clock audio is activated. The second brightness value is greater than the first brightness value.

[0014] To address the aforementioned technical problems, this application also provides a Bluetooth speaker control device, which employs the following technical solution: A Bluetooth speaker control device, comprising: The parsing module is used to collect the user's voice commands to the Bluetooth speaker, input the voice commands into a preset voice parsing model, and output the user's emotion tags and command intentions based on the voice parsing model. The determination module is used to determine the event to be executed and the execution time of the event of the Bluetooth speaker according to the instruction intent; The acquisition module is used to acquire the mapping relationship between events and preset scene modes, and determine the target scene mode corresponding to the event to be executed based on the mapping relationship; The generation module is used to generate interactive statements from the Bluetooth speaker to the user based on the emotion tags. The control module is used to respond to the voice command according to the interactive statement, and to obtain the current time of the Bluetooth speaker. When the current time is equal to the event execution time, the module controls the playback state of the Bluetooth speaker according to the target scene mode.

[0015] To address the aforementioned technical problems, this application also provides a computer device that employs the following technical solution: A computer device includes a memory and a processor, the memory storing computer-readable instructions, the processor executing the computer-readable instructions to implement the steps of the Bluetooth speaker control method described above.

[0016] To address the aforementioned technical problems, this application also provides a computer-readable storage medium, employing the technical solution described below: A computer-readable storage medium storing computer-readable instructions, which, when executed by a processor, implement the steps of the Bluetooth speaker control method described above.

[0017] Compared with the prior art, this application has the following main advantages: The Bluetooth speaker control method disclosed in this application acquires and analyzes user needs and emotional states through voice interaction, making the communication between the speaker and the user more closely resemble daily usage. This allows for the clear definition of the operations the user needs the speaker to perform and the specific timing of those operations, ensuring the speaker's operation aligns with the user's actual needs. Simultaneously, it can match the user with appropriate scene operation modes, ensuring the speaker's working state matches the requirements of different usage scenarios. Furthermore, it can provide users with interactive content tailored to their emotions, making the speaker's interactive experience more human-centered. Ultimately, it can respond promptly to user interaction needs and automatically switch to the corresponding scene operation at specified times, enhancing the speaker's adaptability in different scenarios. Attached Figure Description

[0018] To more clearly illustrate the solutions in this application, the accompanying drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the accompanying 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.

[0019] Figure 1 This is an exemplary system architecture diagram to which this application can be applied; Figure 2This is a flowchart of one embodiment of the Bluetooth speaker control method according to this application; Figure 3 This is a schematic diagram of one embodiment of the Bluetooth speaker control device according to this application; Figure 4 This is a schematic diagram of the structure of one embodiment of the computer device according to this application. Detailed Implementation

[0020] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains; the terminology used herein in the specification of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application; the terms "comprising" and "having," and any variations thereof, in the specification, claims, and foregoing drawings of this application are intended to cover non-exclusive inclusion. The terms "first," "second," etc., in the specification, claims, or foregoing drawings of this application are used to distinguish different objects, not to describe a particular order.

[0021] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a mutually exclusive, independent, or alternative embodiment. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0022] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.

[0023] like Figure 1 As shown, the system architecture 100 may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired or wireless communication links, or fiber optic cables, etc.

[0024] Users can use the first terminal device 101, the second terminal device 102, and the third terminal device 103 to interact with the server 105 via the network 104 to receive or send messages, etc. Various communication client applications can be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0025] The first terminal device 101, the second terminal device 102, and the third terminal device 103 can be various electronic devices with displays and support web browsing, including but not limited to smartphones, tablets, e-book readers, MP3 (Moving Picture Experts Group Audio Layer Ⅲ) players, MP4 (Moving Picture Experts Group Audio Layer IV) players, laptops, and desktop computers, etc.

[0026] Server 105 can be a server that provides various services, such as a backend server that supports the pages displayed on the first terminal device 101, the second terminal device 102, and the third terminal device 103.

[0027] It should be noted that the Bluetooth speaker control method provided in this application embodiment is generally executed by the terminal device, and correspondingly, the Bluetooth speaker control device is generally set in the terminal device.

[0028] It should be understood that Figure 1 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.

[0029] Continue to refer to Figure 2 A flowchart of an embodiment of the Bluetooth speaker control method according to this application is shown. The Bluetooth speaker control method includes the following steps: Step S201: Collect the user's voice commands to the Bluetooth speaker, and parse the voice commands to obtain the user's emotion tags and command intentions.

[0030] In this embodiment, the Bluetooth speaker control method operates on an electronic device (e.g., Figure 1 The terminal device shown can send or receive data via wired or wireless connection. It should be noted that the aforementioned wireless connection methods may include, but are not limited to, 3G / 4G / 5G connections, Wi-Fi connections, Bluetooth connections, WiMAX connections, Zigbee connections, UWB (ultra-wide band) connections, and other currently known or future wireless connection methods.

[0031] In this embodiment, voice commands refer to the voice information input by the user to the Bluetooth speaker, conveying operational needs to the device. The voice parsing model is a pre-trained multimodal neural network model used for end-to-end parsing of the input voice commands. The input of this model is the audio signal of the voice command, and the output includes the user's emotion label and command intent. The emotion label represents the user's emotional state when issuing the voice command, including at least positive, negative, or stable emotions; the command intent represents the type of operation the user expects the Bluetooth speaker to perform, including at least alarm clock setting, reminder setting, scene mode switching, lighting effect control, or audio playback control. The voice parsing model can be obtained in advance by collecting a large number of voice command samples with emotion and intent labels to construct a training dataset; using the training dataset to perform multi-task learning training on the initial neural network model to optimize the model's emotion classification loss and intent classification loss; and obtaining the voice parsing model after training. During the inference phase, the real-time voice commands collected by the Bluetooth speaker are directly input into the voice parsing model, and the model outputs the emotion label and command intent simultaneously after forward computation.

[0032] Step S202: Determine the event to be executed and the execution time of the event for the Bluetooth speaker according to the instruction intent.

[0033] In this embodiment, the instruction intent refers to the user's purpose or request, and the event to be executed refers to the event matched by the Bluetooth speaker based on the user's stated purpose or request. For example, the parsed event to be executed could be a specific event such as starting a wake-up reminder, starting reading, or playing music. After receiving the instruction, the Bluetooth speaker parses the instruction intent and determines the event that the speaker needs to execute and the timing of the event based on the intent. The instruction can be generated by voice input, transmission from an external control terminal, or triggered by an internal clock module. The timing of the event execution can be determined by combining the time information carried in the instruction or by using the speaker's current time data.

[0034] Step S203: Obtain the mapping relationship between events and preset scene modes, and determine the target scene mode corresponding to the event to be executed based on the mapping relationship.

[0035] In this embodiment, after determining the event to be executed, the speaker retrieves a pre-stored mapping relationship and performs matching based on the mapping relationship to obtain the target scene mode corresponding to the event to be executed. There is a corresponding association between the event to be executed and the scene mode; different events to be executed will be matched with a suitable scene mode. For example, when the event to be executed is a wake-up reminder, a wake-up mode is matched; when the event to be executed is sleep aid, a sleep mode is matched; when the event to be executed is for reading, a reading mode is matched; when the event to be executed is for entertainment playback, a party mode is matched; when the event to be executed is for watching movies and TV shows, a cinema mode is matched; and when the event to be executed is a security alarm, an alarm mode is matched. The scene mode is a set of preset parameters including audio, lighting, brightness, and priority. In other words, the event to be executed represents the operating direction of the Bluetooth speaker, and the environment mode represents how to implement the specific operation of the event to be executed. For example, when the target environment mode is reading mode, the audio playlist is light music, the lighting effect is continuous white cool light, and the lighting brightness is at a moderate level. The priority order of each environment mode is based on the functional attributes and execution necessity of the scene mode. For example, security-related scenarios are directly related to user safety and have the highest execution priority. Scheduled reminders are rigid requirements and have the next highest priority. Immersive usage scenarios have a higher priority than leisure and entertainment scenarios, focused usage scenarios have a higher priority than relaxation and rest scenarios, and the default standby scenario, which is the normal operating state without active triggering, has the lowest priority.

[0036] Step S204: Generate interactive statements from the Bluetooth speaker to the user based on the emotion tags.

[0037] In this embodiment, the Bluetooth speaker pre-stores multiple sets of interactive phrases adapted to different emotion tags. After emotion tag recognition, the speaker retrieves content matching the current emotion tag from the pre-stored phrase library and generates interactive phrases for the user. Emotion tags are at least divided into positive emotions, negative emotions, and neutral emotions. When the recognized emotion tag is positive, the generated interactive phrases are mainly positive responses, matching the user's heightened emotional state; when the recognized emotion tag is negative, the generated interactive phrases are mainly soothing and guiding, conveying calming and relaxing content to the user; when the recognized emotion tag is neutral, the generated interactive phrases are mainly conventional responses, concisely and clearly addressing the user's commands. After generating the interactive phrases, the speaker converts the phrase content into playable audio signals.

[0038] Step S205: Respond to the user's voice command according to the interactive statement, and obtain the current time of the Bluetooth speaker. When the current time is equal to the event execution time, control the playback state of the Bluetooth speaker according to the target scene mode.

[0039] In this embodiment, the generated interactive statements are converted into audio and played outwards to respond to user voice commands. The speaker continuously acquires the current time through its internal clock module and compares the current time with the event execution time in real time. When the current time and the event execution time do not match, the speaker maintains its original operating state and does not adjust playback-related settings. When the current time and the event execution time are detected to be consistent, the speaker reads the operating parameters corresponding to the target scene mode and adjusts the audio output and lighting display states according to the parameters, thereby controlling the playback state and ensuring that the speaker operates according to the requirements of the target scene mode.

[0040] This application acquires and analyzes user needs and emotional states through voice interaction, making the communication between the speaker and the user more closely resemble daily usage. This allows for the identification of the user's required actions and the specific timing of those actions, ensuring the speaker's operation aligns with the user's actual needs. Simultaneously, it can match the speaker with appropriate scene-specific operating modes, ensuring the speaker's working state matches the requirements of different usage scenarios. Furthermore, it can provide users with interactive content tailored to their emotions, making the speaker's interactive experience more human-centered. Ultimately, it can respond promptly to user interaction needs and automatically switch to the corresponding scene operation at specified times, enhancing the speaker's adaptability in different scenarios.

[0041] In some optional implementations of this embodiment, the speech parsing model includes a feature extraction layer, a fusion layer, an emotion classification layer, and an intent classification layer. The steps of obtaining the user's emotion label and instruction intent based on the output of the speech parsing model include: The feature extraction layer extracts a speech feature vector from the speech command, converts the speech command into command text, and extracts a text semantic feature vector from the command text. The fusion layer fuses the speech feature vector and the text semantic feature vector to obtain fused features. Through the emotion classification layer, based on the fusion features, the probabilities of multiple preset emotion tags are determined, and based on the probabilities of the multiple preset emotion tags, the user's emotion tag is determined. Through the intent classification layer, the probabilities of multiple preset intents are determined based on the fusion features, and the user's instruction intent is determined based on the probabilities of the multiple preset intents.

[0042] In this embodiment, the user's emotion label and instruction intent are obtained by parsing the voice command through a preset voice parsing model. This model simultaneously processes the acoustic features of the voice signal and the semantic features of the transcribed text, outputting the emotion label and instruction intent. The voice parsing model adopts a dual encoder and fusion classifier structure. The voice encoder is used to extract the acoustic features of the voice signal. Specifically, the Mel spectrogram of the original voice signal of the voice command is used as input. The time frame number of the spectrogram is variable, and the frequency domain dimension is an 80-dimensional Mel filter bank. The voice encoder is built based on Conformer (Convolution-augmented Transformer). The voice encoder includes an input convolutional downsampling layer, consisting of two 2D convolutional layers with a stride of 2, compressing the time dimension to one-quarter of the original; and 12 Conformer blocks, each containing a multi-head self-attention layer, a convolutional module, and a feedforward network. The multi-head self-attention layer has 8 attention heads and a hidden dimension of 512. The convolutional module uses depthwise separable convolutions with a kernel size of 7, coupled with gated linear units. The feedforward network has a scaling factor of 4 and an output dimension of 512. Each sub-layer is followed by residual connections and layer normalization. The speech encoder outputs a sequence of speech feature vectors with a dimension of 512, which is then subjected to global average pooling to obtain a fixed-length speech feature vector with a dimension of 512.

[0043] A text encoder is used to extract semantic features from speech-to-text transcription. A BERT-based model can be used as the text encoder, which contains a 12-layer Transformer encoder with 768 hidden layers, 12 attention heads, and a 3072-dimensional feedforward network. The input to the text encoder is the transcribed text of a speech instruction, pre-segmented into sub-words. The text encoder outputs the vector corresponding to the first token in the text sequence, serving as the text semantic feature vector with a dimension of 768.

[0044] The multimodal fusion layer is used to fuse speech features with text semantic features. Specifically, the speech feature vector of dimension 512 and the text semantic feature vector of dimension 768 are concatenated to obtain a fusion vector of dimension 1280. This fusion vector is then passed through two fully connected layers: the first layer outputs a dimension of 512 and uses the ReLU activation function; the second layer outputs a dimension of 256 and sets the dropout rate to 0.3.

[0045] The dual-task classification head includes an emotion classification head and an intent classification head. The emotion classification head takes the fused features of dimension 256 as input, outputs dimension 3 (corresponding to positive, negative, and stable emotions respectively) through a fully connected layer, and uses a Softmax activation function to output a probability distribution. The category with the highest probability is taken as the user's emotion label. The intent classification head also takes the fused features of dimension 256 as input, outputs dimension K through a fully connected layer, where K is the preset total number of instruction intent categories. In this embodiment, K is 15, including common instruction intents such as alarm clock settings, reminder settings, scene mode switching, lighting effect control, and audio playback control. It uses a Softmax activation function to output the probability of each category, and takes the category with the highest probability as the user's instruction intent.

[0046] For training the speech parsing model, 100,000 real-world Chinese speech commands were collected, covering users of different ages, genders, and accents. Each data point included: audio of the speech command (sampling rate 16kHz, mono, duration 2-10 seconds); the corresponding manually transcribed text; a sentiment label, independently labeled as positive, negative, or neutral by three professionals, with a consensus rate of over 95% among the three parties before use; and a command intent label, labeled by domain experts into one of 15 pre-defined categories. The dataset was divided into training, validation, and test sets in an 8:1:1 ratio. A multi-task joint loss function L=L was then used. emo +L int L emo For the cross-entropy loss of emotion classification, L int Cross-entropy loss is used for intent classification. The optimizer chosen is AdamW, and the initial learning rate can be set to 1×10⁻⁶. −4 The weight decay is 0.01. The learning rate scheduling strategy is as follows: first, perform linear warm-up, and then linearly increase the learning rate from 0 to 1×10 in the first 10% of training steps. −4 Then, cosine annealing was used to gradually reduce the learning rate to 1×10. −6 The batch size was set to 32, and speech and text data were loaded simultaneously during training with dynamic padding and alignment. The training consisted of 30 epochs with an early stopping strategy: training was terminated if the validation set loss did not decrease for five consecutive epochs. For regularization, the dropout rate was set to 0.1 for the speech encoder, 0.1 for the text encoder, and 0.3 for the fusion layer.

[0047] For example, when receiving the voice command "I want to get up at 7 a.m. tomorrow, but I'm feeling a bit irritable right now, so let's play some relaxing music.", the voice parsing model detects that the voice command has a slow speech rate, low pitch, low volume, and poor speech stability. It then extracts text semantic features, obtaining emotion-related words such as "irritable" and "relaxing music," as well as operational requests such as "get up at 7 a.m. tomorrow" and "play some music." These features are then concatenated and mapped using the fusion layer to obtain 256-dimensional fusion features. The emotion classification head outputs probabilities: positive 0.03, negative 0.89, and stable 0.08, so "negative" is chosen as the emotion label. The intent classification head outputs probabilities for 15 categories, with the highest being "scene mode switching and music playback" (probability 0.76), followed by "alarm clock setting" (probability 0.21). Therefore, "scene mode switching and music playback" is chosen as the primary instruction intent, while the model also detects the auxiliary intent "alarm clock setting."

[0048] This application processes voice commands through a pre-set voice parsing model, integrating voice and text features for analysis. The model is fully trained to adapt to real-world usage scenarios, and can simultaneously obtain user emotion tags and command intentions, making the speaker's interactive performance more in line with the user's actual state and optimizing the overall user experience.

[0049] In some optional implementations of this embodiment, the steps of determining the event to be executed and the execution time of the event of the Bluetooth speaker according to the instruction intent include: Match the event to be executed corresponding to the instruction intent in the preset event types, and determine whether the instruction intent contains time information; If the instruction intent contains the time information, then the time information is converted to obtain the event execution time; If the instruction intent does not include the time information, then the current time of the Bluetooth speaker is determined as the event execution time.

[0050] In this embodiment, the preset event types include morning reminder events, sleep assistance events, reading mode switching events, audio / video playback events, entertainment atmosphere creation events, security alarm execution events, device status broadcast events, and parameter setting adjustment events. It also determines whether the command intent contains time information. When the command intent contains time information, the speaker performs format conversion processing on the time information, converting the text-based time content into a standard time format recognizable by the device, thereby obtaining the event execution time. When the command intent does not contain any time information, the speaker obtains the current system time through its internal clock module and directly sets that time as the event execution time. For example, if the user's voice command is "Remind me to get up at 7:00 AM tomorrow," the command contains the time information 7:00 AM. The speaker converts this textual time description into a standard digital time format, using this as the execution time for the morning reminder event.

[0051] This application quickly identifies the corresponding event to be executed by combining the command intent with a preset event type and determining whether the command contains time information. Converting the time information to a different format or using the current time directly allows for more flexible setting of event execution time, adapting to different command scenarios and improving the speaker's processing efficiency for various commands.

[0052] In some optional implementations of this embodiment, the scene mode includes an audio playlist and lighting effects. Following the step of controlling the playback state of the Bluetooth speaker according to the target scene mode when the current time equals the event execution time, the method further includes: Obtain the audio playlist of the Bluetooth speaker in the target scene mode; Based on multiple preset frequency bands, the audio digital signal of the currently playing song in the audio playlist is decomposed to obtain the signal strength corresponding to each preset frequency band; The current display parameters of the lighting effect of the Bluetooth speaker in the target scene mode are obtained. The current display parameters are adjusted according to the signal strength corresponding to each preset frequency band to obtain the target display parameters. The lighting effect of the Bluetooth speaker is then adjusted according to the target display parameters.

[0053] In this embodiment, the current display parameters include light brightness values, light color parameters, light rhythm frequency, and light switching rhythm. Each scene mode includes two types of configuration content: audio playlists and lighting effects. After controlling the Bluetooth speaker's playback status according to the target scene mode, the device collects the audio digital signal of the currently playing song in the audio playlist in real time, and simultaneously reads the current display parameters corresponding to the lighting effects. Multiple fixed preset frequency bands are pre-divided, specifically including low-frequency, mid-frequency, and high-frequency bands, each corresponding to a specific frequency range. The low-frequency band is 20Hz to 200Hz, the mid-frequency band is 200Hz to 2kHz, and the high-frequency band is 2kHz to 20kHz. After acquiring the audio digital signal of the currently playing song, the speaker first performs noise reduction and normalization preprocessing on the signal to remove redundant interference signals and ensure signal stability. Subsequently, the preprocessed audio digital signals are input into the filters corresponding to each preset frequency band. The filters filter out the audio signals corresponding to each frequency band, and then the amplitude of the filtered signals is calculated to obtain the signal strength parameters corresponding to each preset frequency band. The system compares the intensity values ​​of each frequency band with the internally preset parameter mapping relationship. Based on the signal strength of each frequency band, it adjusts the current display parameters such as brightness, color, and rhythm speed of the lights step by step. Specifically, the mapping relationship is as follows: low-frequency signal strength corresponds to the overall brightness and color saturation of the lights; the higher the intensity level, the larger the set values ​​for brightness and saturation, thus adjusting the brightness value. Mid-frequency signal strength corresponds to the color switching of the lights; when the intensity level changes, the lights adjust sequentially within the preset color range, thus adjusting the color parameters. High-frequency signal strength corresponds to the rhythm switching speed of the lights; the higher the intensity level, the faster the light state switches, thus adjusting the light rhythm frequency and switching rhythm. This yields the target display parameters. Based on the target display parameters, the output state of the lights is adjusted in real time, so that the lighting effects change synchronously with the audio changes of the played song, achieving synchronized audio and lighting effects.

[0054] This application obtains the signal strength of each frequency band by decomposing the audio signal, thereby adjusting the brightness, color and other related parameters of the light, so that the light effect changes synchronously with the audio content, enriches the presentation of scene modes, improves the audio-visual coordination effect of the Bluetooth speaker, and brings users a richer user experience.

[0055] In some optional implementations of this embodiment, after the step of controlling the playback state of the Bluetooth speaker according to the target scene mode when the current time is equal to the event execution time, the method further includes: Obtain smoke concentration data of the environment where the Bluetooth speaker is located; When the smoke concentration data is greater than a preset concentration threshold, a mode switching command for the Bluetooth speaker is generated; According to the mode switching command, the target scene mode is switched to the preset alarm mode.

[0056] In this embodiment, the Bluetooth speaker has a built-in smoke detection module. This module continuously collects air samples from the surrounding environment and uses internal sensors to detect and identify smoke particles in the air. The sensors convert the detected smoke particle content into an analog electrical signal, which is then converted into a digital signal through analog-to-digital conversion, ultimately forming smoke concentration data that the speaker's main controller can recognize. This smoke concentration data is compared with a preset concentration threshold. When the smoke concentration data exceeds the preset threshold, a mode switching command is generated according to the device's preset instruction format. The switched scene mode is alarm mode, which has the highest priority. Regardless of the current mode of the Bluetooth speaker, it will directly switch to alarm mode. The preset concentration threshold can be 0.15 mg / m³. This value is set according to household environmental safety monitoring standards, which can identify abnormalities in the early stages of smoke formation, preventing danger caused by excessively high concentrations, and also avoid false triggering from normal scenarios such as cooking and burning incense.

[0057] This application monitors the ambient smoke concentration in real time and compares it with a preset threshold. When the concentration exceeds the standard, it automatically switches to a high-priority alarm mode, which can promptly detect abnormal environmental conditions, provide users with safety warnings, expand the functionality of Bluetooth speakers, and enhance safety during home use.

[0058] In some optional implementations of this embodiment, the step of controlling the playback state of the Bluetooth speaker according to the target scene mode when the current time is equal to the event execution time includes: When the current time is equal to the event execution time, determine the current scene mode of the Bluetooth speaker, obtain the first priority corresponding to the current scene mode, and the second priority corresponding to the target scene mode; If the first priority is greater than the second priority, then the Bluetooth speaker is controlled to maintain the playback mode corresponding to the current scene mode; If the first priority is less than or equal to the second priority, then the current environment mode is switched to the target scene mode.

[0059] In this embodiment, when the speaker's internal clock determines that the current time is the same as the event execution time, the main control module first reads the current running status identifier to determine the specific scene mode the Bluetooth speaker is in. The speaker has a built-in scene mode priority configuration table, which records the priority tag values ​​corresponding to each mode. The main control module retrieves the priority value corresponding to the current scene mode from this configuration table, marking it as the first priority, and then retrieves the priority value corresponding to the target scene mode, marking it as the second priority. Each scene mode has a corresponding priority. For example, in the scene modes of alarm clock mode, wake-up mode, sleep mode, reading mode, party mode, cinema mode, and alarm mode, the corresponding priorities are: alarm mode has a priority of 4; alarm clock mode, wake-up mode, and sleep mode have a priority of 3; reading mode, cinema mode, and party mode have a priority of 2. The numbers indicate priority, with higher values ​​indicating higher priority. Alarm modes are related to home safety, including warnings of dangers such as smoke and other abnormalities. Safety needs are the most urgent across all usage scenarios and must be prioritized. They cannot be interrupted by any rest or entertainment modes, therefore they are set to the highest priority. Rest modes serve the user's daily rhythm and are essential reminder functions directly related to the user's schedule, representing a basic and important daily need. Entertainment modes are supplementary experiences for relaxation and enjoyment, non-essential functions for users. Their importance is lower than safety and rest needs, and since they are all leisure scenarios, users can switch as needed, with no priority difference between them. Therefore, they are classified as the lowest priority at the same level. The speaker compares the first and second priority values. If the first priority value is higher, the current scene mode's playback mode remains unchanged; if the first priority value is lower than or equal to the second priority value, the current scene mode is immediately switched to the target scene mode. For example, if the current mode is alarm mode and the target is audio-visual mode, the speaker remains in alarm mode; if the current mode is reading mode and the target is audio-visual mode, it directly switches to audio-visual mode.

[0060] This application sets hierarchical priorities for different scene modes and determines whether to switch modes based on the priority comparison results. This can prioritize the operation of safety and rest modes, avoid important scenes being interrupted by ordinary entertainment modes, make mode switching more in line with actual usage needs, and improve the rationality and smoothness of speaker use.

[0061] In some optional implementations of this embodiment, the target scene mode is a wake-up mode, and the step of controlling the playback state of the Bluetooth speaker according to the target scene mode when the current time is equal to the event execution time includes: The brightness of the Bluetooth speaker's light and the alarm clock audio of the wake-up mode are obtained. Based on the event execution time, an early wake-up period is determined, and during the early wake-up period, the brightness of the Bluetooth speaker's light is controlled to be increased to a preset first brightness value; When the current time equals the event execution time, the brightness of the Bluetooth speaker's light is increased to a preset second brightness value, and the alarm clock audio is activated. The second brightness value is greater than the first brightness value.

[0062] In this embodiment, when the target scene mode is wake-up mode and the current time matches the event execution time, the Bluetooth speaker first reads the current brightness of the light component and simultaneously retrieves the preset wake-up mode alarm audio from within the device. The Bluetooth speaker's display interface shows the current time in digital form. The wake-up mode has a fixed early wake-up period of 10 minutes. Using the event execution time as the final time point, 10 minutes prior is used as the starting time for the gradual brightening of the light. From this starting time, the speaker controls the light brightness to gradually and steadily increase at a uniform speed. At the end of the entire early wake-up period, the brightness is increased to a preset first brightness value, simulating the effect of natural light slowly brightening in the morning. When the current time is detected to match the set event execution time, the light brightness is directly increased from the already reached first brightness value to a preset second brightness value, which is higher and provides more ample illumination. Simultaneously, the audio module is activated to play the wake-up mode's exclusive alarm audio, using a sudden brightening of the light in conjunction with the sound to wake the user. For example, the light brightness value can be set as a percentage of the light's maximum brightness. The first brightness value can be 40%, which is the brightness at the end of the early wake-up phase. The light is soft and not dazzling, simulating the state of dawn and slowly waking up the user's senses. The second brightness value can be 80%, which is higher than the first brightness value. The light is brighter and more sufficient. When combined with audio at the alarm time, it can effectively wake up the user without causing discomfort due to excessive light.

[0063] This application uses a gradual increase in light brightness in advance, combined with higher brightness lights and alarm clock audio to wake up the user, simulating the wake-up method of natural morning light changes. This reduces the discomfort caused by sudden sounds, making the morning wake-up process gentler and improving the user's comfort experience when using the wake-up mode.

[0064] The embodiments of this application can acquire and process relevant data based on artificial intelligence technology. Artificial intelligence (AI) refers to the theories, methods, technologies, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to obtain optimal results.

[0065] Foundational technologies for artificial intelligence generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing, operating / interactive systems, and mechatronics. AI software technologies mainly encompass computer vision, robotics, biometrics, speech processing, natural language processing, and machine learning / deep learning.

[0066] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing related hardware through computer-readable instructions. These computer-readable instructions can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above methods. The aforementioned storage medium can be a non-volatile storage medium such as a magnetic disk, optical disk, or read-only memory (ROM), or random access memory (RAM).

[0067] It should be understood that although the steps in the flowcharts of the accompanying figures are shown sequentially as indicated by 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 accompanying figures may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.

[0068] Further reference Figure 3 As a response to the above Figure 2 The implementation of the method shown in this application provides an embodiment of a Bluetooth speaker control device, which is similar to... Figure 2 Corresponding to the method embodiments shown, this device can be specifically applied to various electronic devices.

[0069] like Figure 3 As shown, the Bluetooth speaker control device 300 described in this embodiment includes: a parsing module 301, a determining module 302, an acquiring module 303, a generating module 304, and a control module 305. Wherein: The parsing module 301 is used to collect the user's voice commands to the Bluetooth speaker, input the voice commands into a preset voice parsing model, and output the user's emotion tags and command intentions based on the voice parsing model. The determining module 302 is used to determine the event to be executed and the execution time of the event of the Bluetooth speaker according to the instruction intent; The acquisition module 303 is used to acquire the mapping relationship between events and preset scene modes, and determine the target scene mode corresponding to the event to be executed based on the mapping relationship; The generation module 304 is used to generate interactive statements from the Bluetooth speaker to the user based on the emotion tags. The control module 305 is used to respond to the voice command according to the interactive statement and obtain the current time of the Bluetooth speaker. When the current time is equal to the event execution time, the control module 305 controls the playback state of the Bluetooth speaker according to the target scene mode.

[0070] The Bluetooth speaker control device provided in this application acquires and analyzes the user's usage needs and emotional state through voice interaction, making the communication between the speaker and the user more closely resemble daily usage. This allows for the clear definition of the user's required actions and the specific timing of those actions, ensuring the speaker's operation aligns with the user's actual needs. Simultaneously, it can match the user with appropriate scene operation modes, ensuring the speaker's working state matches the requirements of different usage scenarios. Furthermore, it can provide users with interactive content tailored to their emotions, making the speaker's interactive experience more human-centered. Ultimately, it can respond promptly to user interaction needs and automatically switch to the corresponding scene operation at specified times, enhancing the speaker's adaptability in different scenarios.

[0071] In some optional implementations of this embodiment, the parsing module 301 is further configured to: The feature extraction layer extracts a speech feature vector from the speech command, converts the speech command into command text, and extracts a text semantic feature vector from the command text. The fusion layer fuses the speech feature vector and the text semantic feature vector to obtain fused features. Through the emotion classification layer, based on the fusion features, the probabilities of multiple preset emotion tags are determined, and based on the probabilities of the multiple preset emotion tags, the user's emotion tag is determined. Through the intent classification layer, the probabilities of multiple preset intents are determined based on the fusion features, and the user's instruction intent is determined based on the probabilities of the multiple preset intents.

[0072] The Bluetooth speaker control device provided in this application processes voice commands through a preset voice parsing model, integrates voice and text features for analysis, and the model is fully trained to adapt to real-world usage scenarios. It can simultaneously obtain user emotion tags and command intentions, making the speaker interaction performance more in line with the user's actual state and optimizing the overall user experience.

[0073] In some optional implementations of this embodiment, the determining module 302 is further configured to: Match the event to be executed corresponding to the instruction intent in the preset event types, and determine whether the instruction intent contains time information; If the instruction intent contains the time information, then the time information is converted to obtain the event execution time; If the instruction intent does not include the time information, then the current time of the Bluetooth speaker is determined as the event execution time.

[0074] The Bluetooth speaker control device provided in this application can quickly determine the corresponding event to be executed by combining the command intent with a preset event type and determining whether the command contains time information. Converting the time information to a different format or directly using the current time allows for more flexible setting of the event execution time, adapting to different command scenarios and improving the speaker's processing efficiency for various commands.

[0075] In some optional implementations of this embodiment, the control module 305 is further configured to: Obtain the audio playlist of the Bluetooth speaker in the target scene mode; Based on multiple preset frequency bands, the audio digital signal of the currently playing song in the audio playlist is decomposed to obtain the signal strength corresponding to each preset frequency band; The current display parameters of the lighting effect of the Bluetooth speaker in the target scene mode are obtained. The current display parameters are adjusted according to the signal strength corresponding to each preset frequency band to obtain the target display parameters. The lighting effect of the Bluetooth speaker is then adjusted according to the target display parameters.

[0076] The Bluetooth speaker control device provided in this application obtains the signal strength of each frequency band by decomposing the audio signal, thereby adjusting the brightness, color and other related parameters of the light, so that the light effect changes synchronously with the audio content, enriches the presentation of scene modes, improves the audio-visual coordination effect of the Bluetooth speaker, and brings users a richer user experience.

[0077] In some optional implementations of this embodiment, the control module 305 is further configured to: Obtain smoke concentration data of the environment where the Bluetooth speaker is located; When the smoke concentration data is greater than a preset concentration threshold, a mode switching command for the Bluetooth speaker is generated; According to the mode switching command, the target scene mode is switched to the preset alarm mode.

[0078] The Bluetooth speaker control device provided in this application monitors the ambient smoke concentration in real time and compares it with a preset threshold. When the concentration exceeds the standard, it automatically switches to a high-priority alarm mode, which can promptly detect abnormal environmental conditions, provide users with safety warnings, expand the functionality of Bluetooth speakers, and enhance safety during home use.

[0079] In some optional implementations of this embodiment, the control module 305 is further configured to: When the current time is equal to the event execution time, determine the current scene mode of the Bluetooth speaker, obtain the first priority corresponding to the current scene mode, and the second priority corresponding to the target scene mode; If the first priority is greater than the second priority, then the Bluetooth speaker is controlled to maintain the playback mode corresponding to the current scene mode; If the first priority is less than or equal to the second priority, then the current environment mode is switched to the target scene mode.

[0080] The Bluetooth speaker control device provided in this application sets hierarchical priorities for different scene modes and determines whether to switch modes based on the priority comparison results. This can prioritize the operation of safety and rest modes, prevent important scenes from being interrupted by ordinary entertainment modes, make mode switching more in line with actual usage needs, and improve the rationality and smoothness of speaker use.

[0081] In some optional implementations of this embodiment, the control module 305 is further configured to: The brightness of the Bluetooth speaker's light and the alarm clock audio of the wake-up mode are obtained. Based on the event execution time, an early wake-up period is determined, and during the early wake-up period, the brightness of the Bluetooth speaker's light is controlled to be increased to a preset first brightness value; When the current time equals the event execution time, the brightness of the Bluetooth speaker's light is increased to a preset second brightness value, and the alarm clock audio is activated. The second brightness value is greater than the first brightness value.

[0082] The Bluetooth speaker control device provided in this application gradually increases the brightness of the light in advance, and then wakes up the user with a brighter light and alarm clock audio. This simulates the wake-up method of natural morning light changes, which can reduce the discomfort caused by sudden sounds, make the morning wake-up process gentler, and improve the user's comfort experience when using the wake-up mode.

[0083] To address the aforementioned technical problems, embodiments of this application also provide a computer device. Please refer to [link / reference needed]. Figure 4 , Figure 4 This is a basic structural block diagram of the computer device in this embodiment.

[0084] The computer device 4 includes a memory 41, a processor 42, and a network interface 43 that are interconnected via a system bus. It should be noted that only the computer device 4 with components 41, 42, and 43 is shown in the figure; however, it should be understood that it is not required to implement all the shown components, and more or fewer components can be implemented alternatively. Those skilled in the art will understand that the computer device described here is a device capable of automatically performing numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes, but is not limited to, microprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital signal processors (DSPs), embedded devices, etc.

[0085] The computer device can be a desktop computer, laptop, handheld computer, or cloud server, etc. The computer device can interact with the user via a keyboard, mouse, remote control, touchpad, or voice control.

[0086] The memory 41 includes at least one type of readable storage medium, including flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 41 may be an internal storage unit of the computer device 4, such as the hard disk or memory of the computer device 4. In other embodiments, the memory 41 may also be an external storage device of the computer device 4, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the computer device 4. Of course, the memory 41 may also include both the internal storage unit and its external storage device of the computer device 4. In this embodiment, the memory 41 is typically used to store the operating system and various application software installed on the computer device 4, such as computer-readable instructions for Bluetooth speaker control methods. In addition, the memory 41 can also be used to temporarily store various types of data that have been output or will be output.

[0087] In some embodiments, the processor 42 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip. The processor 42 is typically used to control the overall operation of the computer device 4. In this embodiment, the processor 42 is used to execute computer-readable instructions stored in the memory 41 or to process data, for example, to execute computer-readable instructions for the Bluetooth speaker control method.

[0088] The network interface 43 may include a wireless network interface or a wired network interface, which is typically used to establish communication connections between the computer device 4 and other electronic devices.

[0089] The computer device provided in this application acquires and analyzes user needs and emotional states through voice interaction, making the communication between the speaker and the user more closely resemble daily usage. This allows for the clear identification of the user's required actions and the specific timing of those actions, ensuring the speaker's operation aligns with the user's actual needs. Simultaneously, it can match the user with appropriate scene operation modes, ensuring the speaker's working state matches the requirements of different usage scenarios. Furthermore, it can provide users with interactive content tailored to their emotions, making the speaker's interactive experience more human-centered. Ultimately, it can respond promptly to user interaction needs and automatically switch to the corresponding scene operation at specified times, enhancing the speaker's adaptability in different scenarios.

[0090] This application also provides another embodiment, namely, providing a computer-readable storage medium storing computer-readable instructions that can be executed by at least one processor to cause the at least one processor to perform the steps of the Bluetooth speaker control method described above.

[0091] The computer-readable storage medium provided in this application acquires and analyzes user needs and emotional states through voice interaction, making the communication between the speaker and the user more closely resemble daily usage. This allows for the clear identification of the user's required actions and the specific timing of those actions, ensuring the speaker's operation aligns with the user's actual needs. Simultaneously, it can match the user with appropriate scene operation modes, ensuring the speaker's working state matches the requirements of different usage scenarios. Furthermore, it can provide users with interactive content tailored to their emotions, making the speaker's interactive experience more human-centered. Ultimately, it can respond promptly to user interaction needs and automatically switch to the corresponding scene operation at specified times, enhancing the speaker's adaptability in different scenarios.

[0092] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0093] Obviously, the embodiments described above are only some embodiments of this application, not all embodiments. The accompanying drawings show preferred embodiments of this application, but do not limit the patent scope of this application. This application can be implemented in many different forms; rather, these embodiments are provided to provide a more thorough and comprehensive understanding of the disclosure of this application. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing specific embodiments, or make equivalent substitutions for some of the technical features. Any equivalent structures made using the content of this application's specification and drawings, directly or indirectly applied to other related technical fields, are similarly within the scope of patent protection of this application.

Claims

1. A Bluetooth speaker control method, characterized in that, Includes the following steps: Collect user voice commands to the Bluetooth speaker, input the voice commands into a preset voice parsing model, and output the user's emotion tag and command intent based on the voice parsing model; Based on the instruction intent, determine the event to be executed and the execution time of the event for the Bluetooth speaker; Obtain the mapping relationship between events and preset scene modes, and determine the target scene mode corresponding to the event to be executed based on the mapping relationship; Based on the emotion tags, the Bluetooth speaker generates interactive statements for the user. The system responds to the voice command based on the interactive statement and obtains the current time of the Bluetooth speaker. When the current time is equal to the event execution time, the system controls the playback state of the Bluetooth speaker according to the target scene mode.

2. The Bluetooth speaker control method according to claim 1, characterized in that, The speech parsing model includes a feature extraction layer, a fusion layer, an emotion classification layer, and an intent classification layer. Obtaining the user's emotion label and instruction intent based on the output of the speech parsing model includes: The feature extraction layer extracts a speech feature vector from the speech command, converts the speech command into command text, and extracts a text semantic feature vector from the command text. The fusion layer fuses the speech feature vector and the text semantic feature vector to obtain fused features. Through the emotion classification layer, based on the fusion features, the probabilities of multiple preset emotion tags are determined, and based on the probabilities of the multiple preset emotion tags, the user's emotion tag is determined. Through the intent classification layer, the probabilities of multiple preset intents are determined based on the fusion features, and the user's instruction intent is determined based on the probabilities of the multiple preset intents.

3. The Bluetooth speaker control method according to claim 1, characterized in that, The step of determining the event to be executed and the execution time of the event of the Bluetooth speaker according to the instruction intent includes: Match the event to be executed corresponding to the instruction intent in the preset event types, and determine whether the instruction intent contains time information; If the instruction intent contains the time information, then the time information is converted to obtain the event execution time; If the instruction intent does not include the time information, then the current time of the Bluetooth speaker is determined as the event execution time.

4. The Bluetooth speaker control method according to claim 1, characterized in that, After controlling the playback state of the Bluetooth speaker according to the target scene mode when the current time equals the event execution time, the method further includes: Obtain the audio playlist of the Bluetooth speaker in the target scene mode; Based on multiple preset frequency bands, the audio digital signal of the currently playing song in the audio playlist is decomposed to obtain the signal strength corresponding to each preset frequency band; The current display parameters of the lighting effect of the Bluetooth speaker in the target scene mode are obtained. The current display parameters are adjusted according to the signal strength corresponding to each preset frequency band to obtain the target display parameters. The lighting effect of the Bluetooth speaker is then adjusted according to the target display parameters.

5. The Bluetooth speaker control method according to claim 1, characterized in that, After controlling the playback state of the Bluetooth speaker according to the target scene mode when the current time equals the event execution time, the method further includes: Obtain smoke concentration data of the environment where the Bluetooth speaker is located; When the smoke concentration data is greater than a preset concentration threshold, a mode switching command for the Bluetooth speaker is generated; According to the mode switching command, the target scene mode is switched to the preset alarm mode.

6. The Bluetooth speaker control method according to claim 1, characterized in that, When the current time equals the event execution time, controlling the playback state of the Bluetooth speaker according to the target scene mode includes: When the current time is equal to the event execution time, determine the current scene mode of the Bluetooth speaker, obtain the first priority corresponding to the current scene mode, and the second priority corresponding to the target scene mode; If the first priority is greater than the second priority, then the Bluetooth speaker is controlled to maintain the playback mode corresponding to the current scene mode; If the first priority is less than or equal to the second priority, then the current environment mode is switched to the target scene mode.

7. The Bluetooth speaker control method according to any one of claims 1 to 6, characterized in that, The target scene mode is a wake-up mode. When the current time equals the event execution time, the playback state of the Bluetooth speaker is controlled according to the target scene mode, including: The brightness of the Bluetooth speaker's light and the alarm clock audio of the wake-up mode are obtained. Based on the event execution time, an early wake-up period is determined, and during the early wake-up period, the brightness of the Bluetooth speaker's light is controlled to be increased to a preset first brightness value; When the current time equals the event execution time, the brightness of the Bluetooth speaker's light is increased to a preset second brightness value, and the alarm clock audio is activated. The second brightness value is greater than the first brightness value.

8. A Bluetooth speaker control device, characterized in that, include: The parsing module is used to collect the user's voice commands to the Bluetooth speaker, input the voice commands into a preset voice parsing model, and output the user's emotion tags and command intentions based on the voice parsing model. The determination module is used to determine the event to be executed and the execution time of the event of the Bluetooth speaker according to the instruction intent; The acquisition module is used to acquire the mapping relationship between events and preset scene modes, and determine the target scene mode corresponding to the event to be executed based on the mapping relationship; The generation module is used to generate interactive statements from the Bluetooth speaker to the user based on the emotion tags. The control module is used to respond to the voice command according to the interactive statement, and to obtain the current time of the Bluetooth speaker. When the current time is equal to the event execution time, the module controls the playback state of the Bluetooth speaker according to the target scene mode.

9. A computer device, characterized in that, The device includes a memory and a processor, wherein the memory stores computer-readable instructions, and the processor executes the computer-readable instructions to implement the steps of the Bluetooth speaker control method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-readable instructions, which, when executed by a processor, implement the steps of the Bluetooth speaker control method as described in any one of claims 1 to 7.