CN117061927A - Earphone playing control method, electronic equipment and storage medium - Google Patents

Earphone playing control method, electronic equipment and storage medium Download PDF

Info

Publication number
CN117061927A
CN117061927A CN202311101679.9A CN202311101679A CN117061927A CN 117061927 A CN117061927 A CN 117061927A CN 202311101679 A CN202311101679 A CN 202311101679A CN 117061927 A CN117061927 A CN 117061927A
Authority
CN
China
Prior art keywords
earphone
user
specific area
specific
acquiring
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
CN202311101679.9A
Other languages
Chinese (zh)
Other versions
CN117061927B (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.)
Jiangxi Risound Electronics Co ltd
Original Assignee
Jiangxi Risound Electronics 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 Jiangxi Risound Electronics Co ltd filed Critical Jiangxi Risound Electronics Co ltd
Priority to CN202311101679.9A priority Critical patent/CN117061927B/en
Publication of CN117061927A publication Critical patent/CN117061927A/en
Application granted granted Critical
Publication of CN117061927B publication Critical patent/CN117061927B/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/1083Reduction of ambient noise
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2201/00Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
    • H04R2201/10Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Headphones And Earphones (AREA)

Abstract

The application discloses a control method for earphone playing, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring current position data of a terminal connected with an earphone; acquiring an effective connection distance between the earphone and the terminal; based on the current position data and the effective connection distance, judging whether the earphone is in a specific area preset by a user; if yes, acquiring a specific play mode preset by a user and corresponding to the specific area; the terminal adjusts the headphones to a specific play mode. The method can realize the automatic adjustment function of the earphone to the playing mode of the specific area, and when the user wears the earphone to enter the specific area or uses the earphone in the specific area, the playing mode of the earphone can be automatically adjusted to the specific playing mode, so that the frequency of adjusting the earphone by the user is reduced, and the experience of using the earphone by the user is improved.

Description

Earphone playing control method, electronic equipment and storage medium
Technical Field
The present application relates to the field of earphone control technologies, and in particular, to a method for controlling earphone playing, an electronic device, and a storage medium.
Background
In the process of using the earphone, the user often uses different playing volume, noise reduction modes and the like in the face of different use scenes, and due to habits in daily life and work of the user, high-frequency use scenes such as office areas, home areas, body-building areas and the like usually exist in the use scenes.
In the prior art, when a user wears the earphone to enter and exit the high-frequency use scene or wears the earphone in the high-frequency use scene, the user is usually required to manually adjust the output volume of the earphone, the noise reduction mode and the like, and the use mode reduces the use experience of the user.
In view of the foregoing, it is necessary to provide a method for controlling the playing of headphones to solve the above-mentioned problems.
Disclosure of Invention
In view of the defects existing in the prior art, the application provides a control method for earphone playing, electronic equipment and a storage medium, and aims to solve the technical problem that a user needs to manually adjust earphone output parameters aiming at a high-frequency use scene to influence use experience.
In order to achieve the above object, a first aspect of the present application provides a method for controlling playback of an earphone, including:
acquiring current position data of a terminal connected with an earphone;
acquiring an effective connection distance between the earphone and the terminal;
based on the current position data and the effective connection distance, judging whether the earphone is in a specific area preset by a user;
if yes, a specific play mode preset by a user and corresponding to the specific area is obtained, wherein the specific play mode comprises a tuning parameter and a quantitative parameter;
the terminal adjusts the headphones to a specific play mode.
In a preferred embodiment, the specific area includes a specific point and a range radius, and the step of determining whether the earphone is within the specific area preset by the user includes:
acquiring a specific point and a range radius of a specific area;
calculating the sum of the radius of the range and the effective connection distance to obtain a judgment distance;
calculating the distance between the terminal and the specific point to obtain the current distance;
judging whether the current distance is smaller than the judgment distance;
if yes, judging that the earphone is in a specific area preset by a user.
In a preferred embodiment, the step of determining whether the current distance is less than the determined distance further comprises: if not, judging that the earphone is out of the specific area preset by the user.
In a preferred embodiment, if it is determined that the earphone is outside the specific area preset by the user, the normal play mode is acquired, and the terminal adjusts the earphone to the normal play mode.
In a preferred embodiment, the step of obtaining a specific play mode preset by a user and corresponding to the specific area includes:
acquiring the current time of a terminal;
and acquiring a corresponding specific playing mode based on the specific area and the current time.
In a preferred embodiment, the step of adjusting the earphone to the specific playing mode by the terminal further includes:
acquiring data of a user after adjusting the tuning parameters of the earphone as primary parameters;
acquiring the adjustment duration of the preliminary parameters;
judging whether the adjustment duration is longer than a preset judging duration;
if yes, marking and recording the preliminary parameters as target parameters.
In a preferred embodiment, the method for controlling the playing of the earphone further includes:
judging whether the number of the target parameters is smaller than the preset triggering number or not;
if not, updating the tuning parameters based on the target parameters.
In a preferred embodiment, the step of updating the tuning parameters comprises:
obtaining correction parameters based on the target parameters;
obtaining a deviation value between the correction parameter and the tuning parameter;
judging whether the deviation value is smaller than a preset judgment value;
if yes, the tuning parameter is adjusted to be a correction parameter.
A second aspect of the present application provides an electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor executing the steps of the method for controlling the playback of headphones described above.
A third aspect of the present application provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of the above-described headphone playback control method.
The application has the beneficial effects that: the control method for playing the earphone can realize the automatic adjustment function of the earphone to the playing mode of the specific area, and when a user wears the earphone to enter the specific area or uses the earphone in the specific area, the playing mode of the earphone can be automatically adjusted to the specific playing mode, so that the frequency of adjusting the earphone by the user is reduced, and the experience of using the earphone by the user is improved.
Drawings
Fig. 1 is a schematic flow chart of a method for controlling headphone playing according to an embodiment of the present application;
fig. 2 is a flowchart illustrating a method for determining whether an earphone is in a specific area according to an embodiment of the present application;
FIG. 3 is a flow chart illustrating a method for determining that a current distance is smaller than a determination distance according to an embodiment of the present application;
FIG. 4 is a flowchart illustrating another embodiment of the present application for obtaining a specific playback mode
Fig. 5 is a second flow chart of a method for controlling headphone playing according to an embodiment of the present application;
fig. 6 is a third flow chart of a method for controlling headphone playing according to an embodiment of the present application;
FIG. 7 is a flowchart of updating tuning parameters according to an embodiment of the present application;
fig. 8 is a schematic diagram of a functional module of an electronic device according to the present application.
Detailed Description
In the present application, the terms "disposed," "configured," "connected," and "connected" are to be construed broadly. For example, it may be a fixed connection, a removable connection, or a unitary construction; may be a mechanical connection, or an electrical connection; may be directly connected, or indirectly connected through intervening media, or may be in internal communication between two devices, elements, or components. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art according to the specific circumstances.
The terms "first," "second," and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present application, the meaning of "plurality" means at least two, for example, two, three, etc., unless specifically defined otherwise.
Also, some of the terms described above may be used to indicate other meanings in addition to orientation or positional relationships, for example, the term "upper" may also be used to indicate some sort of attachment or connection in some cases. The specific meaning of these terms in the present application will be understood by those of ordinary skill in the art according to the specific circumstances.
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. 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 process of using the earphone, the user always uses different playing volume, noise reduction modes and the like to adapt to the use scene facing different use scenes. Because the user usually has fixed scenes and fixed use habits in daily life and work, in the use scenes, high-frequency use scenes usually exist, namely, the user can define the high-frequency use scenes and set corresponding specific play modes, so that after the user wears the earphone to enter and exit the high-frequency use scenes or wears the earphone in the high-frequency use scenes, the earphone can be automatically adjusted to the corresponding specific play modes, the adjustment frequency of the user to the earphone is reduced, and the use experience of the user is improved.
The following is a first aspect of the application:
referring to fig. 1, the present application provides a method for controlling earphone playing, which includes:
s1, acquiring current position data of a terminal connected with an earphone;
s2, acquiring an effective connection distance between the earphone and the terminal;
the order of the step S1 and the step S2 is not limited herein, and the step S1 may be executed first and then the step S2 may be executed; step S2 may be executed first, and then step S1 may be executed, or step S1 and step S2 may be executed simultaneously. The current position data is obtained after the current position of the terminal is positioned, and can represent the current position of the terminal, and the effective connection distance is the maximum distance between the earphone and the terminal which can be connected.
It is easy to understand that, in order to save the space inside the earphone cavity and the cost of the earphone, the device for positioning is not usually provided in the cavity of the existing earphone, so the current position of the earphone cannot be directly obtained, the earphone is usually required to be matched with a terminal provided with a positioning device inside a mobile phone and the like, and after the connection relationship between the earphone and the terminal is established, the earphone can be used in a certain range with the current position point of the terminal as the center, so the current position range of the earphone can be approximately obtained by obtaining the current position data and the effective connection distance of the terminal.
After the earphone is connected with the terminal, the terminal acquires the current position information of the terminal in real time, and specifically, the current position information of the terminal can be acquired in real time through a positioning device arranged in the terminal. The positioning device may be a GPS positioning device, a WiFi positioning device, or a beidou positioning device, which is not limited herein.
S3, judging whether the earphone is in a specific area preset by a user or not based on the current position data and the effective connection distance;
s4, if so, acquiring a specific play mode preset by a user and corresponding to the specific area;
s5, the terminal adjusts the earphone to a specific playing mode.
The specific area is a use area range defined by the user according to the use condition of the user, and the specific area may be a high-frequency use scene in a scene of using the earphone by the user, or may be a fixed use scene defined by the user randomly, and the number of defined specific areas is not limited herein. The user can define the specific area through control software on the terminal, and can also assist in defining the specific area through operating the earphone.
Specifically, when the user uses the control software on the terminal to demarcate the specific area, the user can obtain the range map through the control software and directly mark the specific area on the range map, and the control software can record the relevant parameter information of the relevant specific area through measurement.
When the user uses the earphone to assist in demarcating the specific area, the user needs to be located in the specific area and trigger a marking mode of the earphone, when the user is located near the center point range of the specific area and touches the earphone, the terminal records a first position point, the user moves near the farthest edge of the specific area and touches the earphone again, the terminal records a second position point, and the specific area can be obtained according to the first position point and the second position point. The user can select the demarcation mode of the specific area according to the self requirement.
The specific play mode is the parameters and modes of the earphone output configured for the specific area defined by the user. The specific playing mode comprises a tuning parameter and a quantitative parameter; specifically, the tuning parameter includes at least one of a specific playing volume and a specific noise reduction stage, and the quantitative parameter includes at least one of a specific noise reduction mode and a specific playing effect. It is easy to understand that under different use situations, the user's use habit is different, and the user can configure at least one of different play volume, noise reduction stage number, noise reduction mode and play sound effect for its own specific area that demarcates by oneself according to self demand. After the user finishes the demarcation of the specific area, the parameter setting of the specific playing mode corresponding to the specific area can be carried out.
After the user completes the setting of the specific area and the specific play mode, the earphone and the terminal establish a connection relationship, the current position range of the earphone can be approximately obtained by acquiring the current position data and the effective connection distance of the terminal, and then whether the specific play mode corresponding to the current specific area is triggered can be determined by judging whether the earphone is in the specific area. When the earphone is judged to be located in the specific area, the terminal sends a control signal to the earphone, and the current playing mode of the earphone is adjusted to be the specific playing mode corresponding to the specific area.
It can be understood that by the control method for playing the earphone, the automatic adjustment function of the earphone to the playing mode of the specific area can be realized, and when the user wears the earphone to enter the specific area or uses the earphone in the specific area, the playing mode of the earphone can be automatically adjusted to the specific playing mode, so that the frequency of adjusting the earphone by the user is reduced, and the experience of using the earphone by the user is improved.
Further, referring to fig. 2, in the present embodiment, the specific area includes a specific point and a range radius; the step S3 of determining whether the earphone is in a specific area preset by the user includes:
s31, acquiring a specific point and a range radius of a specific area;
s32, calculating the sum of the radius of the range and the effective connection distance to obtain a judgment distance;
s33, calculating the distance between the terminal and the specific point to obtain the current distance;
s34, judging whether the current distance is smaller than the judgment distance;
and S35, if so, judging that the earphone is in a specific area preset by the user.
The shape of the specific area can be set according to the design requirement, and is preferably circular for the convenience of setting by a user and operation of a control method. The specific point is a point at the center range of the specific area, preferably the center point, the range radius is a distance from the specific point to the farthest edge of the specific area, and the range of the specific area can be determined through the specific point and the range radius. The range sizes of different specific areas may be different, so when determining whether the earphone is in the specific area, it is generally necessary to calculate the determination distance corresponding to the specific area.
It can be understood that the current position of the earphone is approximately obtained by the current position data of the terminal and the effective connection distance, that is, the current position of the earphone corresponds to an area range with the current position of the terminal as the center and the effective connection distance as the radius. In the actual use process, there may be a case that the terminal is not in the specific area, and the user wears the earphone in the specific area, so that the range radius of the specific area cannot be used as the relevant parameter when the determination distance is obtained, and the sum of the range radius and the effective connection distance is required to be used as the relevant parameter. By comparing the determined distance with the current distance, whether the earphone is located in the specific area or not can be obtained, namely, the judgment of whether the two area ranges are intersected or not is equivalent, and if the two area ranges are intersected, the earphone can be determined to be located in the specific area.
Further, referring to fig. 3, in this embodiment, the step S34 of determining whether the current distance is smaller than the determined distance further includes:
s36, if not, judging that the earphone is out of a specific area preset by a user;
s37, acquiring a normal play mode, and adjusting the earphone to the normal play mode by the terminal.
The normal playing mode is a playing mode used by the earphone outside the specific area by the user, and can be a default playing mode preset by the earphone or a playing mode generated based on the using habit of the user outside the specific area. It is easy to understand that when the user moves from within the specific area to outside the specific area while wearing the earphone or when the user uses the earphone outside the specific area, the terminal acquires the normal play mode and adjusts the play mode of the earphone to the normal play mode.
Because the sensitivity of the user to the parameter changes such as playing volume, noise reduction level is relatively high, in the switching process of the earphone playing mode, a gradual adjustment mode can be adopted, namely, in the process of switching the playing mode of the earphone, the playing volume, the noise reduction level and the like are gradually increased or reduced to the target value at a certain rate, and the rate can be set according to the design requirement, so that the abrupt sense in the process of switching the playing mode is reduced, and the use experience of the user is prevented from being influenced.
Further, referring to fig. 4, in this embodiment, step S4 of obtaining a specific play mode preset by a user corresponding to a specific area includes:
s41, acquiring the current time of the terminal;
s42, based on the specific area and the current time, a corresponding specific playing mode is acquired.
It is readily understood that the usage habits of the user may be different during different periods of time in the same particular area. For example, if the particular area is an office area, the office area is typically relatively noisy in the 9 o 'clock to 12 o' clock time period in the morning, and is typically a noon break time period in the 12 o 'clock to 14 o' clock time period, where the office area is relatively quiet. For the foregoing situation, different time periods may be divided, and then corresponding specific playing modes are configured for the different time periods, and when the earphone is in the specific area, the corresponding specific playing modes may be obtained according to the time periods, so as to further improve the use experience of the user.
After setting a specific area, a user can divide a time period for the specific area by control software on the terminal, wherein the dividing mode can be to only appoint part of the time period or divide a plurality of continuous time periods, and the user can select according to own requirements; after each time period is defined, the user can set the parameters of the specific playing mode corresponding to each time period according to the own requirements.
Specifically, after the earphone is determined to be in the specific area, specific playing modes corresponding to a plurality of time periods set by a user can be obtained, the current time of the terminal is obtained, the time period to which the current time belongs is determined, then the corresponding specific playing modes are obtained according to the time period to which the current time belongs, and the terminal adjusts the earphone to the specific playing modes corresponding to the specific area in the time period.
Further, referring to fig. 5, in this embodiment, after step S5 of adjusting the earphone to the specific playing mode, the terminal further includes:
s51, acquiring data of a user after adjusting the tuning parameters of the earphone as primary parameters;
s52, acquiring adjustment duration of the preliminary parameters;
s53, judging whether the adjustment duration is longer than a preset judgment duration;
s54, if yes, marking and recording the preliminary parameters as target parameters.
The preliminary parameters include at least one of the adjusted play volume and the adjusted noise reduction stage number. It is easy to understand that the specific playing mode preset by the user is preset subjectively by the user, and does not necessarily conform to the specific situation of actual use of the user, that is, in the actual use process, after the terminal adjusts the earphone to the specific playing mode, the situation that the user may adjust the earphone still exists, and the volume output by the earphone and the noise reduction level of the earphone are parameters with relatively high frequency adjusted by the user, so that part of parameters of the earphone adjusted after the user is in the specific area can be collected to be used as data for subsequently correcting the specific playing mode.
In the using process of the earphone, the earphone is adjusted by the user in various conditions, if the user only makes short-time adjustment and then resumes the specific playing mode, in order to ensure the accuracy of the subsequent correction of the specific playing mode, the obtained preliminary parameters need to be screened, the adjusted duration can reflect the fitness of the user to the adjusted playing mode, and it is easy to understand that if the adjusted playing mode does not meet the requirement of the user, the user can adjust again in a short time and does not continue to use, so that the adjustment duration is longer than the judging duration as a screening condition, and the target parameters are screened from the preliminary parameters, so as to ensure the accuracy of the subsequent correction of the specific playing mode.
Furthermore, after the target parameter is recorded, the tuning parameter may be updated in a periodic manner, or whether to update the tuning parameter may be determined based on the number of samples of the recorded target parameter, that is, the manner of triggering updating the tuning parameter may be selected according to the design requirement.
Referring to fig. 6, in a preferred embodiment, the method for controlling the playing of the earphone further includes the following steps:
s6, judging whether the number of the target parameters is smaller than the preset trigger number;
and S7, if not, updating the grading parameters based on the target parameters.
In step S6, the number of samples of the target parameter obtained is the number of samples accumulated in each specific area, and when the determination and the update are performed, each specific area is performed independently, that is, the number of target parameters accumulated in different specific areas does not affect each other. In some preferred embodiments, the tuning parameters corresponding to different time periods may be updated for the same specific area, and the target parameters accumulated in different time periods of the same specific area do not affect each other.
It can be understood that the number of samples of the target parameter is taken as the basis for triggering and updating the grading parameter, so that the earphone can be more suitable for the actual use situation of the earphone. On the premise of supporting the sufficient sample number, the updating of the tuning parameters is triggered again, and the accuracy of the updating of the tuning parameters can be further ensured, so that the use experience of subsequent users is ensured.
Further, referring to fig. 7, in the present embodiment, the step S7 of updating the tuning parameters includes:
s71, obtaining correction parameters based on target parameters;
s72, acquiring a deviation value between the correction parameter and the tuning parameter;
s73, judging whether the deviation value is smaller than a preset judgment value;
and S74, if yes, adjusting the grading parameter to be a correction parameter.
The correction parameter is an average value of a plurality of obtained target parameters, and can better represent the adjustment condition of adjusting the tuning parameters of the earphone by a user when the earphone is in a specific area. The correction parameters comprise correction play volume and correction noise reduction series, and the correction play volume and the correction noise reduction series are mutually independent in acquisition mode. The deviation value is an absolute value of a difference between the correction parameter and the tuning parameter, which indicates a degree of deviation between the correction parameter and the tuning parameter.
Specifically, after the correction parameter is obtained, as the deviation degree may be too large between the correction parameter and the tuning parameter, if the correction parameter is directly replaced by the tuning parameter, there may be a situation that the adjustment span is too large, and the subsequent use experience of the user is affected.
It is easy to understand that when the deviation value is smaller than the preset judgment value, the adjustment span between the correction parameter and the tuning parameter is relatively smaller, so that the tuning parameter can be directly replaced by the correction parameter, the subsequent adjustment times of the user are reduced, and the use experience of the user is improved.
When the judgment deviation value is larger than or equal to the preset judgment value, the adjustment span between the correction parameter and the adjustment parameter is relatively larger. After the deviation value is larger than or equal to the judgment value, updating of the tuning parameters can be stopped, the tuning information can be fed back to the user, whether replacement is needed or not can be judged by the user according to the use requirement of the user, and the tuning parameters can be selected according to the design requirement. In a preferred embodiment, when the deviation value is greater than or equal to the determination value, the terminal pops up a correction prompt message or the earphone emits a correction prompt sound. After receiving the related prompt, the user can decide whether to adjust according to the own use requirement.
It can be understood that key adjustment data of the user on the tuning parameters of the earphone in the specific area are collected and screened out to determine the use change condition of the user, so that the self-adaptive updating function of the tuning parameters corresponding to the specific area can be realized, the adjustment times of subsequent use of the user are reduced, and the use experience of the user is improved.
In summary, the method for controlling the playing of the earphone provided by the application can realize the function of automatically adjusting the playing mode of the earphone to the specific area, and when the user wears the earphone to enter the specific area or uses the earphone in the specific area, the playing mode of the earphone can be automatically adjusted to the specific playing mode, so that the frequency of adjusting the earphone by the user is reduced, and the experience of using the earphone by the user is improved.
The following is a second aspect of the application:
the present application provides an electronic device, as shown in fig. 8, which includes a memory 10, a processor 20 and a control method program instruction 30 for earphone playing stored in the memory 10 and capable of running on the processor 20, wherein the control method program instruction 30 for earphone playing is executed by the processor 20 to implement the foregoing control method for earphone playing.
In some embodiments, the processor may be a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor, or other data processing chip. The processor is typically used to control the overall operation of the headset. In this embodiment, the processor is configured to execute program codes or process data stored in a readable storage medium.
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 readable storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method of the embodiments of the present application.
The following is a third aspect of the application:
the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the above-described method of controlling headphone playback.
The foregoing is merely exemplary of the application and it will be appreciated by those skilled in the art that variations and modifications may be made without departing from the principles of the application, and it is intended that the application also be limited to the specific embodiments shown.

Claims (10)

1. The method for controlling the earphone playing is characterized by comprising the following steps:
acquiring current position data of a terminal connected with an earphone;
acquiring an effective connection distance between the earphone and the terminal;
based on the current position data and the effective connection distance, judging whether the earphone is in a specific area preset by a user;
if yes, a specific play mode preset by a user and corresponding to the specific area is obtained, wherein the specific play mode comprises a grading parameter and a quantitative parameter;
the terminal adjusts the earphone to the specific playing mode.
2. The method for controlling playback of headphones as recited in claim 1, wherein the specific area includes a specific point and a range radius, and wherein the step of determining whether the headphones are within the specific area preset by the user comprises:
acquiring a specific point and a range radius of the specific area;
calculating the sum of the radius of the range and the effective connection distance to obtain a judgment distance;
calculating the distance between the terminal and the specific point to obtain the current distance;
determining whether the current distance is smaller than the determination distance;
if yes, judging that the earphone is in a specific area preset by a user.
3. The method of controlling headphone playback according to claim 2, wherein the step of determining whether the current distance is smaller than the determination distance further comprises:
if not, judging that the earphone is out of a specific area preset by the user.
4. The method for controlling playback of an earphone according to claim 3, wherein if it is determined that the earphone is outside a specific area preset by the user, a normal playback mode is acquired, and the terminal adjusts the earphone to the normal playback mode.
5. The method for controlling headphone playback according to claim 1, wherein the step of acquiring a specific playback mode preset by a user corresponding to the specific area includes:
acquiring the current time of the terminal;
and acquiring a corresponding specific playing mode based on the specific area and the current time.
6. The method for controlling the playback of an earphone according to claim 1, wherein the step of adjusting the earphone to the specific playback mode by the terminal further comprises:
acquiring data of a user after adjusting the tuning parameters of the earphone as primary parameters;
acquiring the adjustment duration of the preliminary parameters;
judging whether the adjustment duration is longer than a preset judging duration or not;
if yes, marking and recording the preliminary parameters as target parameters.
7. The method for controlling playback of headphones as recited in claim 6, further comprising:
judging whether the number of the target parameters is smaller than a preset triggering number or not;
if not, updating the grading parameter based on the target parameter.
8. The method of claim 7, wherein the step of updating the tuning parameters comprises:
obtaining a correction parameter based on the target parameter;
acquiring a deviation value between the correction parameter and the grading parameter;
judging whether the deviation value is smaller than a preset judgment value or not;
if yes, the tuning parameter is adjusted to be a correction parameter.
9. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor, when executing the computer program, realizes the steps of the method for controlling the playback of headphones according to any one of claims 1 to 8.
10. A computer-readable storage medium storing a computer program, characterized in that the computer program, when executed by a processor, implements the steps of the method of controlling headphone playback as claimed in any one of claims 1 to 8.
CN202311101679.9A 2023-08-30 2023-08-30 Earphone playing control method, electronic equipment and storage medium Active CN117061927B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311101679.9A CN117061927B (en) 2023-08-30 2023-08-30 Earphone playing control method, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311101679.9A CN117061927B (en) 2023-08-30 2023-08-30 Earphone playing control method, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN117061927A true CN117061927A (en) 2023-11-14
CN117061927B CN117061927B (en) 2024-03-22

Family

ID=88655255

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311101679.9A Active CN117061927B (en) 2023-08-30 2023-08-30 Earphone playing control method, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117061927B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015158182A1 (en) * 2014-04-16 2015-10-22 华为技术有限公司 Volume adjusting method, apparatus and terminal of user terminal
CN105025417A (en) * 2015-07-28 2015-11-04 Tcl集团股份有限公司 Method and system for automatically adjusting earphone volume according to positioning information
JP2018157485A (en) * 2017-03-21 2018-10-04 ヤマハ株式会社 Headphone
CN109672958A (en) * 2018-12-14 2019-04-23 歌尔科技有限公司 Control method for playing back and equipment
CN112423175A (en) * 2019-08-20 2021-02-26 Oppo广东移动通信有限公司 Earphone noise reduction method and device, storage medium and electronic equipment
CN112788176A (en) * 2019-11-11 2021-05-11 Oppo广东移动通信有限公司 Earphone volume adjusting method and device, storage medium and electronic equipment
CN112954532A (en) * 2021-03-06 2021-06-11 深圳市尊特数码有限公司 Method, system, terminal and storage medium for adjusting noise reduction level of Bluetooth headset
CN114666695A (en) * 2020-12-22 2022-06-24 华为技术有限公司 Active noise reduction method, device and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015158182A1 (en) * 2014-04-16 2015-10-22 华为技术有限公司 Volume adjusting method, apparatus and terminal of user terminal
CN105025417A (en) * 2015-07-28 2015-11-04 Tcl集团股份有限公司 Method and system for automatically adjusting earphone volume according to positioning information
JP2018157485A (en) * 2017-03-21 2018-10-04 ヤマハ株式会社 Headphone
CN109672958A (en) * 2018-12-14 2019-04-23 歌尔科技有限公司 Control method for playing back and equipment
CN112423175A (en) * 2019-08-20 2021-02-26 Oppo广东移动通信有限公司 Earphone noise reduction method and device, storage medium and electronic equipment
CN112788176A (en) * 2019-11-11 2021-05-11 Oppo广东移动通信有限公司 Earphone volume adjusting method and device, storage medium and electronic equipment
CN114666695A (en) * 2020-12-22 2022-06-24 华为技术有限公司 Active noise reduction method, device and system
CN112954532A (en) * 2021-03-06 2021-06-11 深圳市尊特数码有限公司 Method, system, terminal and storage medium for adjusting noise reduction level of Bluetooth headset

Also Published As

Publication number Publication date
CN117061927B (en) 2024-03-22

Similar Documents

Publication Publication Date Title
US9485639B2 (en) Method and device for adjusting and processing ringtone
US8238592B2 (en) Method for user indvidualized fitting of a hearing aid
CN110972014B (en) Parameter adjustment method and device for active noise reduction earphone and wireless earphone
US8519841B2 (en) Systems and methods for dynamically changing alerts of portable devices using brainwave signals
US20190227767A1 (en) Volume Adjustment Method and Terminal
US20080153537A1 (en) Dynamically learning a user's response via user-preferred audio settings in response to different noise environments
CN109951596A (en) Adjusting method, device, storage medium and the mobile terminal of screen intensity
US20100235747A1 (en) Method for adjusting parameters of audio device
EP1766794A2 (en) Volume control system and method for a mobile communication device
US20090097665A1 (en) Sound volume automatic adjustment method and system
KR20140126932A (en) Method for Fitting Hearing Aid Customized to a Specific Circumstance of a User and Storage Medium for the Same
CN111314560A (en) Method for adjusting sound loudness and communication terminal
KR20140081430A (en) Method for Fitting a Hearing Aid Employing Mode of User's Adaptation
US10965995B2 (en) System, method, and apparatus for sensing users for device settings
CN117061927B (en) Earphone playing control method, electronic equipment and storage medium
CN117041803B (en) Earphone playing control method, electronic equipment and storage medium
CN113422866A (en) Volume adjusting method and device, storage medium and electronic equipment
CN108834015B (en) Earphone and volume adjusting method and device thereof
CN114413437A (en) Parameter adjusting method and device for air conditioner compressor and storage medium
CN110175104A (en) Electricity uses calculation method, terminal and the computer readable storage medium of duration
CN109660653A (en) Method for controlling volume and device
CN113053332B (en) Backlight brightness adjusting method and device, electronic equipment and readable storage medium
CN117479100A (en) Retrieving method of wireless earphone, electronic equipment and storage medium
JP4652982B2 (en) SOUND GENERATOR, SOUND GENERATION METHOD, AND PROGRAM THEREOF
CN113883665A (en) Air conditioner display screen control method and device, air conditioner and readable 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