Headphone battery prompt method, device, electronic device and storage medium

Through voice request recognition and processing, the headset power prompt voice is generated and played, which solves the problem that Bluetooth headsets cannot effectively prompt power information in different scenarios, and realizes convenient headset power query.

CN111883120BActive Publication Date: 2024-10-15BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010682932.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-15
Publication Date
2024-10-15
Estimated Expiration
2040-07-15

AI Technical Summary

Technical Problem

Existing Bluetooth headsets cannot effectively prompt power information in different scenarios, and cannot meet users' needs for richer power information.

Method used

Obtain headset power information through voice requests, use the client and cloud server to identify voice intentions, generate and play headset power prompts, and ensure that users can quickly and easily query headset power in different scenarios.

Benefits of technology

It realizes obtaining headphone power information through voice inquiry, enriches the way of querying headphone power, and improves the convenience and accuracy of query.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111883120B_ABST
    Figure CN111883120B_ABST
Patent Text Reader

Abstract

The present application discloses a headphone power prompt method, device, electronic device and storage medium, and relates to the fields of natural language processing, voice interaction and voice technology. The specific implementation scheme is: obtaining the original voice request initiated by the user; if the original voice request is a headphone power query voice request, obtaining the headphone power prompt voice according to the headphone power query voice request, wherein the terminal to which the client belongs is connected to the headphone; and transmitting the headphone power prompt voice to the headphone for playback. The embodiment of the present application realizes obtaining the power information of the headphone through voice inquiry, enriches the headphone power query method, and the query method is convenient.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to computer technology, in particular to natural language processing and speech technology, and more particularly to a headphone battery prompt method, device, electronic device and storage medium. Background Art

[0002] Bluetooth headsets are gradually being promoted and adopted due to their convenience. For Bluetooth headsets, a performance that users generally pay attention to is battery life, that is, the power consumption of Bluetooth headsets. When users use Bluetooth headsets, they often use them outdoors, so they will pay attention to the battery life of the headsets and how long they can be used continuously.

[0003] In the prior art, the battery level of a Bluetooth headset can be prompted on a terminal to which the headset is connected. However, this prompting solution is single and cannot meet the user's needs for obtaining more abundant battery information in different scenarios. Summary of the invention

[0004] The embodiments of the present application provide a headphone power prompt method, device, electronic device and storage medium to achieve the effect of conveniently and quickly querying the headphone power in different scenarios.

[0005] According to a first aspect, a method for prompting a headphone battery level is provided, which is executed by a client and includes:

[0006] Get the original voice request initiated by the user;

[0007] If the original voice request is a headset power query voice request, obtaining a headset power prompt voice according to the headset power query voice request, wherein the terminal to which the client belongs is connected to the headset;

[0008] Transmit the headphone battery reminder voice to the headphones for playback.

[0009] According to a second aspect, a method for prompting the battery level of an earphone is provided, which is executed by a cloud server and includes:

[0010] Get the original voice request initiated by the client;

[0011] If the original voice request is a headphone power query voice request, obtaining a headphone power prompt voice according to the headphone power query voice request; wherein the terminal to which the client belongs is connected to the headphone;

[0012] The headset power reminder voice is transmitted to the headset through the client for playback.

[0013] According to a third aspect, a headphone battery prompt device is provided, comprising:

[0014] A first request acquisition module, used to acquire an original voice request initiated by a user;

[0015] A first prompt tone acquisition module is used to acquire the headphone power prompt tone according to the headphone power query tone request if the original voice request is a headphone power query tone request, wherein the terminal to which the client belongs is connected to the headphone;

[0016] The first transmission module is used to transmit the earphone power prompt voice to the earphone for playback.

[0017] According to a fourth aspect, a headphone battery prompt device is provided, comprising:

[0018] A second request acquisition module, used to acquire an original voice request initiated by the client;

[0019] A second prompt tone acquisition module is used for acquiring the headphone power prompt tone according to the headphone power query tone request if the original voice request is a headphone power query tone request; wherein the terminal to which the client belongs is connected to the headphone;

[0020] The second transmission module is used to transmit the earphone power prompt voice to the earphone through the client for playback.

[0021] According to a fifth aspect, there is provided an electronic device, comprising:

[0022] at least one processor; and

[0023] a memory communicatively connected to at least one processor; wherein,

[0024] The memory stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor so that the at least one processor can execute the earphone battery prompt method of any embodiment of the present application.

[0025] According to a sixth aspect, a non-transitory computer-readable storage medium storing computer instructions is provided, where the computer instructions are used to enable a computer to execute the headphone battery prompt method of any embodiment of the present application.

[0026] According to the technology of the present application, it is possible to obtain the power information of the earphone through voice inquiry, which enriches the method of querying the power of the earphone and is convenient.

[0027] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present application.

[0029] Figure 1 is a flowchart of the headphone battery prompt method according to the first embodiment of the present application;

[0030] Figure 2 is a flowchart of a headphone battery prompt method according to a second embodiment of the present application;

[0031] Figure 3 is a flow chart of a headphone battery prompt method according to a third embodiment of the present application;

[0032] Figure 4 is a structural schematic diagram of an earphone power prompt device according to a fourth embodiment of the present application;

[0033] Figure 5 is a structural schematic diagram of an earphone power prompt device according to a fifth embodiment of the present application;

[0034] Figure 6 It is a block diagram of an electronic device used to implement the headphone battery prompt method of an embodiment of the present application. DETAILED DESCRIPTION

[0035] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0036] Figure 1 This is a flowchart of a method for headphone battery prompt according to the first embodiment of the present application. This embodiment is applicable to the case of querying headphone battery information. The method can be executed by a headphone battery prompt device, which is implemented in software and / or hardware, and is preferably configured in a client of an electronic device (such as a mobile terminal). Figure 1 , the earphone battery level reminder method is as follows:

[0037] S101: Acquire an original voice request initiated by a user.

[0038] In an embodiment of the present application, the terminal to which the client belongs is connected to a headset, wherein the headset may optionally be a TWS (True Wireless Stereo) Bluetooth headset, and the terminal and the headset are pre-connected via Bluetooth, thereby ensuring communication between the headset and the client on the terminal.

[0039] Since both the terminal and the headset are equipped with microphones, when obtaining the original voice request initiated by the user, the user voice collected by the microphone of the terminal to which the client belongs can be obtained as the original voice request; or the user voice collected by the microphone of the headset can be received as the original voice request. This enriches the way to obtain the original voice request initiated by the user.

[0040] It should be noted here that since headphones are usually only used to play audio data, in order to collect user voice through the microphone on the headphones, it is necessary to wake up the headphones first, such as sending a wake-up indication to the headphones, where the wake-up indication can optionally be a click operation of the user on the headphones (double-click or single-click, etc.) or a preset wake-up voice issued by the user, so that the headphones respond to the wake-up indication to collect the user voice through the microphone.

[0041] While obtaining the original voice request initiated by the user, the client can also obtain the headphone power data reported by one or both headphones, thereby ensuring that the corresponding power prompt sound is generated based on the power data reported by the headphones to remind the user of the current power level of the headphones. Optionally, since the power data of the headphones is recorded in the internal chip of the headphones, the client can obtain the headphone power information recorded on the chip based on the Bluetooth protocol. Specifically, the headphones and the client can interact based on the DMA (DUEROS MOBILE ACCESSORIES) protocol, which is a protocol for Bluetooth devices to interact with clients.

[0042] S102: If the original voice request is a headphone power inquiry voice request, obtain a headphone power prompt voice according to the headphone power inquiry voice request.

[0043] Since the original voice request collected by the terminal microphone or headphone microphone is relatively complex, the client needs to obtain the true intention corresponding to the original voice request. If the true intention corresponding to the original voice request is to query the headphone power, the original voice request is determined to be a headphone power query voice request, and then the headphone power prompt voice is obtained based on the headphone power query voice request.

[0044] In an optional implementation, if it is determined that the original voice request is an earphone power query voice request, obtaining an earphone power prompt voice according to the earphone power query voice request includes S1-S2:

[0045] S1. Transmit the original voice request and earphone power data to the cloud server to request the cloud server to recognize and process the original voice request.

[0046] S2. If the original voice request is a headphone power query voice request, receive the headphone power prompt voice returned by the cloud server according to the headphone power data.

[0047] Among them, the cloud server performs recognition processing on the original voice request, including at least voice recognition and intent recognition of the original voice request, and then determines whether the original voice request is intended to query the headphone power according to the intent recognition result. If so, the cloud server returns the corresponding headphone power prompt voice to the client according to the headphone power data, wherein the content of the headphone power prompt voice includes the headphone power and charging prompt. Exemplarily, the headphone power prompt voice is "The left ear has 20% power left, go and charge it as soon as possible", which can not only meet the user's need to query the headphone power, but also provide charging prompts to improve the user's query experience. It should be noted that by requesting the cloud server to recognize and process the original voice request and receiving the corresponding headphone power prompt voice returned by the cloud server, the accuracy of voice recognition and the efficiency of obtaining the headphone power prompt voice can be improved.

[0048] S103: Transmit the earphone power prompt voice to the earphone for playback.

[0049] Optionally, the headphone power prompt voice is transmitted to one or both headphones that report the headphone power data for playback. For example, if only the left earphone uploads the headphone power data, the headphone power prompt voice is transmitted to the left earphone for playback. This achieves the purpose of voice broadcasting the current power through the earphone, so that the user can quickly and easily know the headphone power.

[0050] In the embodiment of the present application, after receiving the user's voice request and the headphone power data, the client sends them to the cloud server. When the cloud server determines that the user's voice request is a headphone power query voice request, the voice prompt of the power is returned to the client, and then the client sends the power prompt voice to the headphone for broadcast. In this way, the headphone power information can be obtained through voice inquiry, which enriches the headphone power query method and is convenient.

[0051] Furthermore, if the headphone power data reported by the headphone is not received, the default power answer voice is obtained locally or from the cloud server, and transmitted to the headphone for playback. The default power answer voice can be "Power information has not been obtained yet, please confirm that the headphone is connected and try again." Therefore, when the headphone power data is not received, the default power answer voice can be broadcast to ensure the interactive experience of the user when voice querying the headphone power.

[0052] Figure 2 1 is a flow chart of a method for indicating the power level of an earphone according to the second embodiment of the present application. This embodiment is applicable to the case of querying the power level information of an earphone. The method can be executed by an earphone power indication device, which is implemented in software and / or hardware, and is preferably configured in a cloud server. Figure 2As shown, the method specifically includes the following:

[0053] S201. Obtain an original voice request initiated by a client.

[0054] Among them, the original voice request is received by the client through the terminal microphone or the headphone microphone. The cloud server can obtain the original voice request initiated by the client through the cloud service interface. While obtaining the original voice request initiated by the client, the cloud server can obtain the headphone power data transmitted by the client through the cloud service interface, where the headphone power data can be the power data reported by a single headphone or the power data reported by two headsphones. The purpose of reporting the headphone power data to the cloud server is to ensure that the cloud server can generate the corresponding power prompt voice according to the power data.

[0055] S202: If the original voice request is a headphone power inquiry voice request, obtain a headphone power prompt voice according to the headphone power inquiry voice request; wherein the terminal to which the client belongs is connected to the headphone.

[0056] In an optional implementation, if the original voice request is a headphone power query voice request, obtaining a headphone power prompt voice according to the headphone power query voice request includes S2021-S2025:

[0057] S2021. After receiving the original voice request through the cloud service interface, the original voice request is transmitted to the voice recognition server for voice recognition, the request text after voice recognition is obtained, and the request text and earphone power data are transmitted to the general search engine for processing.

[0058] In the embodiment of the present application, before the request text and the headphone power data are transmitted to the general search engine, the request text and the headphone power data are rewritten into data in a standard format according to a preset data format template.

[0059] S2022. Through the general search engine, the request text is transmitted to the intent recognition server for intent recognition, the headphone power query intention is obtained, and the headphone power query intention and the headphone power data are transmitted to the dialogue service capability unit for processing.

[0060] To determine whether the original voice request is a headphone power query voice request, it is necessary to identify the true intent of the original voice request. Optionally, it is only necessary to transmit the request template corresponding to the original voice request to the intent recognition server for intent recognition, and feed back the intent recognition result to the general search engine. If the intent recognition result is the headphone power query intent, the general search engine transmits the headphone power query intent and the headphone power data to the dialogue service capability unit for processing, where the dialogue service capability unit can provide power information answer service.

[0061] S2023. Generate a headphone power prompt text based on the headphone power data and a preset power prompt template through the dialogue service capability unit, and return it to the cloud service interface.

[0062] In an optional embodiment, generating a headphone power prompt text according to the headphone power data and a preset power prompt template includes: determining the content of the charging prompt according to the relationship between the headphone power data and a set charging threshold; and generating the headphone power prompt text based on the preset power prompt template, the headphone power data and the charging prompt.

[0063] The preset power prompt template can be differentiated according to the charging threshold. When the earphone power is greater than the charging threshold, the preset power prompt template includes:

[0064] (1) "The power level of the left earphone is X%, and the power level of the right earphone is Y%" (this template is used when both earphones report power data);

[0065] (2) "The battery level of the left earphone is X%" (this template is used when only the left earphone reports battery level data);

[0066] (3) "The battery level of the right earphone is Y%"; (This template is used when only the right earphone reports battery level data).

[0067] When the earphone battery level is lower than the charging threshold, the preset battery level prompt templates include:

[0068] (1) "The power level of the left earphone is X%, and the power level of the right earphone is Y%. Please charge it as soon as possible" (this template is used when both earphones report power data);

[0069] (2) "The battery level of the left earphone is X%, please charge it as soon as possible" (this template is used when only the left earphone reports battery level data);

[0070] (3) "The battery level of the right earphone is Y%, please charge it as soon as possible"; (This template is used when only the right earphone reports battery level data).

[0071] The above X and Y represent the power data reported by the headset.

[0072] Exemplarily, the power data is the power reported by the two earphones, the left earphone has 20% power, the right earphone has 20% power, and the charging threshold is 30% of the total power of the earphones. That is, the actual power of the earphones is less than the charging threshold, and a charging reminder is required. The final earphone power reminder text is "The left earphone has 20% power, the right earphone has 20% power, please charge as soon as possible."

[0073] After obtaining the earphone battery reminder text, it is returned to the cloud service interface.

[0074] S2024. Transmit the earphone battery reminder text to the speech synthesis server for processing through the cloud service interface.

[0075] S2025. Process the earphone battery reminder text through the speech synthesis server to generate the earphone battery reminder voice.

[0076] Through the above S2021-S2025, the user's intention to query the headphone power level can be quickly identified, and a headphone power prompt voice can be generated based on the power data reported by the headphone, thereby improving the efficiency of headphone power query.

[0077] S203: Transmit the earphone battery reminder voice to the earphone through the client for playback.

[0078] In the embodiment of the present application, after receiving the original voice request sent by the client, the cloud server performs voice recognition and intent recognition on the original voice request, and then generates the corresponding headphone power prompt text by combining the headphone power data and the preset power prompt template, and then converts the headphone power prompt text into the corresponding voice, and transmits it to the headphone for playback. In this way, the purpose of the headphone querying the headphone power through voice is achieved, and the query process is simple and convenient.

[0079] Figure 3 is an overall flow chart of the headphone power prompt method according to the third embodiment of the present application, such as Figure 3 As shown, the device side includes earphones and a client on a terminal connected to the earphones (i.e., the APP in the figure), and the earphones and the client transmit data via Bluetooth. On the right is a cloud server, which is responsible for processing voice requests uploaded by the client.

[0080] The overall process of the headset power prompt is as follows:

[0081] After waking up the headset, the user uses the headset's microphone to record the user's voice request (i.e., the qurey audio in the figure), and transmits the voice request to the client via Bluetooth; at the same time, the headset also transmits the terminal information (such as the headset power level) to the client. Specifically, the headset can form a data packet with the audio data of the voice request, power data, and other headset status data, and report it to the client. The client sends the voice request and power information to the cloud server. Specifically, on the cloud server side, the voice request and headset power information are received through the DCS (dueros-conversational-service, conversation service) interface, where the DCS interface is a cloud service interface. The DCS interface sends the voice request to the voice recognition server to convert the voice request into a request text. The DCS interface sends the headphone power information and the request text to the UI for data format modification, and then sends the power information and the request text in the standard format to the Universal Searcher (US). The US sends the request text to the intent recognition server (Domain Analyse, DA), and DA feeds back the intent recognition result to the US. If it is confirmed according to the intent recognition result that the user wants to query the headphone power, the US transmits the headphone power query intention and the headphone power data to the dialogue service capability unit (BOT) for processing. The dialogue service capability unit generates a headphone power prompt text based on the headphone power data and the preset power prompt template, and returns it to the DCS interface. The DCS interface sends the headphone power prompt text to the speech synthesis server to convert the headphone power prompt text into the corresponding headphone power prompt voice. Then the DCS interface returns the headphone power prompt voice to the client, so that the client transmits the headphone power prompt voice to the headphone via Bluetooth for playback. This completes the process of the user querying the headphone power by voice.

[0082] Figure 4 : is a schematic diagram of the structure of the headphone power prompt device according to the fourth embodiment of the present application. This embodiment is applicable to the case of querying the headphone power by voice. Figure 4 As shown, the device 400 specifically includes:

[0083] A first request acquisition module 401 is used to acquire an original voice request initiated by a user;

[0084] The first prompt tone acquisition module 402 is used to acquire the headphone power prompt tone according to the headphone power query tone request if the original voice request is a headphone power query tone request, wherein the terminal to which the client belongs is connected to the headphone;

[0085] The first transmission module 403 is used to transmit the earphone power prompt voice to the earphone for playback.

[0086] Based on the above embodiment, optionally, the first request acquisition module is further used for:

[0087] Get the headphone power data reported by one or both headphones.

[0088] Based on the above embodiment, optionally, the first prompt tone acquisition module includes:

[0089] The data transmission unit is used to transmit the original voice request and the earphone power data to the cloud server to request the cloud server to recognize and process the original voice request;

[0090] The prompt tone receiving unit is used to receive the earphone power prompt tone returned by the cloud server according to the earphone power data if the original voice request is an earphone power query voice request.

[0091] Based on the above embodiment, optionally, the first transmission module is specifically configured to:

[0092] The headphone power prompt voice is transmitted to the headphone or two headsphones that report the headphone power data for playback.

[0093] Based on the above embodiment, optionally, the content of the earphone power prompt voice includes earphone power and charging prompt.

[0094] Based on the above embodiment, optionally, the device further includes:

[0095] The second transmission module is used to obtain a default power answer voice locally or obtain a default power answer voice from a cloud server if the headphone power data reported by the headphone is not received, and transmit it to the headphone for playback.

[0096] Based on the above embodiment, optionally, the first request acquisition module is specifically used to:

[0097] Obtain the user voice collected by the microphone of the terminal to which the client belongs as the original voice request; or

[0098] The user voice collected by the microphone of the headset is received as the original voice request.

[0099] The headphone power prompt device 400 provided in the embodiment of the present application can execute the headphone power prompt method provided in any embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method. For the contents not described in detail in this embodiment, please refer to the description in any method embodiment of the present application.

[0100] Figure 5 1 is a schematic diagram of the structure of the headphone power prompt device according to the fifth embodiment of the present application. This embodiment is applicable to the case of querying the headphone power by voice. Figure 4As shown, the device is configured in a cloud server, specifically including

[0101] The second request acquisition module 501 is used to acquire the original voice request initiated by the client;

[0102] The second prompt tone acquisition module 502 is used to acquire the headphone power prompt tone according to the headphone power query tone request if the original voice request is a headphone power query tone request; wherein the terminal to which the client belongs is connected to the headphone;

[0103] The second transmission module 503 is used to transmit the earphone power prompt voice to the earphone through the client for playback.

[0104] Based on the above embodiment, optionally, the second request acquisition module is further used to:

[0105] Get the headphone battery data transmitted by the client.

[0106] Based on the above embodiment, optionally, the second prompt tone acquisition module includes:

[0107] A voice request receiving and transmitting unit is used to receive the original voice request through the cloud service interface, transmit it to the voice recognition server for voice recognition, obtain the request text after voice recognition, and transmit the request text and earphone power data to the general search engine for processing;

[0108] An intent acquisition unit is used to transmit the request text to the intent recognition server through a general search engine for intent recognition, obtain the headphone power query intent, and transmit the headphone power query intent and headphone power data to the dialogue service capability unit for processing;

[0109] A power prompt text generation unit, used to generate a headphone power prompt text according to the headphone power data and a preset power prompt template through the dialogue service capability unit, and return it to the cloud service interface;

[0110] A text transmission unit, used to transmit the headphone power prompt text to the speech synthesis server for processing through the cloud service interface;

[0111] The speech generation unit is used to generate the headphone power prompt voice by processing the headphone power prompt text through the speech synthesis server.

[0112] Based on the above embodiment, optionally, the power prompt text generating unit is specifically used for:

[0113] Determine the content of the charging prompt according to the relationship between the earphone power data and the set charging threshold;

[0114] Generates headphone power reminder text based on preset power reminder template, headphone power data and charging reminder.

[0115] The headphone power prompt device 500 provided in the embodiment of the present application can execute the headphone power prompt method provided in any embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method. For the contents not described in detail in this embodiment, please refer to the description in any method embodiment of the present application.

[0116] According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium.

[0117] like Figure 6 , is a block diagram of an electronic device according to the headphone battery prompt method of an embodiment of the present application. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.

[0118] like Figure 6 As shown, the electronic device includes: one or more processors 601, a memory 602, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In other embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 6 A processor 601 is taken as an example.

[0119] The memory 602 is a non-transitory computer-readable storage medium provided in the present application. The memory stores instructions executable by at least one processor to enable the at least one processor to execute the headphone power prompt method provided in the present application. The non-transitory computer-readable storage medium of the present application stores computer instructions, which are used to enable a computer to execute the headphone power prompt method provided in the present application.

[0120] The memory 602 is a non-transient computer-readable storage medium that can be used to store non-transient software programs, non-transient computer executable programs and modules, such as the program instructions / modules corresponding to the headphone power prompt method in the embodiment of the present application (for example, the attached Figure 4 The processor 601 executes various functional applications and data processing of the server by running the non-transient software programs, instructions and modules stored in the memory 602, that is, the earphone power prompt method in the above method embodiment is implemented.

[0121] The memory 602 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and applications required for at least one function; the data storage area may store data created according to the use of an electronic device that implements the headphone power prompt method of an embodiment of the present application, etc. In addition, the memory 602 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 602 may optionally include a memory remotely arranged relative to the processor 601, and these remote memories may be connected to the electronic device that implements the headphone power prompt method of an embodiment of the present application via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0122] The electronic device implementing the headphone power prompt method of the embodiment of the present application may also include: an input device 603 and an output device 604. The processor 601, the memory 602, the input device 603 and the output device 604 may be connected via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.

[0123] The input device 603 can receive input digital or character information, and generate key signal input related to user settings and function control of the electronic device implementing the headphone power prompt method of the embodiment of the present application, such as a touch screen, a keypad, a mouse, a trackpad, a touchpad, an indicator rod, one or more mouse buttons, a trackball, a joystick and other input devices. The output device 604 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display and a plasma display. In some embodiments, the display device may be a touch screen.

[0124] Various implementations of the systems and techniques described herein can be realized in digital electronic circuit systems, integrated circuit systems, dedicated ASICs (application specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0125] These computer programs (also referred to as programs, software, software applications, or code) include machine instructions for programmable processors and can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, device, and / or means (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.

[0126] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0127] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), the Internet, and a blockchain network.

[0128] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0129] According to the technical solution of the embodiment of the present application, it is possible to obtain the power information of the earphone through voice inquiry, which enriches the method of querying the power of the earphone and is convenient.

[0130] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution disclosed in this application can be achieved, and this document is not limited here.

[0131] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.

Claims

1. A method for indicating the battery level of an earphone, executed by a client, comprising: Obtaining an original voice request initiated by a user, and simultaneously obtaining earphone power data reported by one or two earphones, respectively; wherein the original voice request is a user voice collected by a microphone of the earphone; If the original voice request is a headphone power query voice request, obtaining a headphone power prompt voice according to the headphone power query voice request, wherein the terminal to which the client belongs is connected to the headphone; Transmitting the earphone power prompt voice to the earphone for playing; Wherein, if the original voice request is an earphone power query voice request, obtaining the earphone power prompt voice according to the earphone power query voice request includes: Transmitting the original voice request and the earphone power data to a cloud server to request the cloud server to recognize and process the original voice request; wherein the cloud server recognizes and processes the original voice request at least including voice recognition and intent recognition of the original voice request; If the original voice request is a headphone power query voice request, receiving the headphone power prompt voice returned by the cloud server according to the headphone power data; If the headphone power data reported by the headphone is not received, a default power answer voice is obtained locally or a default power answer voice is obtained from a cloud server and transmitted to the headphone for playback.

2. The method according to claim 1, wherein: Transmitting the earphone power prompt voice to the earphone for playing includes: The earphone power prompt voice is transmitted to the earphone or two earphones that report the earphone power data for playing.

3. The method according to claim 1, wherein: The content of the earphone power prompt voice includes earphone power and charging prompt.

4. The method according to claim 1, wherein: Obtaining the original voice request initiated by the user includes: The user voice collected by the microphone of the terminal to which the client belongs is obtained as the original voice request.

5. A method for indicating the battery level of an earphone, executed by a cloud server, comprising: Obtain an original voice request initiated by the client, and simultaneously obtain the headphone power data transmitted by the client; wherein the original voice request is the user voice collected by the microphone of the headphone sent to the client; If the original voice request is a headphone power query voice request, obtaining a headphone power prompt voice according to the headphone power query voice request; wherein the terminal to which the client belongs is connected to the headphone; Transmitting the earphone power prompt voice to the earphone through the client for playing; Wherein, if the original voice request is an earphone power query voice request, obtaining the earphone power prompt voice according to the earphone power query voice request includes: The original voice request is received through a cloud service interface, and transmitted to a voice recognition server for voice recognition, the request text after voice recognition is obtained, and the request text and the headphone power data are transmitted to a general search engine for processing; The request text is transmitted to the intent recognition server through the general search engine for intent recognition, the headset power query intention is obtained, and the headset power query intention and the headset power data are transmitted to the dialogue service capability unit for processing; Generate a headphone power prompt text according to the headphone power data and a preset power prompt template through the dialogue service capability unit, and return it to the cloud service interface; Transmitting the earphone power reminder text to the speech synthesis server for processing through the cloud service interface; The speech synthesis server processes the headphone power prompt text to generate a headphone power prompt voice; If the client does not receive the headphone power data reported by the headphone, it obtains the default power answer voice locally or obtains the default power answer voice from the cloud server, and transmits it to the headphone for playback.

6. The method according to claim 5, wherein: Generating a headphone power prompt text according to the headphone power data and a preset power prompt template includes: Determining the content of the charging prompt according to the relationship between the earphone power data and the set charging threshold; The headphone power prompt text is generated based on a preset power prompt template, the headphone power data and the charging prompt.

7. A headphone battery reminder device, configured on a client, comprising: A first request acquisition module is used to acquire an original voice request initiated by a user and simultaneously acquire earphone power data reported by one earphone or two earphones respectively; wherein the original voice request is a user voice collected by a microphone of the earphone; A first prompt tone acquisition module is used for acquiring a headphone power prompt tone according to the headphone power query tone request if the original voice request is a headphone power query tone request, wherein the terminal to which the client belongs is connected to the headphone; A first transmission module, used for transmitting the earphone power prompt voice to the earphone for playing; Among them, the first prompt tone acquisition module includes: A data transmission unit, used to transmit the original voice request and the earphone power data to a cloud server, so as to request the cloud server to recognize and process the original voice request; wherein the cloud server recognizes and processes the original voice request, including at least voice recognition and intent recognition of the original voice request; a prompt tone receiving unit, configured to receive the earphone power prompt tone returned by the cloud server according to the earphone power data if the original voice request is an earphone power query voice request; The second transmission module is used to obtain a default power answer voice locally or obtain a default power answer voice from a cloud server if the earphone power data reported by the earphone is not received, and transmit it to the earphone for playback.

8. The device according to claim 7, wherein: The first transmission module is specifically used for: The earphone power prompt voice is transmitted to the earphone or two earphones that report the earphone power data for playing.

9. The device according to claim 7, wherein: The content of the earphone power prompt voice includes earphone power and charging prompt.

10. A headphone battery reminder device, configured in a cloud server, comprising: The second acquisition module is used to acquire an original voice request initiated by the client and simultaneously acquire the headphone power data transmitted by the client; wherein the original voice request is the user voice collected by the microphone of the headphone and sent to the client; A second prompt tone acquisition module is used for acquiring a headphone power prompt tone according to the headphone power query tone request if the original voice request is a headphone power query tone request; wherein the terminal to which the client belongs is connected to the headphone; A second transmission module is used to transmit the earphone power prompt voice to the earphone through the client for playback; Wherein, the second prompt tone acquisition module includes: A voice request receiving and transmitting unit is used to receive the original voice request through the cloud service interface, transmit it to the voice recognition server for voice recognition, obtain the request text after voice recognition, and transmit the request text and earphone power data to the general search engine for processing; An intent acquisition unit is used to transmit the request text to the intent recognition server through a general search engine for intent recognition, obtain the headphone power query intent, and transmit the headphone power query intent and headphone power data to the dialogue service capability unit for processing; A power prompt text generation unit, used to generate a headphone power prompt text according to the headphone power data and a preset power prompt template through the dialogue service capability unit, and return it to the cloud service interface; A text transmission unit, used to transmit the headphone power prompt text to the speech synthesis server for processing through the cloud service interface; A speech generation unit, used for processing the headphone power prompt text to generate a headphone power prompt voice through a speech synthesis server; If the client does not receive the headphone power data reported by the headphone, it obtains the default power answer voice locally or obtains the default power answer voice from the cloud server, and transmits it to the headphone for playback.

11. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the earphone battery prompt method described in any one of claims 1-4 or claims 5-6.

12. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to enable the computer to execute the earphone battery prompt method according to any one of claims 1 to 4 or claims 5 to 6.