Search

CN-121983042-A - Earphone control method based on charging bin, charging bin and storage medium

CN121983042ACN 121983042 ACN121983042 ACN 121983042ACN-121983042-A

Abstract

The application discloses an earphone control method based on a charging bin, the charging bin and a storage medium, which relate to the technical field of wireless earphones and are applied to the charging bin, wherein the charging bin is provided with a network communication module; the method comprises the steps of uploading an audio data stream to a server based on a network communication module, receiving a semantic analysis instruction fed back by the server, wherein the server generates the semantic analysis instruction after analyzing the audio data stream, analyzing the semantic analysis instruction into a control instruction, and feeding the control instruction back to an earphone unit so that the earphone unit executes a control action corresponding to the control instruction. Based on the method, the mobile phone can still normally call the cloud voice assistant function when the mobile phone is not in the Bluetooth coverage range, and convenience and reliability of interaction of the mobile phone are improved.

Inventors

  • MA LAN
  • ZHANG HAIHONG

Assignees

  • 歌尔科技有限公司

Dates

Publication Date
20260505
Application Date
20260105

Claims (10)

  1. 1. The utility model provides a headset control method based on storehouse charges, characterized in that is applied to the storehouse that charges, the storehouse that charges is provided with network communication module, headset control method based on storehouse charges includes: responding to a voice input instruction of an earphone unit, and acquiring an audio data stream sent by the earphone unit; uploading the audio data stream to a server based on the network communication module, and receiving a semantic analysis instruction fed back by the server, wherein the server analyzes the audio data stream and then generates the semantic analysis instruction; and analyzing the semantic analysis instruction into a control instruction, and feeding back the control instruction to the earphone unit so that the earphone unit executes a control action corresponding to the control instruction.
  2. 2. The method for controlling a headset based on a charging bin according to claim 1, wherein after the steps of parsing the semantic parsing instruction into a control instruction and feeding back the control instruction to the headset unit to cause the headset unit to execute a control action corresponding to the control instruction, the method for controlling a headset based on a charging bin further comprises: acquiring a target data stream fed back by the earphone unit after executing the control action; Uploading the target data stream to the server based on the network communication module, and receiving a target audio stream fed back by the server; And feeding back the target audio stream to the earphone unit so that the earphone unit plays the target audio stream.
  3. 3. The headphone control method based on a charging bin according to claim 2, wherein before the step of acquiring the target data stream fed back after the headphone unit performs the control action, the headphone control method based on a charging bin further comprises: determining whether the control instruction contains a data return instruction or not; If yes, executing the step of acquiring the target data stream fed back by the earphone unit after executing the control action.
  4. 4. The headphone control method based on a charging bin according to claim 1, wherein before the step of acquiring the audio data stream transmitted by the headphone unit in response to a voice input instruction of the headphone unit, the headphone control method based on a charging bin further comprises: if the discharging process of the earphone unit is triggered, entering a monitoring mode to monitor a broadcast signal of a preset identifier associated with the earphone unit; and responding to the broadcast signal sent by the earphone unit and used for establishing communication connection, and establishing communication connection with the earphone unit based on a preset channel.
  5. 5. The headphone control method based on a charging bin according to claim 1, wherein after the step of acquiring the audio data stream transmitted by the headphone unit in response to a voice input instruction of the headphone unit, the headphone control method based on a charging bin further comprises: if the network communication module is in a network interruption state, identifying the audio data stream based on a local model to obtain an offline identification result; And if the offline identification result comprises a preset offline keyword, feeding back an offline control instruction corresponding to the preset offline keyword to the earphone unit.
  6. 6. The method for controlling a headset based on a charging bin according to claim 5, wherein, if the network communication module is in a network interrupt state, the method for controlling a headset based on a charging bin further comprises, after the step of obtaining an offline identification result by identifying the audio data stream based on a local model: if the offline identification result is a non-real-time processing result, locally caching the audio data stream and feeding back a prompting instruction of network disconnection to the earphone unit; and detecting that the network communication module is in a connection state, and executing the processing action corresponding to the offline identification result.
  7. 7. The headphone control method based on a charging bin according to claim 1, wherein after the step of acquiring the audio data stream transmitted by the headphone unit in response to a voice input instruction of the headphone unit, the headphone control method based on a charging bin further comprises: if the earphone unit is detected to be connected to the client device and the electric quantity of the charging bin is lower than the preset electric quantity, the audio data stream is sent to the client device based on the network communication module, so that the client device executes the analysis action of the audio data stream.
  8. 8. The method for controlling a headset based on a charging bin according to claim 1, wherein the method for controlling a headset based on a charging bin further comprises, after the step of generating the semantic parsing instruction after the server parses the audio data stream, uploading the audio data stream to a server based on the network communication module, and receiving the semantic parsing instruction fed back by the server: acquiring motion state information and/or environment information of the earphone unit; Generating a fusion control instruction according to the semantic analysis instruction and the motion state information and/or the environment information; And feeding back the fusion control instruction to the earphone unit so that the earphone unit executes the fusion control action corresponding to the fusion control instruction.
  9. 9. A charging cartridge comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program being configured to implement the steps of the charging cartridge based headset control method of any one of claims 1 to 8.
  10. 10. A storage medium, characterized in that the storage medium is a computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, realizes the steps of the charging bin based headset control method according to any one of claims 1 to 8.

Description

Earphone control method based on charging bin, charging bin and storage medium Technical Field The application relates to the technical field of wireless headphones, in particular to a headphone control method based on a charging bin, the charging bin and a storage medium. Background When realizing high in the clouds voice assistant function based on real wireless stereophonic headphones, generally after the earphone gathers the pronunciation, send the audio data stream to the smart mobile phone rather than pairing, the mobile phone is with audio data uploading to high in the clouds server. After completing voice recognition and semantic understanding, the cloud server returns the instruction to the smart phone, and the smart phone forwards the instruction to the earphone for execution. However, in a use scenario where the mobile phone is not carried with the user, the mobile phone leaves the bluetooth connection range of the headset, so that the cloud voice assistant function of the headset is disabled. The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present application and is not intended to represent an admission that the foregoing is prior art. Disclosure of Invention The application mainly aims to provide a headset control method based on a charging bin, the charging bin and a storage medium, and aims to solve the technical problem that a cloud voice assistant of a headset fails due to the fact that a mobile phone leaves a Bluetooth connection range of the headset. In order to achieve the above object, the present application provides a headset control method based on a charging bin, which is applied to the charging bin, wherein the charging bin is provided with a network communication module, and the method comprises: responding to a voice input instruction of an earphone unit, and acquiring an audio data stream sent by the earphone unit; uploading the audio data stream to a server based on the network communication module, and receiving a semantic analysis instruction fed back by the server, wherein the server analyzes the audio data stream and then generates the semantic analysis instruction; and analyzing the semantic analysis instruction into a control instruction, and feeding back the control instruction to the earphone unit so that the earphone unit executes a control action corresponding to the control instruction. In an embodiment, after the step of parsing the semantic parsing instruction into a control instruction and feeding back the control instruction to the earphone unit to enable the earphone unit to execute the control action corresponding to the control instruction, the earphone control method based on the charging bin further includes: acquiring a target data stream fed back by the earphone unit after executing the control action; Uploading the target data stream to the server based on the network communication module, and receiving a target audio stream fed back by the server; And feeding back the target audio stream to the earphone unit so that the earphone unit plays the target audio stream. In an embodiment, before the step of obtaining the target data stream fed back by the earphone unit after performing the control action, the earphone control method based on the charging bin further includes: determining whether the control instruction contains a data return instruction or not; If yes, executing the step of acquiring the target data stream fed back by the earphone unit after executing the control action. In an embodiment, before the step of obtaining the audio data stream sent by the earphone unit in response to the voice input instruction of the earphone unit, the earphone control method based on the charging bin further includes: if the discharging process of the earphone unit is triggered, entering a monitoring mode to monitor a broadcast signal of a preset identifier associated with the earphone unit; and responding to the broadcast signal sent by the earphone unit and used for establishing communication connection, and establishing communication connection with the earphone unit based on a preset channel. In an embodiment, after the step of obtaining the audio data stream sent by the earphone unit in response to the voice input instruction of the earphone unit, the earphone control method based on the charging bin further includes: if the network communication module is in a network interruption state, identifying the audio data stream based on a local model to obtain an offline identification result; And if the offline identification result comprises a preset offline keyword, feeding back an offline control instruction corresponding to the preset offline keyword to the earphone unit. In an embodiment, after the step of identifying the audio data stream based on the local model and obtaining the offline identification result if the network communication module is in the network interruption state, the headse