CN114040293B - Earphone control method and device, earphone and computer readable storage medium - Google Patents

Earphone control method and device, earphone and computer readable storage medium Download PDF

Info

Publication number
CN114040293B
CN114040293B CN202111428702.6A CN202111428702A CN114040293B CN 114040293 B CN114040293 B CN 114040293B CN 202111428702 A CN202111428702 A CN 202111428702A CN 114040293 B CN114040293 B CN 114040293B
Authority
CN
China
Prior art keywords
audio
preset
waveform
information
earphone
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111428702.6A
Other languages
Chinese (zh)
Other versions
CN114040293A (en
Inventor
马兰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202111428702.6A priority Critical patent/CN114040293B/en
Publication of CN114040293A publication Critical patent/CN114040293A/en
Application granted granted Critical
Publication of CN114040293B publication Critical patent/CN114040293B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L25/00Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
    • G10L25/48Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use
    • G10L25/51Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use for comparison or discrimination
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1091Details not provided for in groups H04R1/1008 - H04R1/1083

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Headphones And Earphones (AREA)

Abstract

The invention discloses an earphone control method, which comprises the following steps: acquiring first acquired audio information based on preset first waveform audio and second acquired audio information based on preset second waveform audio; acquiring fitting state information of the earphone according to the first acquired audio information and the second acquired audio information; and executing corresponding preset reminding operation according to the fitting state information. The invention also discloses a device, a headset and a computer readable storage medium. The invention improves the accuracy of detecting the wearing fit degree of the earphone.

Description

Earphone control method and device, earphone and computer readable storage medium
Technical Field
The present invention relates to the field of headphones, and in particular, to a method and apparatus for controlling headphones, a headphone, and a computer readable storage medium.
Background
Noise reduction earphone can reduce environmental noise, can improve user's listening experience moreover, consequently, noise reduction earphone is popular among the vast consumer. However, because the ear structures and the use habits of the users are different, the users can wear the earphone in different wearing modes, and the wearing fit degree of the earphone is poor due to incorrect or bad wearing modes, so that the noise reduction effect of the earphone is affected. Currently, methods for detecting wearing fit of an earphone on the market include a method for determining wearing fit by detecting a capacitance value of a human ear in contact with the earphone through a capacitance sensor, a method for determining wearing fit by detecting a distance between the earphone and the human ear through an infrared sensor, and the like. However, the accuracy of the detection of the wearing fit of the earphone is poor.
The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present invention and is not intended to represent an admission that the foregoing is prior art.
Disclosure of Invention
The invention mainly aims to provide an earphone control method, which aims to solve the technical problem of poor accuracy of earphone wearing fit detection.
In order to achieve the above object, the present invention provides an earphone control method, including the steps of:
Acquiring first acquired audio information based on preset first waveform audio and second acquired audio information based on preset second waveform audio;
Acquiring fitting state information of the earphone according to the first acquired audio information and the second acquired audio information;
and executing corresponding preset reminding operation according to the fitting state information.
Preferably, the step of acquiring the first acquired audio information based on the preset first waveform audio and the second acquired audio information based on the preset second waveform audio includes, before:
Acquiring wearing state information of the earphone, and judging whether the wearing state information accords with preset wearing conditions or not;
if the wearing condition is met, executing the steps of: acquiring first acquired audio information based on preset first waveform audio and second acquired audio information based on preset second waveform audio;
if the preset wearing conditions are not met, outputting preset prompt information.
Preferably, the step of acquiring the first acquired audio information based on the preset first waveform audio and the second acquired audio information based on the preset second waveform audio includes:
Outputting preset first waveform audio, and collecting the transmitted preset first waveform audio as first collected audio information;
Outputting preset second waveform audio, and collecting the transmitted preset second waveform audio as second collected audio information, wherein the preset second waveform audio is the preset first waveform audio subjected to delay processing.
Preferably, the step of obtaining the fitting state information of the earphone according to the first collected audio information and the second collected audio information includes:
generating first audio difference information according to the first acquired audio information and preset first waveform audio;
generating second audio difference information according to the second acquired audio information and preset second waveform audio;
And obtaining the attaching state information of the earphone according to the first audio difference information and the second audio difference information.
Preferably, the first audio difference information includes a first waveform change value and a first energy loss value, and the step of generating the first audio difference information according to the first collected audio information and a first preset test audio includes:
Filtering the first acquired audio information and preset first waveform audio to obtain a first waveform change value and a first energy loss value;
the second audio difference information includes a second waveform change value and a second energy loss value, and the step of generating the second audio difference information according to the second collected audio information and a second preset test audio includes:
and filtering the second acquired audio information and preset second waveform audio to obtain a second waveform change value and a second energy loss value.
Preferably, the step of obtaining the fitting state information of the earphone according to the first audio difference information and the second audio difference information includes:
judging whether the first waveform change value is in a first preset waveform change range or not;
if the first energy loss value is within the first preset waveform change range, judging whether the first energy loss value is within the first preset energy loss range or not;
if the second waveform variation value is within the first preset energy loss range, judging whether the second waveform variation value is within a second preset waveform variation range or not;
If the second energy loss value is within the second preset waveform change range, judging whether the second energy loss value is within the second preset energy loss range or not;
and if the energy loss is within the second preset energy loss range, the attaching state information of the earphone is in a normal attaching state.
Preferably, the step of executing the corresponding preset reminding operation according to the fitting state information includes:
judging whether the laminating state information is in a normal laminating state or not;
And if the bonding state information is not the normal bonding state, outputting corresponding preset prompt information.
In addition, to achieve the above object, the present invention also provides an earphone control device, including:
The acquisition module is used for acquiring first acquired audio information based on preset first waveform audio and second acquired audio information based on preset second waveform audio;
The detection module is used for obtaining the attaching state information of the earphone according to the first acquired audio information and the second acquired audio information;
and the reminding module is used for executing corresponding preset reminding operation according to the fitting state information.
In addition, to achieve the above object, the present invention also provides an earphone including: memory, a processor and a computer program stored on the memory and executable on the processor, which when executed by the processor, performs the steps of the earphone control method according to any one of the preceding claims.
In addition, to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a headphone control program which, when executed by a processor, implements the steps of the headphone control method as set forth in any one of the above.
According to the earphone control method provided by the invention, in the first embodiment of the invention, the first acquired audio information is obtained by acquiring the feedback sound wave of the preset first waveform audio in the cavity formed by the earphone and the auditory canal, and the second acquired audio information is obtained by acquiring the feedback sound wave of the preset second waveform audio in the cavity formed by the earphone and the auditory canal. Then, according to the first collected audio information, the sound wave leakage condition of the preset first waveform audio can be obtained, and meanwhile, according to the second collected audio information, the sound wave leakage condition of the preset second waveform audio can be obtained, so that the sound wave leakage conditions of different waveform test audios can be obtained, and further, the fitting state information of the earphone can be obtained according to the sound wave leakage conditions of different waveform test audios. And executing corresponding preset reminding operation according to the fitting state information, so that a user is prompted to wear the earphone again or the wearing posture of the earphone is adjusted under the condition that the matching degree of the earphone is abnormal. According to the invention, the sound wave leakage condition of the audio frequency is tested by acquiring different waveforms, so that the accuracy of detecting the wearing fit degree of the earphone is further improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application. In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a schematic flow chart of a first embodiment of an earphone control method according to the present invention;
FIG. 2 is a schematic diagram of waveforms involved in an embodiment of the present invention;
FIG. 3 is a flowchart of a second embodiment of the earphone control method of the present invention;
FIG. 4 is a flowchart of a third embodiment of the earphone control method according to the present invention;
fig. 5 is a schematic structural diagram of an earphone control device according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a headset structure of a hardware operating environment according to an embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present application will be further described with reference to the accompanying drawings, in conjunction with the embodiments. Specific embodiments of the present application have been shown by way of the above drawings and will be described in more detail below. The drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but rather to illustrate the inventive concepts to those skilled in the art by reference to the specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the element defined by the phrase "comprising one … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element, and furthermore, elements having the same name in different embodiments of the application may have the same meaning or may have different meanings, the particular meaning of which is to be determined by its interpretation in this particular embodiment or by further combining the context of this particular embodiment.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope herein. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "in response to a determination" depending on the context. Furthermore, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context indicates otherwise. It will be further understood that the terms "comprises," "comprising," "includes," and/or "including" specify the presence of stated features, steps, operations, elements, components, items, categories, and/or groups, but do not preclude the presence, presence or addition of one or more other features, steps, operations, elements, components, items, categories, and/or groups. The terms "or", "and/or", "including at least one of", and the like, as used herein, may be construed as inclusive, or mean any one or any combination. For example, "including at least one of: A. b, C "means" any one of the following: a, A is as follows; b, a step of preparing a composite material; c, performing operation; a and B; a and C; b and C; a and B and C ", again as examples," A, B or C "or" A, B and/or C "means" any of the following: a, A is as follows; b, a step of preparing a composite material; c, performing operation; a and B; a and C; b and C; a and B and C). An exception to this definition will occur only when a combination of elements, functions, steps or operations are in some way inherently mutually exclusive.
It should be understood that, although the steps in the flowcharts in the embodiments of the present application are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited in order and may be performed in other orders, unless explicitly stated herein. Moreover, at least some of the steps in the figures may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, the order of their execution not necessarily occurring in sequence, but may be performed alternately or alternately with other steps or at least a portion of the other steps or stages.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrase "if determined" or "if detected (stated condition or event)" may be interpreted as "when determined" or "in response to determination" or "when detected (stated condition or event)" or "in response to detection (stated condition or event), depending on the context.
It should be noted that, in this document, step numbers such as S100 and S200 are adopted, and the purpose of the present application is to more clearly and briefly describe the corresponding content, and not to constitute a substantial limitation on the sequence, and those skilled in the art may execute S200 first and then execute S100 when implementing the present application, which is within the scope of protection of the present application.
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
In the following description, suffixes such as "module", "part" or "unit" for representing elements are used only for facilitating the description of the present application, and have no specific meaning per se. Thus, "module," "component," or "unit" may be used in combination.
Referring to fig. 1, a first embodiment of the present invention provides an earphone control method, which includes:
Step S100, acquiring first acquired audio information based on preset first waveform audio and second acquired audio information based on preset second waveform audio;
Specifically, the preset first waveform audio is test audio formed by superposition construction of sound waves of a plurality of preset frequency bands. The preset second waveform audio is a test audio different from the acoustic waveform of the preset first waveform audio. The first collected audio information is obtained by collecting feedback sound waves of the preset first waveform audio in a cavity formed by the earphone and the auditory canal, and the second collected audio information is obtained by collecting feedback sound waves of the preset second waveform audio in a cavity formed by the earphone and the auditory canal.
Still further, the step S100 further includes the steps of:
step S110, outputting preset first waveform audio, and collecting the transmitted preset first waveform audio as first collected audio information;
step S111, outputting preset second waveform audio, and collecting the transmitted preset second waveform audio as second collected audio information, wherein the preset second waveform audio is the preset first waveform audio subjected to delay processing.
Specifically, as shown in fig. 2, fig. 2 is a schematic waveform diagram related to an embodiment of the present invention. The abscissa in the waveform diagram is time, the ordinate is amplitude, the dotted line is visualized preset first waveform audio, the solid line is visualized preset second waveform audio, and the preset second waveform audio is delay processed preset first waveform audio. By performing delay processing on the preset first waveform audio, preset second waveform audio with a difference from the waveform of the first waveform audio can be obtained. And outputting preset first waveform audio through a preset audio output device, and collecting the preset first waveform audio transmitted in a cavity formed by the earphone and the auditory canal through a preset pickup device as first collected audio information. And outputting preset second waveform audio through a preset audio output device, and collecting the preset second waveform audio transmitted in a cavity formed by the earphone and the auditory canal through a preset pickup device as first collected audio information.
Step S200, according to the first collected audio information and the second collected audio information, attaching state information of the earphone is obtained;
Specifically, according to the first collected audio information, the sound wave leakage condition of the preset first waveform audio can be obtained, meanwhile, according to the second collected audio information, the sound wave leakage condition of the preset second waveform audio can be obtained, therefore, the sound wave leakage conditions of different waveform test audios can be obtained, and further, according to the sound wave leakage conditions of different waveform test audios, whether the sealing performance of a cavity formed by the earphone and the auditory canal is good or not can be determined, and therefore the fitting state information of the earphone is obtained.
And step S300, executing corresponding preset reminding operation according to the fitting state information.
Specifically, the lamination state information may include a normal lamination state and an abnormal lamination state, and corresponding prompt information may be output according to different lamination states. The outputting of the corresponding prompt information can be realized in the forms of playing audio and/or sending the prompt information to the user terminal and the like. Furthermore, the lamination state information may further include a plurality of preset lamination levels, and corresponding prompt information is output according to different lamination levels.
Still further, the step S300 further includes the steps of:
Step S310, judging whether the bonding state information is in a normal bonding state or not;
step S320, if the bonding state information is not the normal bonding state, outputting a corresponding preset prompting message.
Specifically, judging whether the laminating state information is in a normal laminating state or not; if the fitting state information is not the normal fitting state, outputting corresponding preset prompt information, for example, outputting corresponding preset audio "normal wearing of the earphone" in the normal fitting state, and outputting corresponding preset audio "abnormal wearing of the earphone" in the abnormal fitting state, and requesting to re-wear.
In the first embodiment of the invention, the first collected audio information is obtained by collecting the feedback sound wave of the preset first waveform audio in the cavity formed by the earphone and the auditory canal, and the second collected audio information is obtained by collecting the feedback sound wave of the preset second waveform audio in the cavity formed by the earphone and the auditory canal. Then, according to the first collected audio information, the sound wave leakage condition of the preset first waveform audio can be obtained, and meanwhile, according to the second collected audio information, the sound wave leakage condition of the preset second waveform audio can be obtained, so that the sound wave leakage conditions of different waveform test audios can be obtained, and further, the fitting state information of the earphone can be obtained according to the sound wave leakage conditions of different waveform test audios. And executing corresponding preset reminding operation according to the fitting state information, so that a user is prompted to wear the earphone again or the wearing posture of the earphone is adjusted under the condition that the matching degree of the earphone is abnormal. In this embodiment, by acquiring the acoustic leakage conditions of the test audios with different waveforms, the accuracy of detecting the wearing fit of the earphone is further improved.
Further, referring to fig. 3, a second embodiment of the present invention provides a headset control method, based on the embodiment shown in fig. 1, the following steps are included before step S100:
step S120, acquiring wearing state information of the earphone, and judging whether the wearing state information accords with preset wearing conditions or not;
step S121, if the preset wearing condition is met, executing the steps of: acquiring first acquired audio information based on preset first waveform audio and second acquired audio information based on preset second waveform audio;
step S122, if the preset wearing conditions are not met, outputting preset prompt information.
Specifically, the preset wearing conditions may set corresponding conditions according to the selected sensor, so as to determine whether the earphone has a risk of falling off. The wearing state information of the earphone may also be acquired by the sensor before step S100. The sensor may be a motion sensor (e.g., a three-axis acceleration sensor), an optical sensor, a capacitive sensor, a pressure sensor, or the like. And judging whether the wearing condition meets the preset wearing condition or not according to the data acquired by the sensor. Taking a triaxial acceleration sensor as an example, the wearing state information of the earphone, such as whether the earphone is correctly worn at the position of the ear or is in a falling state, can be determined through the acceleration of the triaxial acceleration sensor in the x/y/z axis and each axis direction. If the wearing angle of the earphone is obtained according to the data of the triaxial acceleration sensor, judging whether the wearing angle exceeds a preset wearing angle range. If the wearing angle exceeds the preset wearing angle range, judging that the wearing state information does not accord with the preset wearing condition, and directly outputting corresponding preset prompt information. If the wearing angle does not exceed the preset wearing angle range, the wearing angle meets the preset wearing conditions, and step S100 is executed. In this embodiment, obtain the wearing state information of earphone through the sensor, according to wearing state information and confirm whether the earphone can exist the risk that drops rapidly, under the circumstances that exists the risk that drops, can directly remind the user to adjust or wear again the earphone gesture of wearing, and then promoted the efficiency that the ear laminating degree detected.
Further, referring to fig. 4, a third embodiment of the present invention provides a headset control method, based on the embodiment shown in fig. 1, step S200 includes the following steps:
step S210, generating first audio difference information according to the first acquired audio information and preset first waveform audio;
Step S220, generating second audio difference information according to the second acquired audio information and preset second waveform audio;
Step S230, obtaining the fitting state information of the earphone according to the first audio difference information and the second audio difference information.
Specifically, according to the first collected audio information and the preset first waveform audio, the first collected audio information and the first waveform audio are compared to obtain a preset first waveform audio leakage condition, and first audio difference information is generated. And comparing the second acquired audio information with the second waveform audio according to the second acquired audio information and the preset second waveform audio to obtain a preset second waveform audio leakage condition and generate second audio difference information. And further, the tightness of the cavity formed by the earphone and the auditory canal can be known according to the preset first waveform audio leakage condition (first audio difference information) and the preset second waveform audio leakage condition (second audio difference information), so as to obtain the attaching state information of the earphone.
Still further, the first audio difference information includes a first waveform change value and a first energy loss value, and the step S210 includes the steps of:
Step S211, performing filtering processing on the first collected audio information and the preset first waveform audio to obtain a first waveform variation value and a first energy loss value;
The second audio difference information includes a second waveform change value and a second energy loss value, and step S220 includes the steps of:
step S221, performing filtering processing on the second collected audio information and the preset second waveform audio to obtain a second waveform variation value and a second energy loss value.
Specifically, when the sealing performance of the cavity formed by the earphone and the auditory canal is poor, the preset first waveform audio and the preset second waveform audio are leaked, the collected audio information has energy loss and/or waveform change, the energy loss value is the amplitude loss value of the waveform, and the waveform change value is the waveform displacement value. Thus, the first audio difference information includes a first waveform change value and a first energy loss value and the second audio difference information includes a second waveform change value and a second energy loss value. And filtering the first acquired audio information and preset first waveform audio through a filter to obtain a first waveform change value and a first energy loss value. And filtering the second acquired audio information and the preset second waveform audio through a filter to obtain a second waveform change value and a second energy loss value.
Still further, the step S230 includes the steps of:
Step S231, judging whether the first waveform change value is in a first preset waveform change range;
Step S231, if the first energy loss value is within the first preset waveform change range, judging whether the first energy loss value is within the first preset energy loss range;
Step S231, if the second waveform variation value is within the first preset energy loss range, judging whether the second waveform variation value is within the second preset waveform variation range;
step S231, if the second energy loss value is within the second preset waveform variation range, judging whether the second energy loss value is within the second preset energy loss range;
Step S231, if the energy loss is within the second preset energy loss range, the attaching state information of the earphone is a normal attaching state.
Specifically, in a cavity with good sealing performance, the waveform change value and the energy loss value of the corresponding first waveform audio are collected, so that the corresponding first preset waveform change range and the corresponding first preset energy loss range are generated. Similarly, the waveform change value and the energy loss value of the corresponding second waveform audio are collected in the cavity with good sealing performance, so that the corresponding second preset waveform change range and the corresponding second preset energy loss range are generated. When the first waveform change value is in a first preset waveform change range, when the first energy loss value is in a first preset energy loss range, when the second waveform change value is in a second preset waveform change range, and when the second energy loss value is in a second preset energy loss range, the attaching state information of the earphone is in a normal attaching state.
As shown in fig. 5, fig. 5 is a schematic structural diagram of an earphone control device according to an embodiment of the present invention.
The embodiment of the invention also provides an earphone control device, which comprises:
the acquisition module 10 is used for acquiring first acquired audio information based on preset first waveform audio and second acquired audio information based on preset second waveform audio;
the detection module 20 is configured to obtain fitting state information of the earphone according to the first collected audio information and the second collected audio information;
And the reminding module 30 is used for executing corresponding preset reminding operation according to the fitting state information.
Still further, the earphone control device further includes: a primary screening module 40;
The primary screening module 40 is configured to obtain wearing state information of the earphone, and determine whether the wearing state information meets preset wearing conditions;
the primary screening module 40 is further configured to perform the following steps if the preset wearing condition is met: acquiring first acquired audio information based on preset first waveform audio and second acquired audio information based on preset second waveform audio;
the reminding module 30 is further configured to output a preset reminding message if the preset wearing condition is not met.
Still further, the earphone control device further includes:
The acquisition module 10 is further configured to output preset first waveform audio, and acquire the propagated preset first waveform audio as first acquired audio information;
The acquisition module 10 is further configured to output a preset second waveform audio, and acquire the propagated preset second waveform audio as second acquired audio information, where the preset second waveform audio is a preset first waveform audio that is processed by a delay.
Still further, the earphone control device further includes:
the detection module 20 is further configured to generate first audio difference information according to the first collected audio information and a preset first waveform audio;
The detection module 20 is further configured to generate second audio difference information according to the second collected audio information and a preset second waveform audio;
The detection module 20 is further configured to obtain fitting state information of the earphone according to the first audio difference information and the second audio difference information.
Still further, the first audio difference information includes a first waveform change value and a first energy loss value, the second audio difference information includes a second waveform change value and a second energy loss value, and the headphone control apparatus further includes:
The detection module 20 is further configured to perform filtering processing on the first collected audio information and a preset first waveform audio to obtain a first waveform variation value and a first energy loss value;
The detection module 20 is further configured to perform filtering processing on the second collected audio information and the preset second waveform audio to obtain a second waveform variation value and a second energy loss value.
Still further, the earphone control device further includes:
The detection module 20 is further configured to determine whether the first waveform variation value is within a first preset waveform variation range;
The detection module 20 is further configured to determine whether the first energy loss value is within a first preset energy loss range if the first energy loss value is within the first preset waveform variation range;
the detection module 20 is further configured to determine whether the second waveform variation value is within a second preset waveform variation range if the second waveform variation value is within the first preset energy loss range;
the detection module 20 is further configured to determine whether the second energy loss value is within a second preset energy loss range if the second energy loss value is within the second preset waveform variation range;
The detection module 20 is further configured to, if the detected state information is within the second preset energy loss range, determine that the attaching state information of the earphone is a normal attaching state.
Still further, the earphone control device further includes:
the reminding module 30 is further configured to determine whether the bonding state information is a normal bonding state;
The reminding module 30 is further configured to output corresponding preset reminding information if the bonding state information is not the normal bonding state.
As shown in fig. 6, fig. 6 is a schematic diagram of an earphone structure of a hardware running environment according to an embodiment of the present invention.
The embodiment of the invention also provides an earphone which can be a wireless earphone (such as an in-ear earphone, a half-in-ear earphone or a headphone TWS earphone and the like) or a wired earphone.
As shown in fig. 6, the earphone may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Optionally, the headset may further include an audio output module, an audio acquisition module, a sensor, a WiFi module, a bluetooth module, a control module, and the like. Among other sensors, such as light sensors, motion sensors, and other sensors. In particular, the light sensor may include an ambient light sensor and a proximity sensor. As one type of motion sensor, a gravitational acceleration sensor can detect the acceleration in all directions (typically three axes), and can detect the gravity and direction when stationary, and can be used for recognizing the gesture of the device, vibration recognition related functions (such as pedometer, knocking) and the like; of course, other sensors such as gyroscopes, barometers, hygrometers, thermometers, optical line sensors, etc. may also be configured, and will not be described in detail herein.
It will be appreciated by those skilled in the art that the earphone structure shown in fig. 6 is not limiting and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 6, an operating system, a network communication module, a user interface module, and a headset control application may be included in the memory 1005, which is a type of computer storage medium.
In the apparatus shown in fig. 6, the processor 1001 may be configured to call a headphone control program stored in the memory 1005, and perform the following operations:
Acquiring first acquired audio information based on preset first waveform audio and second acquired audio information based on preset second waveform audio;
Acquiring fitting state information of the earphone according to the first acquired audio information and the second acquired audio information;
and executing corresponding preset reminding operation according to the fitting state information.
Still further, the processor 1001 may be further configured to invoke the headset control program stored in the memory 1005, and perform the following operations:
Acquiring wearing state information of the earphone, and judging whether the wearing state information accords with preset wearing conditions or not;
if the wearing condition is met, executing the steps of: acquiring first acquired audio information based on preset first waveform audio and second acquired audio information based on preset second waveform audio;
if the preset wearing conditions are not met, outputting preset prompt information.
Still further, the processor 1001 may be further configured to invoke the headset control program stored in the memory 1005, and perform the following operations:
Outputting preset first waveform audio, and collecting the transmitted preset first waveform audio as first collected audio information;
Outputting preset second waveform audio, and collecting the transmitted preset second waveform audio as second collected audio information, wherein the preset second waveform audio is the preset first waveform audio subjected to delay processing.
Still further, the processor 1001 may be further configured to invoke the headset control program stored in the memory 1005, and perform the following operations:
generating first audio difference information according to the first acquired audio information and preset first waveform audio;
generating second audio difference information according to the second acquired audio information and preset second waveform audio;
And obtaining the attaching state information of the earphone according to the first audio difference information and the second audio difference information.
Still further, the first audio difference information includes a first waveform change value and a first energy loss value, the second audio difference information includes a second waveform change value and a second energy loss value, and the processor 1001 may be further configured to call a headphone control program stored in the memory 1005, and perform the following operations:
Filtering the first acquired audio information and preset first waveform audio to obtain a first waveform change value and a first energy loss value;
and filtering the second acquired audio information and preset second waveform audio to obtain a second waveform change value and a second energy loss value.
Still further, the processor 1001 may be further configured to invoke the headset control program stored in the memory 1005, and perform the following operations:
judging whether the first waveform change value is in a first preset waveform change range or not;
if the first energy loss value is within the first preset waveform change range, judging whether the first energy loss value is within the first preset energy loss range or not;
if the second waveform variation value is within the first preset energy loss range, judging whether the second waveform variation value is within a second preset waveform variation range or not;
If the second energy loss value is within the second preset waveform change range, judging whether the second energy loss value is within the second preset energy loss range or not;
and if the energy loss is within the second preset energy loss range, the attaching state information of the earphone is in a normal attaching state.
Still further, the processor 1001 may be further configured to invoke the headset control program stored in the memory 1005, and perform the following operations:
judging whether the laminating state information is in a normal laminating state or not;
And if the bonding state information is not the normal bonding state, outputting corresponding preset prompt information.
In addition, the embodiment of the invention also provides a computer storage medium.
The computer storage medium has stored thereon a computer program which, when executed by a processor, implements the operations in the earphone control method provided by the above embodiment.
It can be understood that the above scenario is merely an example, and does not constitute a limitation on the application scenario of the technical solution provided by the embodiment of the present application, and the technical solution of the present application may also be applied to other scenarios. For example, as one of ordinary skill in the art can know, with the evolution of the system architecture and the appearance of new service scenarios, the technical solution provided by the embodiment of the present application is also applicable to similar technical problems.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs.
The units in the device of the embodiment of the application can be combined, divided and deleted according to actual needs.
In the present application, the same or similar term concept, technical solution and/or application scenario description will be generally described in detail only when first appearing and then repeatedly appearing, and for brevity, the description will not be repeated generally, and in understanding the present application technical solution and the like, reference may be made to the previous related detailed description thereof for the same or similar term concept, technical solution and/or application scenario description and the like which are not described in detail later.
In the present application, the descriptions of the embodiments are emphasized, and the details or descriptions of the other embodiments may be referred to.
The technical features of the technical scheme of the application can be arbitrarily combined, and all possible combinations of the technical features in the above embodiment are not described for the sake of brevity, however, as long as there is no contradiction between the combinations of the technical features, the application shall be considered as the scope of the description of the application.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, a controlled terminal, or a network device, etc.) to perform the method of each embodiment of the present application.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). Computer readable storage media can be any available media that can be accessed by a computer or data storage devices, such as servers, data centers, etc., that contain an integration of one or more available media. Usable media may be magnetic media (e.g., floppy disks, storage disks, magnetic tape), optical media (e.g., DVD), or semiconductor media (e.g., solid state storage disk Solid STATE DISK (SSD)), etc.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the application, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (8)

1. A headset control method, characterized in that the headset control method comprises the steps of:
acquiring first acquired audio information based on preset first waveform audio and second acquired audio information based on preset second waveform audio, wherein the first acquired audio information is feedback sound waves of the preset first waveform audio in a cavity formed by the earphone and the auditory canal, and the second acquired audio information is feedback sound waves of the preset second waveform audio in the cavity formed by the earphone and the auditory canal;
Acquiring fitting state information of the earphone according to the first acquired audio information and the second acquired audio information;
executing corresponding preset reminding operation according to the fitting state information;
The step of acquiring first acquired audio information based on preset first waveform audio and second acquired audio information based on preset second waveform audio comprises the steps of:
Outputting preset first waveform audio, and collecting the transmitted preset first waveform audio as first collected audio information;
outputting preset second waveform audio, and collecting the transmitted preset second waveform audio as second collected audio information, wherein the preset second waveform audio is a preset first waveform audio subjected to delay processing;
the step of obtaining the fitting state information of the earphone according to the first collected audio information and the second collected audio information comprises the following steps:
generating first audio difference information according to the first acquired audio information and preset first waveform audio;
generating second audio difference information according to the second acquired audio information and preset second waveform audio;
Obtaining fitting state information of the earphone according to the first audio difference information and the second audio difference information;
the first audio difference information comprises a first waveform change value and a first energy loss value, the second audio difference information comprises a second waveform change value and a second energy loss value, and the step of obtaining the fitting state information of the earphone according to the first audio difference information and the second audio difference information comprises the following steps:
When the first waveform change value is in a first preset waveform change range, the first energy loss value is in a first preset energy loss range, the second waveform change value is in a second preset waveform change range, and the second energy loss value is in a second preset energy loss range, the attaching state information of the earphone is a normal attaching state.
2. The method of controlling headphones as recited in claim 1, wherein the step of acquiring first captured audio information based on the preset first waveform audio and second captured audio information based on the preset second waveform audio is preceded by:
Acquiring wearing state information of the earphone, and judging whether the wearing state information accords with preset wearing conditions or not;
if the wearing condition is met, executing the steps of: acquiring first acquired audio information based on preset first waveform audio and second acquired audio information based on preset second waveform audio;
if the preset wearing conditions are not met, outputting preset prompt information.
3. The method of claim 1, wherein the step of generating first audio difference information from the first collected audio information and a first preset test audio comprises:
Filtering the first acquired audio information and preset first waveform audio to obtain a first waveform change value and a first energy loss value;
the step of generating second audio difference information according to the second collected audio information and a second preset test audio includes:
and filtering the second acquired audio information and preset second waveform audio to obtain a second waveform change value and a second energy loss value.
4. The method of controlling headphones as recited in claim 3, wherein the step of obtaining the fitting state information of the headphones based on the first audio difference information and the second audio difference information comprises:
judging whether the first waveform change value is in a first preset waveform change range or not;
if the first energy loss value is within the first preset waveform change range, judging whether the first energy loss value is within the first preset energy loss range or not;
if the second waveform variation value is within the first preset energy loss range, judging whether the second waveform variation value is within a second preset waveform variation range or not;
If the second energy loss value is within the second preset waveform change range, judging whether the second energy loss value is within the second preset energy loss range or not;
and if the energy loss is within the second preset energy loss range, the attaching state information of the earphone is in a normal attaching state.
5. The method according to any one of claims 1 to 4, wherein the step of performing a corresponding preset alert operation according to the fitting state information includes:
judging whether the laminating state information is in a normal laminating state or not;
And if the bonding state information is not the normal bonding state, outputting corresponding preset prompt information.
6. An earphone control device, characterized in that the earphone control device comprises:
The acquisition module is used for acquiring first acquired audio information based on preset first waveform audio and second acquired audio information based on preset second waveform audio, wherein the first acquired audio information is feedback sound waves of the preset first waveform audio in a cavity formed by the earphone and the auditory canal, and the second acquired audio information is feedback sound waves of the preset second waveform audio in the cavity formed by the earphone and the auditory canal;
The detection module is used for obtaining the attaching state information of the earphone according to the first acquired audio information and the second acquired audio information;
the reminding module is used for executing corresponding preset reminding operation according to the fitting state information;
The earphone control device further includes:
the acquisition module is also used for outputting preset first waveform audio and acquiring the transmitted preset first waveform audio as first acquired audio information;
The acquisition module is also used for outputting preset second waveform audio and acquiring the transmitted preset second waveform audio as second acquired audio information, wherein the preset second waveform audio is a preset first waveform audio subjected to delay processing;
The earphone control device further includes:
The detection module is also used for generating first audio difference information according to the first acquired audio information and preset first waveform audio;
The detection module is also used for generating second audio difference information according to the second acquired audio information and preset second waveform audio;
The detection module is also used for obtaining the attaching state information of the earphone according to the first audio difference information and the second audio difference information;
the first audio difference information includes a first waveform change value and a first energy loss value, the second audio difference information includes a second waveform change value and a second energy loss value, and the headphone control apparatus further includes:
The detection module is further configured to, when the first waveform change value is within a first preset waveform change range, the first energy loss value is within a first preset energy loss range, the second waveform change value is within a second preset waveform change range, and the second energy loss value is within a second preset energy loss range, and the attaching state information of the earphone is a normal attaching state.
7. An earphone, the earphone comprising: memory, a processor and a computer program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the earphone control method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a headset control program, which when executed by a processor, implements the steps of the headset control method according to any one of claims 1 to 5.
CN202111428702.6A 2021-11-26 2021-11-26 Earphone control method and device, earphone and computer readable storage medium Active CN114040293B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111428702.6A CN114040293B (en) 2021-11-26 2021-11-26 Earphone control method and device, earphone and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111428702.6A CN114040293B (en) 2021-11-26 2021-11-26 Earphone control method and device, earphone and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN114040293A CN114040293A (en) 2022-02-11
CN114040293B true CN114040293B (en) 2024-05-31

Family

ID=80139050

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111428702.6A Active CN114040293B (en) 2021-11-26 2021-11-26 Earphone control method and device, earphone and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114040293B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020055048A1 (en) * 2018-09-13 2020-03-19 Samsung Electronics Co., Ltd. Method for determining earphone wearing state, method for controlling electronic apparatus, and electronic apparatus
CN111780907A (en) * 2020-07-06 2020-10-16 歌尔科技有限公司 Earphone, earphone state monitoring method and device and readable storage medium
CN111818439A (en) * 2020-07-20 2020-10-23 恒玄科技(上海)股份有限公司 Earphone control method, earphone control device and storage medium
CN111988690A (en) * 2019-05-23 2020-11-24 北京小鸟听听科技有限公司 Earphone wearing state detection method and device and earphone
CN113473280A (en) * 2021-05-17 2021-10-01 安克创新科技股份有限公司 Earphone and wearing state detection method thereof
CN113473286A (en) * 2021-06-23 2021-10-01 芯海科技(深圳)股份有限公司 State detection method, earphone and computer readable storage medium
CN113613156A (en) * 2021-04-26 2021-11-05 深圳市冠旭电子股份有限公司 Wearing state detection method and device, headset and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106982403A (en) * 2017-05-25 2017-07-25 深圳市金立通信设备有限公司 Detection method and terminal that a kind of earphone is worn
CN108763901B (en) * 2018-05-28 2020-09-22 Oppo广东移动通信有限公司 Ear print information acquisition method and device, terminal, earphone and readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020055048A1 (en) * 2018-09-13 2020-03-19 Samsung Electronics Co., Ltd. Method for determining earphone wearing state, method for controlling electronic apparatus, and electronic apparatus
CN111988690A (en) * 2019-05-23 2020-11-24 北京小鸟听听科技有限公司 Earphone wearing state detection method and device and earphone
CN111780907A (en) * 2020-07-06 2020-10-16 歌尔科技有限公司 Earphone, earphone state monitoring method and device and readable storage medium
CN111818439A (en) * 2020-07-20 2020-10-23 恒玄科技(上海)股份有限公司 Earphone control method, earphone control device and storage medium
CN113613156A (en) * 2021-04-26 2021-11-05 深圳市冠旭电子股份有限公司 Wearing state detection method and device, headset and storage medium
CN113473280A (en) * 2021-05-17 2021-10-01 安克创新科技股份有限公司 Earphone and wearing state detection method thereof
CN113473286A (en) * 2021-06-23 2021-10-01 芯海科技(深圳)股份有限公司 State detection method, earphone and computer readable storage medium

Also Published As

Publication number Publication date
CN114040293A (en) 2022-02-11

Similar Documents

Publication Publication Date Title
EP3084756B1 (en) Systems and methods for feedback detection
CN112087701B (en) Speaker emulation of microphone for wind detection
CN114071308B (en) Headset self-adaptive tuning method and device, headset and readable storage medium
CN106293601A (en) A kind of audio frequency playing method and device
US20240292144A1 (en) Method and device of active noise reduction for earphone, earphone, and computer readable storage medium
CN118158606B (en) Physiological signal measuring method, earphone device, storage medium and computer product
US10388301B2 (en) Method for processing audio signal and electronic device for supporting the same
CN113613157A (en) Earphone, wearing state detection method and device thereof, and storage medium
US11361781B2 (en) Dynamic beamforming to improve signal-to-noise ratio of signals captured using a head-wearable apparatus
CN114040293B (en) Earphone control method and device, earphone and computer readable storage medium
CN108605191A (en) abnormal sound detection method and device
US11627401B2 (en) Method and apparatus for on ear detect
CN113727233B (en) Earphone prompting method and device, earphone and medium
CN114286258B (en) Current sound cancellation method, device, earphone and computer readable storage medium
CN114264365B (en) Wind noise detection method, device, terminal equipment and storage medium
CN111083250A (en) Mobile terminal and noise reduction method thereof
US20210249030A1 (en) Method for improving sound quality and electronic device using same
CN113766385A (en) Earphone noise reduction method and device
CN109655269B (en) Motor vibration detection method and device
CN114302278A (en) Headset wearing calibration method, electronic device and computer-readable storage medium
CN114071304B (en) Active noise reduction method and device for earphone, earphone and computer readable storage medium
US10623845B1 (en) Acoustic gesture detection for control of a hearable device
CN112954524A (en) Noise reduction method, system, vehicle-mounted terminal and computer storage medium
CN112866877A (en) Speaker control method, speaker control device, electronic apparatus, and storage medium
CN111757211A (en) Noise reduction method, terminal device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant