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

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

Info

Publication number
CN114040293A
CN114040293A CN202111428702.6A CN202111428702A CN114040293A CN 114040293 A CN114040293 A CN 114040293A CN 202111428702 A CN202111428702 A CN 202111428702A CN 114040293 A CN114040293 A CN 114040293A
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.)
Granted
Application number
CN202111428702.6A
Other languages
Chinese (zh)
Other versions
CN114040293B (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

Images

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 collected audio information based on a preset first waveform audio and second collected audio information based on a preset second waveform audio; acquiring the 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 attaching state information. The invention also discloses a device, an earphone and a computer readable storage medium. The invention improves the accuracy of the detection of the wearing fit degree of the earphone.

Description

Earphone control method, earphone control device, earphone and computer readable storage medium
Technical Field
The present invention relates to the field of earphone technologies, and in particular, to an earphone control method and apparatus, an earphone, and a computer-readable storage medium.
Background
The noise reduction earphone can reduce the ambient noise and improve the listening experience of a user, so the noise reduction earphone is more and more favored by consumers. However, because there are differences in the ear structure and the usage habit of the user, the user may have different wearing manners when wearing the headset, and the wearing manner is incorrect or not good, which results in poor fitting degree of the headset, thereby affecting the noise reduction effect of the headset. At present, methods for detecting the wearing fit of earphones in the market include a method for determining the wearing fit by detecting capacitance values of contact between human ears and the earphones through a capacitance sensor, a method for determining the wearing fit by detecting the distance between the earphones and the human ears through an infrared sensor, and the like. However, the above methods are poor in the accuracy of the earphone wearing fitting degree detection.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide an earphone control method, and 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 collected audio information based on a preset first waveform audio and second collected audio information based on a preset second waveform audio;
acquiring the 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 attaching state information.
Preferably, the step of acquiring first captured audio information based on a preset first waveform audio and second captured audio information based on a preset second waveform audio is preceded by:
acquiring wearing state information of the earphone, and judging whether the wearing state information meets a preset wearing condition;
if the preset wearing condition is met, executing the following steps: acquiring first collected audio information based on a preset first waveform audio and second collected audio information based on a preset second waveform audio;
and if the preset wearing condition is not met, outputting preset prompt information.
Preferably, the step of acquiring first captured audio information based on a preset first waveform audio and second captured audio information based on a preset second waveform audio includes:
outputting a preset first waveform audio, and collecting the propagated preset first waveform audio as first collected audio information;
outputting a preset second waveform audio, and collecting the propagated preset second waveform audio as second collected audio information, wherein the preset second waveform audio is a preset first waveform audio subjected to time 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 collected audio information and a preset first waveform audio;
generating second audio difference information according to the second collected audio information and a preset second waveform audio;
and obtaining the fitting 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 collected audio information and a preset first waveform audio to obtain a first waveform change value and a first energy loss value;
the second audio frequency difference information comprises a second waveform change value and a second energy loss value, and the step of generating the second audio frequency difference information according to the second collected audio frequency information and a second preset test audio frequency comprises the following steps:
and filtering the second collected audio information and a preset second waveform audio to obtain a second waveform change value and a second energy loss value.
Preferably, the step of obtaining the fit 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 within a first preset waveform change range or not;
if the first energy loss value is within a first preset waveform variation range, judging whether the first energy loss value is within a first preset energy loss range;
if the second waveform variation value is within a first preset energy loss range, judging whether the second waveform variation value is within a second preset waveform variation range;
if the second energy loss value is within a second preset waveform variation range, judging whether the second energy loss value is within a second preset energy loss range;
and if the earphone is in a 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 attaching state information is in a normal attaching state;
and if the laminating state information is not in a normal laminating 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 a preset first waveform audio and second acquired audio information based on a preset second waveform audio;
the detection module is used for acquiring 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 a headset including: memory, a processor and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the headset control method according to any of the above.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium having a headphone control program stored thereon, the headphone control program implementing the steps of the headphone control method according to any one of the above when executed by a processor.
According to the earphone control method provided by the invention, in the first embodiment of the invention, 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 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, thereby prompting the user to wear the earphone again or adjusting the wearing posture of the earphone under the condition that the earphone fitting degree is abnormal. According to the invention, the sound wave leakage condition of different waveform test audios is obtained, 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 present 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 needed to be used in the description of the embodiments will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flow chart of a first embodiment of a headphone 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 illustrating a second embodiment of a headset controlling method according to the present invention;
fig. 4 is a flowchart illustrating a headset controlling method according to a third embodiment of 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 in a hardware operating environment according to an embodiment of the present invention.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings. With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended 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 recitation of an element by the phrase "comprising an … …" does not exclude the presence of additional like elements in the process, method, article, or apparatus that comprises the element, and further, where similarly-named elements, features, or elements in different embodiments of the disclosure may have the same meaning, or may have different meanings, that particular meaning should be determined by their interpretation in the embodiment or further by context with the embodiment.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to 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 "when … …" or "in response to a determination", depending on the context. Also, 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," when used in this specification, specify the presence of stated features, steps, operations, elements, components, items, species, and/or groups, but do not preclude the presence, or addition of one or more other features, steps, operations, elements, components, species, and/or groups thereof. The terms "or," "and/or," "including at least one of the following," and the like, as used herein, are to be construed as inclusive or mean any one or any combination. For example, "includes at least one of: A. b, C "means" any of the following: a; b; c; a and B; a and C; b and C; a and B and C ", again for example," A, B or C "or" A, B and/or C "means" any of the following: a; b; c; 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 inherently mutually exclusive in some way.
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, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown 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 multiple stages that are not necessarily performed at the same time, but may be performed at different times, in different orders, and may be performed alternately or at least partially with respect to other steps or sub-steps of other steps.
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 phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
It should be noted that, step numbers such as S100 and S200 are used herein for the purpose of more clearly and briefly describing the corresponding contents, and do not constitute a substantial limitation on the sequence, and those skilled in the art may perform S200 first and then S100 in the specific implementation, but these should be within the protection scope of the present application.
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for the convenience of description of the present application, and have no specific meaning in themselves. Thus, "module", "component" or "unit" may be used mixedly.
Referring to fig. 1, a first embodiment of the present invention provides an earphone control method including:
step S100, acquiring first collected audio information based on a preset first waveform audio and second collected audio information based on a preset second waveform audio;
specifically, the preset first waveform audio is a test audio constructed by superposing preset sound waves of multiple frequency bands. The preset second waveform audio is a test audio different from the sound wave waveform of the preset first waveform audio. Through the collection predetermine the feedback sound wave of first waveform audio frequency in the cavity that earphone and duct formed, obtain first collection audio information, and gather predetermine the feedback sound wave of second waveform audio frequency in the cavity that earphone and duct formed, obtain the second and gather audio information.
Further, step S100 further includes the steps of:
step S110, outputting a preset first waveform audio, and collecting the propagated preset first waveform audio as first collected audio information;
step S111, outputting a preset second waveform audio, and collecting the propagated preset second waveform audio as second collected audio information, where the preset second waveform audio is a preset first waveform audio subjected to delay processing.
Specifically, as shown in fig. 2, fig. 2 is a schematic diagram of waveforms involved in an embodiment of the present invention. In the waveform schematic diagram, the abscissa is time, the ordinate is amplitude, the dotted line is a visualized preset first waveform audio, the solid line is a visualized preset second waveform audio, and the preset second waveform audio is a preset first waveform audio subjected to delay processing. By performing time delay processing on the preset first waveform audio, a preset second waveform audio different from the waveform of the first waveform audio can be obtained. The preset first waveform audio is output through the preset audio output device, and the preset first waveform audio which is transmitted in a cavity formed by the earphone and the auditory canal is collected through the preset pickup equipment to serve as first collected audio information. And the preset second waveform audio is output through the preset audio output device, and the preset second waveform audio which is propagated in a cavity formed by the earphone and the auditory canal is collected through the preset pickup equipment to be used as first collected audio information.
Step S200, obtaining the attaching state information of the earphone according to the first collected audio information and the second collected audio information;
specifically, according to the first collected audio information, the sound wave leakage condition of the preset first waveform audio can be obtained, and simultaneously 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, 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, so that the fitting state information of the earphone can be obtained.
And step S300, executing corresponding preset reminding operation according to the attaching state information.
Specifically, the attaching state information may include a normal attaching state and an abnormal attaching state, and may output corresponding prompt information according to a difference in the attaching states. The outputting of the corresponding prompt information can be realized in the form of playing audio and/or sending the prompt information to the user terminal, and the like. Furthermore, the bonding state information may further include a plurality of preset bonding levels, and corresponding prompt information is output according to different bonding levels.
Further, step S300 further includes the steps of:
step S310, judging whether the attaching state information is in a normal attaching state;
in step S320, if the bonding state information is not in the normal bonding state, outputting corresponding preset prompt information.
Specifically, whether the attaching state information is in a normal attaching state is judged; if the fitting state information is not in the normal fitting state, outputting corresponding preset prompt information, for example, outputting a corresponding preset audio frequency of ' normal wearing of the earphone ' in the normal fitting state, and outputting a corresponding preset audio frequency of ' abnormal wearing of the earphone ' in the abnormal fitting state, and please wear the earphone again '.
In the first embodiment of the present 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 ear 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 ear 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, thereby prompting the user to wear the earphone again or adjusting the wearing posture of the earphone under the condition that the earphone fitting degree is abnormal. In this embodiment, through the sound wave leakage condition of obtaining different waveform test audios to the degree of accuracy that laminating degree detected is worn to the earphone has further been improved.
Further, referring to fig. 3, a second embodiment of the present invention provides an earphone control method, based on the above embodiment shown in fig. 1, before step S100, the method includes the following steps:
step S120, acquiring wearing state information of the earphone, and judging whether the wearing state information meets a preset wearing condition;
step S121, if the preset wearing condition is met, executing the steps of: acquiring first collected audio information based on a preset first waveform audio and second collected audio information based on a preset second waveform audio;
and step S122, if the preset wearing condition is not met, outputting preset prompt information.
Specifically, the preset wearing condition may be a condition corresponding to a selected sensor setting, so as to determine whether the earphone may be in risk of falling off. Wearing state information of the headset may also be acquired through a 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, etc. And then whether the preset wearing condition is met or not is judged according to the data collected by the sensor. Taking a three-axis acceleration sensor as an example, the wearing state information of the headset can be determined through the acceleration of the three-axis acceleration sensor in the x/y/z axis and each axis direction, such as whether the headset is worn correctly at the position on the ear or not and whether the headset falls off or not. And 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 preset wearing condition is met, and step S100 is executed. In this embodiment, acquire wearing state information of earphone through the sensor, according to wearing state information confirms rapidly whether the earphone can have the risk of droing, under the condition that has the risk of droing, 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 an earphone control method, based on the above embodiment shown in fig. 1, the step S200 includes the following steps:
step S210, generating first audio difference information according to the first collected audio information and a preset first waveform audio;
step S220, generating second audio difference information according to the second collected audio information and a 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 a preset first waveform audio, comparing the first collected audio information with the first waveform audio to obtain a preset first waveform audio leakage condition, and generating first audio difference information. And comparing the second collected audio information with the second waveform audio according to the second collected audio information and the preset second waveform audio to obtain the leakage condition of the preset second waveform audio, and generating second audio difference information. And then the sealing condition of a 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), and the fitting state information of the earphone is obtained.
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, filtering the first collected audio information and a 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 S220 includes the steps of:
step S221, performing filtering processing on the second collected audio information and a preset second waveform audio to obtain a second waveform change value and a second energy loss value.
Specifically, when the sealing performance of a cavity formed by the earphone and the ear canal is poor, if the preset first waveform audio frequency and the preset second waveform audio frequency leak, the energy loss and/or the waveform change of the acquired audio information exist, and are reflected on a waveform diagram, the energy loss value is an amplitude loss value of the waveform, and the waveform change value is a waveform displacement value. Thus, the first audio difference information comprises a first waveform change value and a first energy loss value and the second audio difference information comprises a second waveform change value and a second energy loss value. And filtering the first collected audio information and a preset first waveform audio through a filter to obtain a first waveform change value and a first energy loss value. And filtering the second collected audio information and a preset second waveform audio through a filter to obtain a second waveform change value and a second energy loss value.
Further, the step S230 includes the steps of:
step S231, determining whether the first waveform variation value is within a first preset waveform variation range;
step S231, if the first energy loss value is within a first preset waveform variation range, determining whether the first energy loss value is within a first preset energy loss range;
step S231, if the second waveform variation value is within the first preset energy loss range, determining whether the second waveform variation value is within a second preset waveform variation range;
step S231, if the second energy loss value is within a second preset waveform variation range, determining whether the second energy loss value is within a second preset energy loss range;
step S231, if the current state is within the second preset energy loss range, the bonding state information of the earphone is a normal bonding state.
Specifically, in a cavity with good sealing performance, a waveform change value and an energy loss value of a corresponding first waveform audio frequency are collected, so that a corresponding first preset waveform change range and a first preset energy loss range are generated. In a similar way, the waveform change value and the energy loss value of the corresponding second waveform audio frequency are collected in the cavity with good sealing performance, so that a corresponding second preset waveform change range and a second preset energy loss range are generated. When the first waveform variation value is within a first preset waveform variation range, when the first energy loss value is within the first preset energy loss range, when the second waveform variation value is within a second preset waveform variation range, and when the second energy loss value is within the 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.
An embodiment of the present invention further provides an earphone control device, where the earphone control device includes:
the acquisition module 10 is configured to acquire first acquired audio information based on a preset first waveform audio and second acquired audio information based on a preset second waveform audio;
the detection module 20 is configured to obtain the 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 attaching state information.
Still further, the headphone control device further includes: a prescreening module 40;
the preliminary screening module 40 is used for acquiring wearing state information of the earphone and judging whether the wearing state information meets preset wearing conditions;
the prescreening module 40 is further configured to, if the preset wearing condition is met, execute the following steps: acquiring first collected audio information based on a preset first waveform audio and second collected audio information based on a preset second waveform audio;
the reminding module 30 is further configured to output a preset prompt message if the preset wearing condition is not met.
Still further, the headphone control device further includes:
the acquisition module 10 is further configured to output a preset first waveform audio frequency, and acquire the propagated preset first waveform audio frequency 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 acquisition audio information, where the preset second waveform audio is a preset first waveform audio subjected to delay processing.
Still further, the headphone 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 the 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, and 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 change 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 a preset second waveform audio to obtain a second waveform change value and a second energy loss value.
Still further, the headphone control device further includes:
the detecting 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 a first preset energy loss range;
the detection module 20 is further configured to, if the second energy loss value is within a second preset waveform variation range, determine whether the second energy loss value is within a second preset energy loss range;
the detection module 20 is further configured to determine that the bonding state information of the earphone is a normal bonding state if the earphone is within a second preset energy loss range.
Still further, the headphone control device further includes:
the reminding module 30 is further configured to determine whether the bonding state information is in a normal bonding state;
the reminding module 30 is further configured to output corresponding preset reminding information if the fitting state information is not in a normal fitting state.
As shown in fig. 6, fig. 6 is a schematic diagram of a headset structure in a hardware operating 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 type, semi-in-ear type or head-worn TWS earphone) or a wired earphone.
As shown in fig. 6, the headset 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 a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also 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 non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
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. 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 gravity acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the device, and identify related functions (such as pedometer, tapping) by vibration; of course, other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an optical line sensor may be further configured, and are not further described herein.
Those skilled in the art will appreciate that the earphone configuration shown in fig. 6 does not constitute a limitation of the earphone and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 6, a memory 1005, which is one type of computer storage medium, may include an operating system, a network communication module, a user interface module, and a headset control application program therein.
In the apparatus shown in fig. 6, the processor 1001 may be configured to call up a headphone control program stored in the memory 1005 and perform the following operations:
acquiring first collected audio information based on a preset first waveform audio and second collected audio information based on a preset second waveform audio;
acquiring the 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 attaching state information.
Still further, the processor 1001 may be further configured to invoke a 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 meets a preset wearing condition;
if the preset wearing condition is met, executing the following steps: acquiring first collected audio information based on a preset first waveform audio and second collected audio information based on a preset second waveform audio;
and if the preset wearing condition is not met, outputting preset prompt information.
Still further, the processor 1001 may be further configured to invoke a headset control program stored in the memory 1005 and perform the following operations:
outputting a preset first waveform audio, and collecting the propagated preset first waveform audio as first collected audio information;
outputting a preset second waveform audio, and collecting the propagated preset second waveform audio as second collected audio information, wherein the preset second waveform audio is a preset first waveform audio subjected to time delay processing.
Still further, the processor 1001 may be further configured to invoke a headset control program stored in the memory 1005 and perform the following operations:
generating first audio difference information according to the first collected audio information and a preset first waveform audio;
generating second audio difference information according to the second collected audio information and a preset second waveform audio;
and obtaining the 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 processor 1001 is further configured to call the headphone control program stored in the memory 1005, and perform the following operations:
filtering the first collected audio information and a preset first waveform audio to obtain a first waveform change value and a first energy loss value;
and filtering the second collected audio information and a 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 a headset control program stored in the memory 1005 and perform the following operations:
judging whether the first waveform change value is within a first preset waveform change range or not;
if the first energy loss value is within a first preset waveform variation range, judging whether the first energy loss value is within a first preset energy loss range;
if the second waveform variation value is within a first preset energy loss range, judging whether the second waveform variation value is within a second preset waveform variation range;
if the second energy loss value is within a second preset waveform variation range, judging whether the second energy loss value is within a second preset energy loss range;
and if the earphone is in a 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 a headset control program stored in the memory 1005 and perform the following operations:
judging whether the attaching state information is in a normal attaching state;
and if the laminating state information is not in a normal laminating state, outputting corresponding preset prompt information.
In addition, the embodiment of the invention also provides a computer storage medium.
The computer storage medium has a computer program stored thereon, and the computer program, when executed by a processor, implements the operations in the headset control method provided by the above embodiments.
It is to be understood that the foregoing scenarios are only examples, and do not constitute a limitation on application scenarios of the technical solutions provided in the embodiments of the present application, and the technical solutions of the present application may also be applied to other scenarios. For example, as can be known by those skilled in the art, with the evolution of system architecture and the emergence of new service scenarios, the technical solution provided in the embodiments of the present application is also applicable to similar technical problems.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits 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 in the embodiment of the application can be merged, divided and deleted according to actual needs.
In the present application, the same or similar term concepts, technical solutions and/or application scenario descriptions will be generally described only in detail at the first occurrence, and when the description is repeated later, the detailed description will not be repeated in general for brevity, and when understanding the technical solutions and the like of the present application, reference may be made to the related detailed description before the description for the same or similar term concepts, technical solutions and/or application scenario descriptions and the like which are not described in detail later.
In the present application, each embodiment is described with emphasis, and reference may be made to the description of other embodiments for parts that are not described or illustrated in any embodiment.
The technical features of the technical solution of the present application may be arbitrarily combined, and for brevity of description, all possible combinations of the technical features in the embodiments are not described, however, as long as there is no contradiction between the combinations of the technical features, the scope of the present application should be considered as being described in the present application.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, a controlled terminal, or a network device) to execute the method of each embodiment of the present application.
In the above embodiments, the implementation may be wholly or partially realized 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. The procedures or functions according to the embodiments of the present application are all or partially generated when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, 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 wire (e.g., coaxial cable, fiber optic, digital subscriber line) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, memory Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (10)

1. An earphone control method, characterized by comprising the steps of:
acquiring first collected audio information based on a preset first waveform audio and second collected audio information based on a preset second waveform audio;
acquiring the 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 attaching state information.
2. The headphone control method according to claim 1, wherein the step of acquiring first captured audio information based on a preset first waveform audio and second captured audio information based on a preset second waveform audio is preceded by:
acquiring wearing state information of the earphone, and judging whether the wearing state information meets a preset wearing condition;
if the preset wearing condition is met, executing the following steps: acquiring first collected audio information based on a preset first waveform audio and second collected audio information based on a preset second waveform audio;
and if the preset wearing condition is not met, outputting preset prompt information.
3. The headphone control method according to claim 1, wherein the step of acquiring first captured audio information based on a preset first waveform audio and second captured audio information based on a preset second waveform audio includes:
outputting a preset first waveform audio, and collecting the propagated preset first waveform audio as first collected audio information;
outputting a preset second waveform audio, and collecting the propagated preset second waveform audio as second collected audio information, wherein the preset second waveform audio is a preset first waveform audio subjected to time delay processing.
4. The headphone control method according to claim 1, wherein the step of obtaining the fit state information of the headphones based on the first captured audio information and the second captured audio information includes:
generating first audio difference information according to the first collected audio information and a preset first waveform audio;
generating second audio difference information according to the second collected audio information and a preset second waveform audio;
and obtaining the fitting state information of the earphone according to the first audio difference information and the second audio difference information.
5. The headphone control method as recited in claim 4, wherein 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 based on the first captured audio information and a first preset test audio includes:
filtering the first collected audio information and a preset first waveform audio to obtain a first waveform change value and a first energy loss value;
the second audio frequency difference information comprises a second waveform change value and a second energy loss value, and the step of generating the second audio frequency difference information according to the second collected audio frequency information and a second preset test audio frequency comprises the following steps:
and filtering the second collected audio information and a preset second waveform audio to obtain a second waveform change value and a second energy loss value.
6. The headphone control method according to claim 5, wherein the obtaining of the fit state information of the headphones based on the first audio difference information and the second audio difference information includes:
judging whether the first waveform change value is within a first preset waveform change range or not;
if the first energy loss value is within a first preset waveform variation range, judging whether the first energy loss value is within a first preset energy loss range;
if the second waveform variation value is within a first preset energy loss range, judging whether the second waveform variation value is within a second preset waveform variation range;
if the second energy loss value is within a second preset waveform variation range, judging whether the second energy loss value is within a second preset energy loss range;
and if the earphone is in a second preset energy loss range, the attaching state information of the earphone is in a normal attaching state.
7. The earphone control method according to any one of claims 1 to 6, wherein the step of executing a corresponding preset reminding operation according to the attachment state information comprises:
judging whether the attaching state information is in a normal attaching state;
and if the laminating state information is not in a normal laminating state, outputting corresponding preset prompt information.
8. An earphone control apparatus, characterized by comprising:
the acquisition module is used for acquiring first acquired audio information based on a preset first waveform audio and second acquired audio information based on a preset second waveform audio;
the detection module is used for acquiring 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.
9. An earphone, characterized in that the earphone comprises: memory, processor and computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the headphone control method according to any one of claims 1 to 7.
10. 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 according to any one of claims 1 to 7.
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 true CN114040293A (en) 2022-02-11
CN114040293B 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 (9)

* 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
CN108763901A (en) * 2018-05-28 2018-11-06 Oppo广东移动通信有限公司 Ear line information acquisition method and device, terminal, earphone and readable storage medium storing program for executing
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

Patent Citations (10)

* 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
CN108763901A (en) * 2018-05-28 2018-11-06 Oppo广东移动通信有限公司 Ear line information acquisition method and device, terminal, earphone and readable storage medium storing program for executing
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
US20200374617A1 (en) * 2019-05-23 2020-11-26 Beijing Xiaoniao Tingting Technology Co., Ltd Method and device for detecting wearing state of earphone 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
CN114040293B (en) 2024-05-31

Similar Documents

Publication Publication Date Title
EP3084756B1 (en) Systems and methods for feedback detection
US10638214B1 (en) Automatic user interface switching
CN110677768A (en) Wireless earphone control method and device, wireless earphone and storage medium
CN108683761A (en) Sounding control method, device, electronic device and computer-readable medium
US9766852B2 (en) Non-audio notification of audible events
KR20180068075A (en) Electronic device, storage medium and method for processing audio signal in the electronic device
KR102419512B1 (en) An electronic device comprising a plurality of speakers
CN112468924A (en) Earphone noise reduction method and device
EP4131907A1 (en) Sound recording method and apparatus
CN112013949A (en) Earphone wearing state determining method and device and earphone
CN114071308B (en) Headset self-adaptive tuning method and device, headset and readable storage medium
CN109189360A (en) Screen sounding control method, device and electronic device
CN112423176A (en) Earphone noise reduction method and device, storage medium and noise reduction earphone
CN113613157A (en) Earphone, wearing state detection method and device thereof, and storage medium
CN114040300B (en) Earphone active noise reduction method and device, earphone and computer readable storage medium
CN114040293A (en) Earphone control method, earphone control device, earphone and computer readable storage medium
CN111800699A (en) Volume adjustment prompting method and device, earphone equipment and storage medium
CN110784797A (en) Wireless earphone control method and device, wireless earphone and storage medium
US10186279B2 (en) Device for detecting, monitoring, and cancelling ghost echoes in an audio signal
KR20140030940A (en) Apparatus and method for hearing test and for compensation hearing loss
KR102324063B1 (en) Method for detecting error of microphone based on audio signal loudness acquired through microphone and electronic device thereof
CN114302278A (en) Headset wearing calibration method, electronic device and computer-readable storage medium
CN114567849A (en) Detection method and device, wireless earphone and storage medium
WO2023092752A1 (en) Earphone active noise reduction method and device, earphone, and computer readable storage medium
KR20220064335A (en) Method for monitoring auditory using hearing ear earphones and the system thereof

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