Earphone memory control method and device, electronic equipment and storage medium

By receiving and analyzing ambient audio information, and combining it with the user's voice and needs, the system automatically adjusts the headphone status, solving the problem of cumbersome adjustment of wireless headphone functions and improving the user experience.

CN116506760BActive Publication Date: 2025-11-21SHENZHEN GINTO E COMMERCE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310242494.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-01
Publication Date
2025-11-21
Estimated Expiration
2043-03-01

AI Technical Summary

Technical Problem

The function adjustment process of existing wireless headphones is cumbersome, which affects the user experience. In particular, in noisy environments, the voice assistant has difficulty accurately recognizing the user's voice, resulting in frequent manual operation.

Method used

By receiving environmental audio information, analyzing the audio source and status, and combining user voice information and usage instructions, the system automatically adjusts the headphone status, uses a cloud-based audio information database and a preset scene text database to determine user needs, and generates an adjustment plan.

Benefits of technology

It reduces manual operation by users, improves the convenience and user experience of using headphones, and adapts to the needs of different environments and usage scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116506760B_ABST
    Figure CN116506760B_ABST
Patent Text Reader

Abstract

The application relates to an earphone memory control method and device, electronic equipment and a storage medium. Current environmental audio information is first received, and the environmental audio information comprises user voice information. The environmental audio information is analyzed to determine an audio source corresponding to the environmental audio information. Based on an audio information library, a current environmental state corresponding to the environmental audio information is determined according to the audio source and the environmental audio information. Then, actual use requirements of a user are determined according to the user voice information and a use requirement instruction sent by the user. Earphone use habits of the user corresponding to the current environmental state are obtained, and the state of the earphone is adjusted according to the earphone use habits and the actual use requirements.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the earphone technical field, and in particular to an earphone memory control method and device, electronic equipment and storage medium. BACKGROUND

[0002] With the progress of society, more and more people are used to using earphones to answer the phone, listen to music, etc., and the use of earphones is more and more frequent. Using earphones to play audio information of mobile devices seems to have become a comfortable lifestyle for people, so various styles and functions of earphones have emerged in the market.

[0003] At present, most of the earphones that people like on the market are wireless earphones. The functions of these wireless earphones mainly include volume control, play switching, mode switching. People connect wireless earphones with their mobile devices, and then manually click the keys on the wireless earphones or touch them according to the pre-set wireless earphone control mode to realize the functions of the wireless earphones. However, users need to constantly adjust the functions of the wireless earphones according to the use demand every time they use the earphones, which is relatively cumbersome in the use process and affects the user's use experience. SUMMARY

[0004] The present application provides an earphone memory control method, device, electronic equipment and storage medium.

[0005] In a first aspect, the present application provides an earphone memory control method, comprising:

[0006] receiving current environmental audio information; the environmental audio information includes voice information of a user;

[0007] analyzing the environmental audio information to determine the audio source corresponding to the environmental audio information;

[0008] based on an audio information library, determining a current environmental state corresponding to the environmental audio information according to the audio source and the environmental audio information;

[0009] determining the actual use demand of the user according to the voice information of the user and the use demand instruction sent by the user;

[0010] obtaining the earphone use habit of the user corresponding to the current environmental state, and adjusting the state of the earphone according to the earphone use habit and the actual use demand.

[0011] By receiving and analyzing the current environmental audio information, the audio source corresponding to the environmental audio information is determined. According to the audio source and the environmental audio information, the current environmental state corresponding to the environmental audio information is determined based on the audio information library. In combination with the voice information of the user and the use demand instruction sent by the user, the actual use demand of the user in this use of the earphone is comprehensively determined, and the use state of the earphone is automatically adjusted according to the actual use demand and the earphone use habit of the user in the current environmental state. The state of the earphone is avoided to be frequently adjusted by manual operation, and the use experience of the user is improved.

[0012] Optionally, the earphone pocket to which the earphone belongs is linked with a cloud end; the cloud end comprises an audio information library; the analysis of the environmental audio information to determine the audio source corresponding to the environmental audio information comprises:

[0013] extracting the sound signal of the environmental audio information and determining the frequency of the sound signal;

[0014] determining the audio source corresponding to the frequency according to the frequency, so as to determine the audio source corresponding to the environmental audio information;

[0015] the determination of the current environmental state corresponding to the environmental audio information based on the audio information library according to the audio source and the environmental audio information comprises:

[0016] sending the environmental audio information to the cloud end and receiving the matching result sent by the cloud end according to the environmental audio information; the matching result is obtained by matching the environmental audio information with the audio information in the audio information library by the cloud end;

[0017] receiving the matching result and determining the current environmental state corresponding to the environmental audio information according to the matching result, the audio source and the environmental audio information.

[0018] The audio source is determined according to the frequency of the sound signal of the environmental audio information, and the matching result is determined according to the matching of the cloud end to the environmental audio information. The current environmental state corresponding to the environmental audio information is obtained based on the determined matching result, the determined audio source and the specific environmental audio information. The audio source and the matching result are more real, and the current environmental state determined thereby is also closer to the environmental state when the user actually uses the earphone.

[0019] Optionally, the cloud end comprises a preset scene text library; the earphone is connected with a mobile device corresponding to the user; the method further comprises:

[0020] determining the character voice information in the environmental audio information;

[0021] judging whether the voice information of the user is included in the character voice information;

[0022] extracting the voice information of the user from the character voice information if the character voice information includes the voice information of the user;

[0023] determining the actual use demand of the user according to the voice information of the user and the use demand instruction sent by the user, comprising:

[0024] recognizing the voice information of the user to determine the text content corresponding to the voice information;

[0025] sending the text content to the cloud and receiving the matching result sent by the cloud according to the text content; the matching result is obtained by matching the text content with the text content in the preset scene text library in the cloud;

[0026] determining the scene type to which the text content belongs according to the matching result;

[0027] receiving the use demand instruction sent by the mobile device corresponding to the user, and determining the actual use demand of the user according to the scene type, the voice information of the user and the use demand instruction.

[0028] First, the character voice information in the environmental audio information is determined, and if the character voice information includes the voice information of the user, the voice information of the user can be extracted and recognized. The recognized text content is sent to the cloud for matching to determine the scene type to which the text content belongs. Based on the scene type, the voice information of the user and the use demand instruction sent by the user, the final actual use demand is determined. The adjustment of the earphone state that the user may need in the actual use of the earphone can be considered from multiple aspects, so that the state of the earphone after adjustment is more in line with the use demand of the user.

[0029] Optionally, the cloud includes a communication keyword library; the character voice information includes the voice information of the user and surrounding character voice information; the method further comprises:

[0030] extracting the surrounding character voice information from the character voice information;

[0031] sending the surrounding character voice information to the cloud and receiving the comparison result sent by the cloud according to the surrounding character voice information; the comparison result is obtained by comparing the information keywords in the surrounding character voice information with the preset communication keywords in the communication keyword library in the cloud;

[0032] determining the first use demand of the user according to the comparison result;

[0033] The receiving the use demand instruction sent by the mobile device corresponding to the user, and determining the actual use demand of the user according to the scene type, the voice information of the user and the use demand instruction, comprising:

[0034] Receiving the use demand instruction sent by the mobile device corresponding to the user, and determining the second use demand of the user;

[0035] According to the scene type corresponding to the text content, the third use demand of the user is determined;

[0036] According to the first use demand, the second use demand, the third use demand, the actual use demand of the user is determined.

[0037] The surrounding person sound information is extracted and sent to the cloud for comparison, and the first use demand is determined according to the comparison result, and then the second use demand is determined according to the use demand instruction, and the third use demand is determined according to the voice information of the user corresponding to the scene type corresponding to the text content. The first use demand, the second use demand, the third use demand is used as the actual use demand of the user, which can make the adjustment mode of the earphone state more reliable, and further make the adjusted earphone state meet the actual use demand of the user and meet other use demands that can improve the user's use experience.

[0038] Optionally, the method further comprises:

[0039] According to the actual use demand and the preset adjustment priority corresponding to the current environment state, an earphone state adjustment scheme is generated;

[0040] According to the earphone state adjustment scheme and the earphone use habit of the user corresponding to the current environment state, the state of the earphone is adjusted.

[0041] According to the preset adjustment priority, the actual use demand of the user is sorted, and the adjustment scheme of the state of the corresponding earphone is generated, and then the final adjustment is made based on the earphone use habit of the user. The adjustment process of the earphone state is more in line with the actual life, and the use experience of the user is improved.

[0042] Optionally, the cloud includes a historical control information library; the historical control information library includes historical environment state information and the control mode of the earphone corresponding to the historical environment state information; the method further comprises:

[0043] retrieve the historical environment state information and the corresponding control mode of the earphone from the historical control information library, and generate training sample data;

[0044] train the usage habit determination model based on the training sample data, and obtain a trained usage habit determination model;

[0045] determine the earphone usage habit of the user in the current environment state based on the trained usage habit determination model and current environment information corresponding to the current environment state.

[0046] The historical environment state information and the corresponding control mode of the earphone are used as training sample data to train the established usage habit determination model, and a trained usage habit determination model is obtained. Based on the trained usage habit determination model, the earphone usage habit of the user in the current environment state is obtained. The usage habit determination model trained based on a large amount of training sample data can make the obtained earphone usage habit of the user in the current environment state more accurate and reliable.

[0047] Optionally, the earphone comprises a microphone; and the method further comprises:

[0048] real-time detecting whether the earphone is connected to a mobile device corresponding to the user;

[0049] if the earphone is in a connected state with the mobile device, starting the microphone to control the microphone to collect current environment audio information;

[0050] receiving the current environment audio information; the environment audio information comprises voice information of the user, and comprises:

[0051] receiving the current environment audio information input by the microphone; the environment audio information comprises voice information of the user.

[0052] The earphone and the mobile device of the user can be detected whether to be connected, and if in the connected state, the microphone can be immediately controlled to collect the environment audio information. The environment audio information can be received immediately when it is detected that the earphone is connected to the mobile device corresponding to the user, the efficiency of adjusting the state of the earphone is improved, and the use experience of the user is improved.

[0053] In a second aspect, the application provides an earphone memory control device, comprising:

[0054] an environment audio information receiving module, configured to receive current environment audio information; the environment audio information comprises voice information of the user;

[0055] an audio source determining module, configured to analyze the environment audio information and determine an audio source corresponding to the environment audio information;

[0056] A current environment state determination module is configured to determine a current environment state corresponding to the environment audio information based on an audio information library according to the audio source and the environment audio information;

[0057] An actual use demand determination module is configured to determine an actual use demand of the user according to the voice information of the user and a use demand instruction sent by the user;

[0058] An earphone state adjustment module is configured to obtain an earphone use habit of the user corresponding to the current environment state, and adjust a state of the earphone according to the earphone use habit and the actual use demand.

[0059] Optionally, an earphone pocket to which the earphone belongs is linked to a cloud; the cloud comprises an audio information library; and the audio source determination module is specifically configured to:

[0060] extract a sound signal of the environment audio information and determine a frequency of the sound signal;

[0061] determine an audio source corresponding to the frequency according to the frequency, so as to determine the audio source corresponding to the environment audio information;

[0062] The current environment state determination module is specifically configured to:

[0063] send the environment audio information to the cloud, and receive a matching result sent by the cloud according to the environment audio information; the matching result is obtained by matching the environment audio information and audio information in the audio information library by the cloud;

[0064] receive the matching result, and determine the current environment state corresponding to the environment audio information according to the matching result, the audio source and the environment audio information.

[0065] Optionally, the cloud comprises a preset scene text library; the earphone is connected to a mobile device corresponding to the user; and the earphone memory control device further comprises a sound information extraction module configured to:

[0066] determine character voice information in the environment audio information;

[0067] determine whether the character voice information comprises voice information of the user;

[0068] when the character voice information comprises the voice information of the user, extract the voice information of the user from the character voice information;

[0069] The actual use demand determination module is specifically configured to:

[0070] recognize voice information of the user, and determine text content corresponding to the voice information;

[0071] send the text content to the cloud, and receive a matching result sent by the cloud according to the text content; the matching result is obtained by matching the text content with text content in a preset scene text library in the cloud;

[0072] determine a scene type to which the text content belongs according to the matching result;

[0073] receive a use demand instruction sent by a mobile device corresponding to the user, and determine an actual use demand of the user according to the scene type, the voice information of the user, and the use demand instruction.

[0074] Optionally, the cloud includes a communication keyword library; the character voice information includes the voice information of the user and surrounding character voice information; the earphone memory control device further includes a first use demand determination module configured to:

[0075] extract the surrounding character voice information from the character voice information;

[0076] send the surrounding character voice information to the cloud, and receive a comparison result sent by the cloud according to the surrounding character voice information; the comparison result is obtained by comparing information keywords in the surrounding character voice information with preset communication keywords in the communication keyword library in the cloud;

[0077] determine a first use demand of the user according to the comparison result;

[0078] The actual use demand determination module is specifically configured to:

[0079] receive a use demand instruction sent by a mobile device corresponding to the user, and determine a second use demand of the user;

[0080] determine a third use demand of the user according to the scene type corresponding to the text content;

[0081] determine the actual use demand of the user according to the first use demand, the second use demand, and the third use demand.

[0082] Optionally, the earphone state adjustment module is specifically configured to:

[0083] generate an earphone state adjustment scheme according to a preset adjustment priority corresponding to the actual use demand and the current environment state;

[0084] According to the earphone state adjustment scheme and the earphone use habit of the user corresponding to the current environment state, the state of the earphone is adjusted.

[0085] Optionally, the cloud end comprises a historical control information library; the historical control information library comprises historical environment state information and a control mode of the earphone corresponding to the historical environment state information; the earphone memory control device further comprises a use habit determination model utilization module, configured to:

[0086] The historical environment state information and the control mode of the earphone corresponding to the historical environment state information are called from the historical control information library to generate training sample data;

[0087] Based on the training sample data, a use habit determination model is trained to obtain a trained use habit determination model;

[0088] Based on the trained use habit determination model and current environment information corresponding to the current environment state, the earphone use habit of the user corresponding to the current environment state is determined.

[0089] Optionally, the earphone comprises a microphone; the earphone memory control device further comprises an environment audio information acquisition module, configured to:

[0090] Real-time detection is performed on whether the earphone is connected with a mobile device corresponding to the user;

[0091] When the earphone is in a connected state with the mobile device, the microphone is started to control the microphone to acquire current environment audio information;

[0092] The current environment audio information is received; the environment audio information comprises user voice information, comprising:

[0093] The current environment audio information input by the microphone is received; the environment audio information comprises user voice information.

[0094] In a third aspect, the present application provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program capable of being loaded and executed by the processor to execute the method of the first aspect.

[0095] In a fourth aspect, the present application provides a computer readable storage medium, which stores a computer program capable of being loaded and executed by a processor to execute the method of the first aspect. BRIEF DESCRIPTION OF DRAWINGS

[0096] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those of ordinary skill in the art without any creative effort based on these drawings.

[0097] Figure 1 An application scenario schematic diagram provided for an embodiment of the present application;

[0098] Figure 2 A flowchart of an earphone memory control method provided for an embodiment of the present application;

[0099] Figure 3 A structural schematic diagram of an earphone memory control device provided for an embodiment of the present application;

[0100] Figure 4 A structural schematic diagram of an electronic device provided for an embodiment of the present application. DETAILED DESCRIPTION

[0101] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the following will combine the drawings in the embodiments of the present application to make a clear and complete description of the technical solutions in the embodiments of the present application. Obviously, the described embodiments are some embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without any creative effort fall within the scope of protection of the present application.

[0102] In addition, the term "and / or" in this paper is only to describe the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B, which can represent the following three cases: A exists alone, A and B exist together, and B exists alone. In addition, the character " / " in this paper generally represents an "or" relationship between the associated objects unless otherwise specified.

[0103] The embodiments of the present application will be further described in detail below in combination with the drawings of the specification.

[0104] Currently, more and more people are accustomed to using wireless headphones for making calls, listening to music, and watching videos, leading to a proliferation of various styles and functions of wireless headphones on the market. Wireless headphones come pre-configured with control methods, allowing users to connect them to their mobile devices and modify these settings. However, regardless of the settings, manual adjustments are still required when using the headphones. For example, a user might configure their mobile device to double-tap the headphone's touch area to increase the volume and triple-tap to decrease it. Some headphones offer voice assistant functionality, but in noisy environments, voice assistants struggle to accurately recognize the user's voice. In practice, adjusting volume is primarily done manually, which significantly impacts the user experience when hands are occupied and immediate control is needed.

[0105] Based on this, this application provides a headphone memory control method, device, electronic device, and storage medium.

[0106] By receiving current ambient audio information, the system determines the corresponding audio source and thus the current environmental state. Based on the user's voice information and usage commands, it identifies the user's actual needs. Then, based on the user's headphone usage habits and actual needs within the current environment, the system automatically adjusts the headphone's settings. This eliminates the need for manual adjustments, improving the user experience.

[0107] Figure 1 This is a schematic diagram illustrating an application scenario provided by this application. A user wants to control or adjust certain functions of wireless headphones, but for various reasons does not want to operate them manually. In this case, the headphone memory control method provided in this application can be used. Figure 1 In the illustrated scenario, the device used to implement the method of this application is an earphone case; in other scenarios, it could be a server or other electronic device. The earphone case can be linked to an audio information database. Figure 1 The audio information database can be built in the cloud. The earphone charging case can receive and analyze ambient audio information, and then use the audio information database to determine the current environmental state corresponding to the ambient audio information. Based on the user's actual usage needs and the user's earphone usage habits under the current environmental state, the earphone's state is adjusted to automatically control the earphone to achieve the desired function according to the user's habits, thereby improving the user experience.

[0108] For specific implementation details, please refer to the following examples.

[0109] Figure 2A flowchart of an earphone memory control method provided by an embodiment of the present application. The method of the embodiment can be applied to the earphone case in the above scenarios. As shown in the figure, the method comprises the following steps. Figure 2

[0110] S201, receiving current environmental audio information; the environmental audio information comprises voice information of a user.

[0111] A sound receiver, such as a microphone, can be provided on the earphone for receiving environmental audio information. The environmental audio information can be sound information that can be received by the sound receiver within a preset information receiving range centered on the earphone. The preset information receiving range can be determined according to the settings made on the earphone before it leaves the factory. Different earphones can have different ranges of sound information that can be received due to different settings. The environmental audio information can comprise voice information of the user of the earphone, voice information of other people except the user, sound information of vehicles passing by, sound information generated by the collision of objects, etc.

[0112] The current environmental audio information can be sound information within the preset information receiving range received by the earphone when the sound receiver is turned on. The voice information of the user can be the voice information of the user of the earphone, and can comprise relevant information about the voice of the user, such as sound information generated by singing, reciting, talking, etc.

[0113] Specifically, the earphone case can receive various sound information within the preset information receiving range, and the various sound information described above can be taken together as the environmental audio information, which can comprise voice information of the user. In actual implementation, the specific receiving manner of the environmental audio information can be determined according to different configurations and settings of the earphone.

[0114] S202, analyzing the environmental audio information to determine the audio sources corresponding to the environmental audio information.

[0115] According to step S201, it can be known that the current environmental audio information can be composed of various sound information received by the earphone case, and the corresponding audio sources can be the sources of different sound information in the current environmental audio information. For example, some sound information can be from a person, some sound information can be from an animal such as a cat, and some sound information can be from different vehicles, etc.

[0116] Different types of sound information have different characteristics. For example, the voice information of a person can be coherent, but the voice information at different times can be different, while the voice information of an animal such as a cat can be coherent, but the voice information at different times can be the same. For some sound information of vehicles, it can be incoherent.

[0117] ​Specifically, the audio source corresponding to the environmental audio information can be analyzed according to different characteristics of different sound information. In actual implementation, the environmental audio information in this step has the same meaning as the current environmental audio information in step S201.

[0118] S203, determining the current environmental state corresponding to the environmental audio information according to the audio source and the environmental audio information based on the audio information library.

[0119] The audio information library can be pre-set in the cloud to store various types of audio information corresponding to the environmental audio information. The current environmental state can include a noisy state or a quiet state in different environments, that is, what kind of environment is composed of what kind of audio source and whether the sound state in the environment is noisy or quiet.

[0120] In some embodiments, the current environmental state corresponding to sound higher than 60 decibels can be set as a noisy state, and the current environmental state corresponding to sound lower than 60 decibels can be set as a quiet state. Different environmental states can correspond to different levels to represent the degree of noise or quiet. For example, the current environmental state corresponding to 60-70 decibel sound can be set as a first level noisy state, the current environmental state corresponding to 70-85 decibel sound can be set as a second level noisy state, the current environmental state corresponding to 85-100 decibel sound can be set as a third level noisy state, and the current environmental state corresponding to sound above 100 decibels can be set as a fourth level noisy state. At this time, from the first level noisy state to the fourth level noisy state, the clarity of the audio information played by the earphone gradually decreases, and it becomes more and more difficult for the user to clearly hear the audio information played by the earphone.

[0121] It should be noted that the numbers involved in the above description are examples and do not limit the manner involved in the present embodiment.

[0122] Specifically, the audio source corresponding to the current environmental audio information determined in step S202, various sound information in the environmental audio information, and audio information in the audio information library can be compared to determine what the current environmental state corresponding to the current environmental audio information is.

[0123] S204, determining the actual use demand of the user according to the sound information of the user and the use demand instruction sent by the user.

[0124] In some embodiments, the user can pre-record his own sound on the earphone as the preset sound information of the user, and when the earphone receives the environmental audio information, the preset sound information can be compared to determine the sound information of the user.

[0125] In some embodiments, the sound receiver can be arranged inside and outside the earphone respectively, and the sound received by the sound receiver arranged inside the earphone can be the sound of the user himself / herself.

[0126] After the earphone is connected with the mobile device of the user, the user can perform different operations on the mobile device, and the earphone can determine what content to play according to the operation of the user, and the operation of the user on the mobile device can be used as the use demand instruction sent by the user. For example, the user opens the music playing software on the mobile device and selects to play a certain piece of music, and then the earphone can play the music selected by the user. At this time, the operation of the user of opening the music playing software on the mobile device and selecting the music can be used as the use demand instruction sent by the user.

[0127] The actual use demand can be based on the purpose of the user using the earphone, and determine what adjustment needs to be made to the state of the earphone to achieve the purpose. For example, the user uses the earphone to listen to music, and then the state of the earphone can be adjusted to a lossless state to provide the user with a good listening experience.

[0128] Specifically, the use demand instruction sent by the user can be used to understand what adjustment needs to be made to the working state of the earphone. If the voice information of the user contains information representing the use demand, such as increasing the volume, reducing the noise, etc., the actual use demand of the user can be determined based on the foregoing adjustment, and the state of the earphone can be adjusted according to the actual use demand.

[0129] S205, obtaining the earphone use habit of the user corresponding to the current environment state, and adjusting the state of the earphone according to the earphone use habit and the actual use demand.

[0130] The state of the earphone can include the volume of the earphone, the working mode of the earphone, the equalization state of the earphone, etc. The working mode of the earphone can include a noise reduction mode, which can be usually used in a relatively noisy environment; a transparent mode, which can be usually used in a communication environment; and an immersive mode, which can be usually used in a game or music listening environment. In addition, other working modes can also be included, and in some specific implementations, the working mode can be set when the earphone is manufactured.

[0131] The equalization state of the earphone can correct the working mode of the earphone. In some embodiments, when the user is talking in a relatively noisy environment, the working mode of the earphone can be automatically switched to the noise reduction mode. However, during the communication process, the user's voice can also become lower or unclear due to noise reduction. Therefore, the noise reduction state can be equalized. A filtering module and an equalization module can be provided in the earphone. The filtering module can filter out most of the noise in the environmental audio information except the voice information of the person. Then, the equalization module removes the interference of the environmental audio information on the voice information of the user. Based on this, the noise reduction state is equalized.

[0132] The earphone use habit of the user can be that the user is used to adjusting the earphone state to a certain state when using the earphone in different environment states. If the user often manually adjusts the earphone state in a certain environment state, the automatically adjusted earphone state can be regarded as the earphone use habit of the user. If the user manually adjusts the earphone state on the basis of the automatically adjusted earphone state in a certain environment state, the earphone state after the automatic adjustment and the manual adjustment of the user can be regarded as the earphone use habit of the user.

[0133] In some implementations, if the user manually adjusts the earphone every time, the earphone can store the adjustment information such as the adjustment manner of the user and the environment state when the user adjusts the earphone state to the cloud as the source of obtaining the earphone use habit of the user next time. The earphone can be preset with the earphone state when used in different environment states before leaving the factory, for example, the music volume can be automatically reduced when the user needs to communicate with others while listening to music. If the user uses the earphone for the first time, the earphone state can be adjusted by using the preset earphone state when used in different environment states. The earphone use habit of the user can be obtained from the recorded adjustment information in the cloud.

[0134] Specifically, the earphone use habit of the user when encountering the current environment state during the use of the earphone is obtained. On the basis of the earphone use habit, the actual use demand of the user this time when using the earphone is determined, and the state that can be adjusted this time when using the earphone is determined and automatically adjusted.

[0135] The embodiment determines the audio source corresponding to the environmental audio information by receiving and analyzing the current environmental audio information. According to the audio source and the environmental audio information, the current environment state corresponding to the environmental audio information is determined based on the audio information library. Then, the actual use demand of the user this time when using the earphone is comprehensively determined in combination with the voice information of the user and the use demand instruction sent by the user. According to the actual use demand and the earphone use habit of the user in the current environment state, the use state of the earphone is automatically adjusted. The user can avoid frequent manual operation to adjust the state of the earphone, and the use experience of the user is improved.

[0136] In some embodiments, the earphone case to which the earphone belongs is linked to the cloud; the cloud comprises an audio information library; the analysis of the ambient audio information to determine the audio source corresponding to the ambient audio information can specifically comprise: extracting a sound signal of the ambient audio information and determining the frequency of the sound signal; determining the audio source corresponding to the frequency according to the frequency, so as to determine the audio source corresponding to the ambient audio information;

[0137] Correspondingly, the determination of the current environment state corresponding to the ambient audio information based on the audio information library according to the audio source and the ambient audio information can specifically comprise: sending the ambient audio information to the cloud and receiving a matching result sent by the cloud according to the ambient audio information; the matching result is obtained by the cloud by matching the ambient audio information with the audio information in the audio information library; receiving the matching result and determining the current environment state corresponding to the ambient audio information according to the matching result, the audio source and the ambient audio information.

[0138] The ambient audio information involved in the above embodiments can contain various types of sound information, and different sound information has different characteristics. The sound signal can be an attribute or characteristic of different sound information. The difference between sound signals can be reflected in the difference in sound frequency. For example, the frequency range of human voice can be 300 Hz-3.4 KHz, the frequency range of music can be 20 Hz-20 KHz, and so on. Therefore, the frequency of the sound signal can be used to distinguish the audio source of the sound information as a person, an animal or other audio sources. Various types of sound information included in the ambient audio information can contain specific content, for example, the sound information of a person obtained can contain what the person said.

[0139] Specifically, a spectrum analysis module can be arranged on the earphone. The sound signal of the ambient audio information can be separated by the spectrum analysis module first, different sound signals are extracted, and the frequency corresponding to the sound signal is obtained. According to the difference in frequency, the corresponding audio source, i.e. the audio source corresponding to the ambient audio information, can be determined. The earphone case and the cloud can be linked through an interface. The earphone case can send the ambient audio information collected by the sound receiver in the above embodiments to the cloud. After receiving the ambient audio information, the cloud can compare the ambient audio information with the audio information in the audio information library to obtain the matching result, i.e. the possible environment composed of the audio source corresponding to the ambient audio information. For example, the sound information corresponding to certain ambient audio information includes a large amount of vehicle sound information and a small amount of human sound information. The cloud can preliminarily determine that the current environment in which the user is located is probably a road or other environment after comparison. Since the matched environment can be relatively extensive, the current environment state can be further determined to be what kind of environment composed of what kind of audio source and whether the sound state of the environment is noisy or quiet by combining the matching result, the audio source and the ambient audio information.

[0140] The embodiment determines the audio source according to the frequency of the sound signal of the environmental audio information, and determines the matching result according to the matching of the cloud to the environmental audio information. The current environmental state corresponding to the environmental audio information is determined based on the determined matching result, the determined audio source and the specific environmental audio information. The audio source and the matching result are more realistic, and the current environmental state determined thereby is also closer to the environmental state when the user actually uses the earphone.

[0141] In some embodiments, the cloud comprises a preset scene text library; the earphone is connected to a mobile device corresponding to the user; the character sound information can be extracted from the environmental audio information, specifically comprising: determining the character sound information in the environmental audio information; judging whether the character sound information includes the sound information of the user; if so, extracting the sound information of the user from the character sound information;

[0142] Correspondingly, the actual use demand of the user is determined according to the sound information of the user and the use demand instruction sent by the user, specifically comprising: recognizing the sound information of the user, and determining the text content corresponding to the sound information; sending the text content to the cloud, and receiving the matching result sent by the cloud according to the text content; the matching result is obtained by matching the text content in the cloud with the text content in the preset scene text library; determining the scene type to which the text content belongs according to the matching result; receiving the use demand instruction sent by the mobile device corresponding to the user, and determining the actual use demand of the user according to the scene type, the sound information of the user and the use demand instruction.

[0143] The character sound information can be all the sound information related to the character contained in the environmental audio information received by the earphone. The scene text library can be pre-set in the cloud, i.e. the preset scene text library, which can be used to store the text converted from the character sound information and the possible scene description composed of the text. The adjustment of the state of the earphone in different scene types can be different. For example, in a noisy playground, the user needs to first perform noise reduction processing when using the earphone, and at the same time, the user can encounter communication with friends on the playground, so the noise reduction state of the earphone when the user communicates with others can also be balanced to enable the user to hear the words of others when listening to music or playing games. The state of the earphone can also include a lossless state that can improve the user's listening experience.

[0144] In some implementations, a spectrum analysis module can also be provided on the earphone to analyze the received environmental audio information and separate the character sound information in the environmental audio information.

[0145] Specifically, the environmental audio information can be analyzed by using the spectrum analysis module to determine the character voice information. Then the voice information previously recorded by the user can be compared with the aforementioned character voice information to determine whether the voice information of the user is included in the character voice information, and if so, the voice information of the user can be separated by using the spectrum analysis module. The voice information of the user is filtered by using the filtering module involved in the above embodiment, and the voice information of the user is corrected by using the equalization module involved in the above embodiment to perform equalization operation, and then the equalized voice information of the user is converted into text to obtain corresponding text content. Then the text content is sent to the cloud, and the cloud can match the text content with the text content in the preset scene text library to determine to which scene type the voice information corresponds. The use demand instruction sent by the user is received, and the actual use demand of the user is determined according to the above determined scene type, voice information of the user and use demand instruction, for example, in a noisy playground of this type of scene, the noise reduction adjustment of the earphone needs to be performed first. The user opens the music playing software on the mobile device and selects a piece of music to play, and the state of the earphone can be adjusted to a lossless state when the music is played. At this time, the adjustment of the state matched with the lossless sound quality can be used as the earphone use demand corresponding to the use demand instruction. If the user's friend communicates with the user at this time, the earphone can automatically adjust the size of the music sound. The above noise reduction adjustment, lossless state adjustment and music volume adjustment can be used as the actual use demand of the user.

[0146] The embodiment first determines the character voice information in the environmental audio information, and if the voice information of the user is included in the character voice information, the voice information of the user can be extracted and recognized. The recognized text content is sent to the cloud for matching to determine the scene type to which the text content belongs. Based on the scene type, voice information of the user and use demand instruction sent by the user, the final actual use demand is determined. The adjustment of the earphone state that the user may need in the actual use of the earphone can be considered from multiple aspects, so that the state of the earphone after adjustment is more in line with the use demand of the user.

[0147] In some embodiments, the cloud includes a communication keyword library; the character voice information includes voice information of the user and surrounding character voice information; the surrounding character voice information can be extracted from the character voice information to determine the first use demand of the user, which can specifically include: extracting the surrounding character voice information from the character voice information; sending the surrounding character voice information to the cloud and receiving a comparison result sent by the cloud according to the surrounding character voice information; the comparison result is obtained by comparing the information keywords in the surrounding character voice information with the preset communication keywords in the communication keyword library; determining the first use demand of the user according to the comparison result;

[0148] Correspondingly, the receiving user corresponding to the mobile device sending the use demand instruction, and determining the actual use demand of the user according to the scene type, the voice information of the user and the use demand instruction, specifically can include: receiving the use demand instruction sent by the mobile device corresponding to the user, determining the second use demand of the user; determining the third use demand of the user according to the scene type corresponding to the text content; determining the actual use demand of the user according to the first use demand, the second use demand and the third use demand.

[0149] In addition to the voice information of the user, other voice information of the character in the character voice information can be used as the surrounding character voice information. A communication keyword library can be preset in the cloud for storing preset communication keywords, such as hello, hey, user name, etc. which can represent the keywords for starting communication.

[0150] If the character voice information includes the surrounding character voice information, and it is determined through analysis that the character is communicating with the user, the demand for improving the communication clarity at this time can be used as the first use demand, for example, someone wants to communicate with the user, and needs to adjust the earphone state to make the sound of other characters heard more clearly. The second use demand can be that when the user sends the use demand instruction to the earphone, the earphone determines the purpose of the user using the earphone this time according to the use demand instruction, and then automatically confirms the demand. For example, the user wants to listen to music, and the purpose of using the earphone is to play music, so the earphone needs to be adjusted to be in a lossless playing state. The third use demand can be the demand that the current environment state may bring, for example, the user is listening to music on a noisy subway, even if the music itself does not need to be reduced, but in this environment, in order to enable the user to obtain a good experience, noise reduction is needed.

[0151] Specifically, the user voice information and the surrounding character information in the character voice information can be distinguished by using the spectrum analysis module in the above embodiment. The surrounding character information is extracted and sent to the cloud, and the cloud compares the information keywords in the surrounding character voice information with the preset communication keywords in the communication keyword library to determine whether the information keywords in the surrounding character voice information are included in the communication keyword library, that is, the comparison result. If the comparison result shows that it is included, it means that there is a character in the surrounding character voice information who wants to communicate with the user, and at this time the first use demand can be determined. According to the use demand instruction of the user, the corresponding second use demand can be determined, and according to the scene type corresponding to the text content, the third use demand can be obtained. The first use demand, the second use demand and the third use demand are used together as the actual use demand of the user.

[0152] The embodiment extracts the ambient person sound information and sends it to the cloud for comparison, determines the first use demand according to the comparison result, then determines the second use demand according to the use demand instruction, and determines the third use demand according to the scene type corresponding to the text content corresponding to the user's sound information. The first use demand, the second use demand and the third use demand are used as the actual use demand of the user, which can make the adjustment mode of the earphone state more reliable, and further make the adjusted earphone state meet the actual use demand of the user while meeting other use demands that can improve the user's use experience.

[0153] In some embodiments, the above-mentioned obtaining the earphone use habit of the user corresponding to the current environment state, and adjusting the state of the earphone according to the earphone use habit and the actual use demand, can specifically include: generating an earphone state adjustment scheme according to the actual use demand and the preset adjustment priority corresponding to the current environment state; and adjusting the state of the earphone according to the earphone state adjustment scheme and the earphone use habit of the user corresponding to the current environment state.

[0154] The actual use demand of the user can include multiple use demands, and there can be an adjustment sequence, i.e., a preset adjustment priority, when adjusting the state of the earphone. For example, when the user is playing a game in a noisy playground and someone communicates with the user, the demand to make the user hear the sound in the earphone clearly can be adjusted as the first priority, then the use demand to make the communication clearer can be adjusted as the second priority, and the demand to make the game keep the user in the scene can be adjusted as the third priority. In some specific implementation processes, the user can modify the preset adjustment priority on the mobile device connected to the earphone.

[0155] Specifically, the adjustment sequence of the actual use demand of the user can be determined according to the preset adjustment priority, and a corresponding earphone state adjustment scheme is generated. Based on this scheme, the final adjustment of the earphone state can be made according to the earphone use habit of the user in the current environment state.

[0156] The embodiment sorts the actual use demand of the user according to the preset adjustment priority, generates a corresponding adjustment scheme of the state of the earphone, and then makes the final adjustment based on the earphone use habit of the user. This makes the adjustment process of the state of the earphone more consistent with the actual life, and improves the use experience of the user.

[0157] In some embodiments, the cloud includes a historical control information library, the historical control information library includes historical environment state information and control modes of the earphone corresponding to the historical environment state information; the method can further include: retrieving the historical environment state information and the control modes of the earphone corresponding to the historical environment state information from the historical control information library, generating training sample data; training the use habit determination model based on the training sample data, obtaining the trained use habit determination model; and determining the earphone use habit of the user corresponding to the current environment state based on the trained use habit determination model and current environment information corresponding to the current environment state.

[0158] The historical control information library can be pre-set in the cloud to store the historical environment state information, the control modes of the earphone corresponding to the historical environment state information, and the like.

[0159] The historical environment state information can be environment state information corresponding to an environment in which the user used the earphone before the current use. The control modes of the earphone corresponding to the historical environment state information can be control modes of the earphone in different environment states before the current use, i.e., how to adjust the state of the earphone.

[0160] Specifically, the historical environment state information and the control modes of the earphone corresponding to the historical environment state information in the historical control information library can be extracted as training sample data. A use habit determination model can be pre-established to directly obtain the earphone use habit of the user in different environment states. The historical environment state information and the control modes of the earphone corresponding to the historical environment state information in the training sample data can be input into the use habit determination model for training for several times, so that the earphone use habit of the user corresponding to a certain environment state information can be output, and finally the trained use habit determination model is obtained. The current environment information corresponding to the current environment state can be input into the trained use habit determination model to directly output the earphone use habit of the user corresponding to the current environment state.

[0161] In this embodiment, the historical environment state information and the control modes of the earphone corresponding to the historical environment state information are used as training sample data to train the established use habit determination model to obtain the trained use habit determination model. Based on the trained use habit determination model, the earphone use habit of the user in the current environment state is obtained. The use habit determination model trained based on a large amount of training sample data can make the earphone use habit of the user in the current environment state more accurate and reliable.

[0162] In some embodiments, the earphone includes a microphone; when the sound receiver in the above-mentioned embodiments is a microphone, the environmental audio information can be received by detecting the connection between the earphone and the mobile device of the user, which can specifically include: detecting in real time whether the earphone and the mobile device corresponding to the user are connected; if the earphone and the mobile device are in a connected state, the microphone is turned on to control the microphone to collect the current environmental audio information.

[0163] Correspondingly, the current environmental audio information is received; the environmental audio information includes the voice information of the user, which can specifically include: receiving the current environmental audio information input by the microphone; the environmental audio information includes the voice information of the user.

[0164] In some implementations, a use interface can be provided on the earphone to connect with the mobile device. When the earphone is connected with the mobile device of the user, the use interface of the earphone is in an open state, and when not connected, it is in a closed state.

[0165] Specifically, whether the earphone is connected with the mobile device of the user can be detected in real time according to the state of the use interface. If it is in a connected state, the microphone can be turned on to collect the environmental audio information. In actual implementation, the microphone can be connected with the equalization module, the received environmental audio information is first processed to make it clearer, and then the processed environmental audio information is received for subsequent analysis.

[0166] The embodiment can detect whether the earphone is connected with the mobile device of the user, and if it is in a connected state, the microphone can be immediately controlled to collect the environmental audio information. The reception of the environmental audio information can be started immediately when it is detected that the earphone is connected with the mobile device corresponding to the user, which improves the efficiency of adjusting the state of the earphone and improves the user experience.

[0167] Figure 3 A structural schematic diagram of an earphone memory control device provided by an embodiment of the present application is shown in Figure 3 As shown, the earphone memory control device 300 of the embodiment includes an environmental audio information receiving module 301, an audio source determining module 302, a current environment state determining module 303, an actual use demand determining module 304, and an earphone state adjusting module 305.

[0168] The environmental audio information receiving module 301 is configured to receive current environmental audio information; the environmental audio information includes voice information of a user.

[0169] The audio source determining module 302 is configured to analyze the environmental audio information and determine an audio source corresponding to the environmental audio information.

[0170] The current environment state determination module 303 is configured to determine a current environment state corresponding to the environment audio information based on the audio information library according to the audio source and the environment audio information.

[0171] The actual use demand determination module 304 is configured to determine an actual use demand of the user according to the voice information of the user and a use demand instruction sent by the user.

[0172] The earphone state adjustment module 305 is configured to obtain an earphone use habit of the user corresponding to the current environment state, and adjust a state of the earphone according to the earphone use habit and the actual use demand.

[0173] Optionally, an earphone case to which the earphone belongs is linked to a cloud; the cloud comprises an audio information library; and the audio source determination module 302 is specifically configured to:

[0174] extract a sound signal of the environment audio information and determine a frequency of the sound signal;

[0175] determine an audio source corresponding to the frequency according to the frequency, so as to determine the audio source corresponding to the environment audio information;

[0176] The current environment state determination module 303 is specifically configured to:

[0177] send the environment audio information to the cloud, and receive a matching result sent by the cloud according to the environment audio information; the matching result is obtained by matching the environment audio information with audio information in the audio information library by the cloud;

[0178] receive the matching result, and determine the current environment state corresponding to the environment audio information according to the matching result, the audio source and the environment audio information.

[0179] Optionally, the cloud comprises a preset scene text library; the earphone is connected to a mobile device corresponding to the user; and the earphone memory control device 300 further comprises a sound information extraction module 306, configured to:

[0180] determine character voice information in the environment audio information;

[0181] determine whether the character voice information comprises voice information of the user;

[0182] when the character voice information comprises the voice information of the user, extract the voice information of the user from the character voice information;

[0183] The actual use demand determination module 304 is specifically configured to:

[0184] recognize voice information of the user, and determine text content corresponding to the voice information;

[0185] send the text content to the cloud, and receive a matching result sent by the cloud according to the text content; the matching result is obtained by matching the text content with text content in a preset scene text library by the cloud;

[0186] determine a scene type to which the text content belongs according to the matching result;

[0187] receive a use demand instruction sent by a mobile device corresponding to the user, and determine an actual use demand of the user according to the scene type, the voice information of the user, and the use demand instruction.

[0188] Optionally, the cloud includes a communication keyword library; the character voice information includes the voice information of the user and surrounding character voice information; the earphone memory control device 300 further includes a first use demand determination module 307, configured to:

[0189] extract the surrounding character voice information from the character voice information;

[0190] send the surrounding character voice information to the cloud, and receive a comparison result sent by the cloud according to the surrounding character voice information; the comparison result is obtained by comparing an information keyword in the surrounding character voice information with a preset communication keyword in the communication keyword library by the cloud;

[0191] determine a first use demand of the user according to the comparison result;

[0192] The actual use demand determination module 304 is specifically configured to:

[0193] receive a use demand instruction sent by a mobile device corresponding to the user, and determine a second use demand of the user;

[0194] determine a third use demand of the user according to the scene type corresponding to the text content;

[0195] determine the actual use demand of the user according to the first use demand, the second use demand, and the third use demand.

[0196] Optionally, the earphone state adjustment module 305 is specifically configured to:

[0197] generate an earphone state adjustment scheme according to a preset adjustment priority corresponding to the actual use demand and the current environment state;

[0198] According to the earphone state adjustment scheme and the earphone use habit of the user corresponding to the current environment state, the state of the earphone is adjusted.

[0199] Optionally, the cloud comprises a historical control information library; the historical control information library comprises historical environment state information and a control mode of the earphone corresponding to the historical environment state information; the earphone memory control device 300 further comprises a use habit determination model utilization module 308 configured to:

[0200] retrieve the historical environment state information and the control mode of the earphone corresponding to the historical environment state information from the historical control information library to generate training sample data;

[0201] train a use habit determination model based on the training sample data to obtain a trained use habit determination model;

[0202] determine the earphone use habit of the user corresponding to the current environment state based on the trained use habit determination model and current environment information corresponding to the current environment state.

[0203] Optionally, the earphone comprises a microphone; the earphone memory control device 300 further comprises an environment audio information acquisition module 309 configured to:

[0204] detect whether the earphone is connected to a mobile device corresponding to the user in real time;

[0205] when the earphone is in a connected state with the mobile device, start the microphone to control the microphone to acquire current environment audio information;

[0206] receive the current environment audio information; the environment audio information comprises voice information of the user, and comprises:

[0207] receive the current environment audio information input by the microphone; the environment audio information comprises voice information of the user.

[0208] The device of the embodiment can be used to execute the method of any of the above embodiments, and has similar implementation principles and technical effects, which will not be described here.

[0209] Figure 4 A structural schematic diagram of an electronic device provided by an embodiment of the present application is shown in FIG. 4. Figure 4 The electronic device 400 of the embodiment can comprise a memory 401 and a processor 402.

[0210] The memory 401 stores a computer program capable of being loaded and executed by the processor 402 to execute the method in the above embodiments.

[0211] The processor 402 and the memory 401 are connected, for example, through a bus.

[0212] Optionally, the electronic device 400 can further include a transceiver. It should be noted that the transceiver in actual application is not limited to one, and the structure of the electronic device 400 does not constitute a limitation to the embodiments of the present application.

[0213] The processor 402 can be a CPU (Central Processing Unit, central processor), a general-purpose processor, a DSP (Digital Signal Processor, data signal processor), an ASIC (Application Specific Integrated Circuit, application specific integrated circuit), an FPGA (Field Programmable Gate Array, field programmable gate array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logical blocks, modules and circuits described in combination with the disclosure of the present application. The processor 402 can also be a combination of computing functions, such as one or more microprocessor combinations, combinations of DSP and microprocessor, etc.

[0214] The bus can include a channel for transmitting information between the above-mentioned components. The bus can be a PCI (Peripheral Component Interconnect, peripheral component interconnect) bus or an EISA (Extended Industry Standard Architecture, extended industry standard architecture) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the convenience of representation, only one thick line is shown in the figure, but it does not mean that there is only one bus or only one type of bus.

[0215] The memory 401 can be a ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, a RAM (Random Access Memory) or other type of dynamic storage device that can store information and instructions, an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited thereto.

[0216] The memory 401 is used to store application program codes for implementing the scheme of the present application, and is controlled by the processor 402 to perform. The processor 402 is used to execute the application program codes stored in the memory 401 to realize the content shown in the foregoing method embodiments.

[0217] The electronic device includes, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (Personal Digital Assistant), a PAD (Tablet Personal Computer), a PMP (Portable Multimedia Player), a vehicle terminal (for example, a vehicle navigation terminal), and the like, and a fixed terminal such as a digital TV, a desktop computer, and the like. It can also be a server or the like. Figure 4 The electronic device shown is only an example and should not impose any limitation on the functions and use range of the embodiments of the present application.

[0218] The electronic device of the embodiments can be used to execute the method of any of the foregoing embodiments, and has similar implementation principles and technical effects, which will not be described herein.

[0219] The present application also provides a computer readable storage medium storing a computer program capable of being loaded and executed by a processor to perform the method in the foregoing embodiments.

[0220] Those skilled in the art can understand that all or part of the steps of the foregoing method embodiments can be completed by program instruction related hardware. The foregoing program can be stored in a computer readable storage medium. When the program is executed, the steps of the foregoing method embodiments are executed, and the foregoing storage medium includes a ROM, a RAM, a magnetic disk or an optical disk, and various storage media that can store program codes.

Claims

1. A method for controlling headphone memory, characterized in that, include: Receive current ambient audio information; the ambient audio information includes the user's voice information; Analyze the environmental audio information to determine the audio source corresponding to the environmental audio information; Based on the audio information database, the current environmental state corresponding to the environmental audio information is determined according to the audio source and the environmental audio information; Based on the user's voice information and the user's usage request instructions, determine the user's actual usage needs; The system obtains the user's headphone usage habits corresponding to the current environmental state, and adjusts the headphone state according to the headphone usage habits and actual usage needs. The earphone charging case is linked to the cloud; the cloud includes an audio information database; the analysis of the environmental audio information to determine the audio source corresponding to the environmental audio information includes: Extract the sound signal from the environmental audio information and determine the frequency of the sound signal; Based on the frequency, determine the audio source corresponding to the frequency, and thus determine the audio source corresponding to the environmental audio information; The step of determining the current environmental state corresponding to the environmental audio information based on the audio information database, according to the audio source and the environmental audio information, includes: The ambient audio information is sent to the cloud, and the matching result sent by the cloud based on the ambient audio information is received; the matching result is obtained by the cloud matching the ambient audio information with the audio information in the audio information database. Receive the matching result, and determine the current environmental state corresponding to the environmental audio information based on the matching result, the audio source, and the environmental audio information.

2. The method according to claim 1, characterized in that, The cloud includes a preset scene text library; the earphones are connected to the user's corresponding mobile device; the method further includes: Determine the human voice information in the environmental audio information; Determine whether the voice information of the person includes the voice information of the user; If included, the user's voice information is extracted from the person's voice information; The step of determining the user's actual usage needs based on the user's voice information and the user's usage request instructions includes: Identify the user's voice information and determine the text content corresponding to the voice information; The text content is sent to the cloud, and the matching result sent by the cloud based on the text content is received; the matching result is obtained by the cloud matching the text content with the text content in the preset scene text library; The scene type to which the text content belongs is determined based on the matching results; The system receives a usage request instruction sent by the user's corresponding mobile device, and determines the user's actual usage request based on the scenario type, the user's voice information, and the usage request instruction.

3. The method according to claim 2, characterized in that, The cloud includes a communication keyword database; the voice information includes the user's voice information and the voice information of surrounding people; the method further includes: Extract the surrounding people's voice information from the person's voice information; The surrounding voice information is sent to the cloud, and a comparison result is received from the cloud based on the surrounding voice information. The comparison result is obtained by the cloud comparing information keywords in the surrounding voice information with preset communication keywords in the communication keyword library. The user's primary usage requirement is determined based on the comparison results. The step of receiving the usage request instruction sent by the user's corresponding mobile device, and determining the user's actual usage needs based on the scenario type, the user's voice information, and the usage request instruction, includes: Receive the usage request instruction sent by the user's corresponding mobile device, and determine the user's second usage request; Based on the scenario type corresponding to the text content, determine the user's third usage requirement; Based on the first usage requirement, the second usage requirement, and the third usage requirement, the user's actual usage requirements are determined.

4. The method according to claim 3, characterized in that, The step of obtaining the user's headphone usage habits corresponding to the current environmental state, and adjusting the headphone state according to the headphone usage habits and actual usage needs, includes: Based on the actual usage requirements and the preset adjustment priority corresponding to the current environmental state, a headphone state adjustment scheme is generated; The headphone status is adjusted according to the headphone status adjustment scheme and the user's headphone usage habits corresponding to the current environmental state.

5. The method according to claim 1, characterized in that, The cloud includes a historical control information database; the historical control information database includes historical environmental status information and the control mode of the headphones corresponding to the historical environmental status information; the method further includes: Retrieve the historical environmental state information and the corresponding control mode of the headphones from the historical control information database to generate training sample data; Based on the training sample data, the usage habit determination model is trained to obtain the trained usage habit determination model. Based on the trained usage habits, the model and the current environment information corresponding to the current environment state are determined, and the user's headphone usage habits corresponding to the current environment state are determined.

6. The method according to any one of claims 1-5, characterized in that, The earphone includes a microphone; the method further includes: Real-time detection of whether the earphones are connected to the user's corresponding mobile device; If the headphones are connected to the mobile device, the microphone is turned on to control the microphone to collect current ambient audio information; The receiving of current ambient audio information; the ambient audio information includes the user's voice information, including: Receive the current ambient audio information recorded by the microphone; the ambient audio information includes the user's voice information.

7. A headphone memory control device, characterized in that, include: An environmental audio information receiving module is used to receive current environmental audio information, including the user's voice information. An audio source determination module is used to analyze the environmental audio information and determine the audio source corresponding to the environmental audio information. The current environment state determination module is used to determine the current environment state corresponding to the environmental audio information based on the audio information library, according to the audio source and the environmental audio information; The actual usage needs determination module is used to determine the user's actual usage needs based on the user's voice information and the user's usage needs instructions. The headphone status adjustment module is used to obtain the user's headphone usage habits corresponding to the current environmental status, and adjust the headphone status according to the headphone usage habits and the actual usage needs; The earphone charging case is linked to the cloud; the cloud includes an audio information database; the audio source determination module is specifically used for: Extract the sound signal from the environmental audio information and determine the frequency of the sound signal; Based on the frequency, determine the audio source corresponding to the frequency, and thus determine the environmental audio information corresponding to the frequency. Audio source; The current environment state determination module is specifically used for: The environmental audio information is sent to the cloud, and the cloud sends data based on the environmental audio information. The matching result sent; the matching result is the environmental audio information and the audio in the audio information database sent by the cloud. Obtained by matching information; Receive the matching result, and determine the audio source and environmental audio information based on the matching result, the audio source, and the environmental audio information. Determine the current environmental state corresponding to the environmental audio information.

8. An electronic device, characterized in that, include: Memory and processor; The memory is used to store program instructions; The processor is configured to call and execute program instructions in the memory to perform an earphone memory control method as described in any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program; when the computer program is executed by a processor, it implements a headphone memory control method as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Volume setting method and device of Bluetooth headset and electronic equipment

    CN112073865A