CN117041803A - 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
CN117041803A
CN117041803A CN202311102139.2A CN202311102139A CN117041803A CN 117041803 A CN117041803 A CN 117041803A CN 202311102139 A CN202311102139 A CN 202311102139A CN 117041803 A CN117041803 A CN 117041803A
Authority
CN
China
Prior art keywords
specific area
earphone
specific
current
user
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
CN202311102139.2A
Other languages
Chinese (zh)
Other versions
CN117041803B (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 CN202311102139.2A priority Critical patent/CN117041803B/en
Publication of CN117041803A publication Critical patent/CN117041803A/en
Application granted granted Critical
Publication of CN117041803B publication Critical patent/CN117041803B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements
    • 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

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, and effectively connecting the earphone with the terminal; based on the current position data and the effective connection distance, sequentially judging whether the earphone is in a specific area preset by a user; if yes, marking the specific area as the current specific area; judging whether the number of the current specific areas is larger than 1 or not; if yes, screening out a target specific area from the current specific area; and acquiring a specific play mode preset by a user and corresponding to the target specific area, and adjusting the earphone to the specific play mode by the terminal. The method can screen the target specific area from the specific area preset by the user, and automatically adjust the playing mode of the earphone according to the target specific area, so that the frequency of adjusting the earphone by the user is reduced, the experience of using the earphone by the user is improved, and the adaptability of automatic adjustment of the earphone 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 headphones, users often use 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 users, high-frequency use scenes such as office areas, home areas, body-building areas, meeting areas and the like usually exist in the use scenes. In the actual use process, the aforementioned high-frequency use scenarios may also overlap with each other, such as overlapping between a conference area and an office area.
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 proper earphone and the noise reduction mode, so that the use experience of the user is reduced, and some self-adaptive adjustment modes cannot be well adapted to the situation that the high-frequency use scene is overlapped with each other.
In view of the foregoing, it is necessary to provide a method for controlling headphone playback, an electronic device, and a storage medium 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 playing an earphone, electronic equipment and a storage medium, which aim to realize an automatic adjusting function of the earphone under a high-frequency use scene and solve the technical problems that a user needs to manually adjust the earphone and the automatic adjusting adaptability of the earphone is poor.
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, and effectively connecting the earphone with the terminal;
based on the current position data and the effective connection distance, sequentially judging whether the earphone is in a specific area preset by a user, wherein the specific area comprises a specific point and a range radius;
if yes, marking the specific area as the current specific area;
judging whether the number of the current specific areas is larger than 1 or not;
if yes, screening out a target specific area from the current specific area;
and acquiring a specific play mode preset by a user and corresponding to the target specific area, and adjusting the earphone to the specific play mode by the terminal.
In a preferred embodiment, the step of sequentially determining whether the earphone is in a 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 screening the target specific area from the current specific area includes:
acquiring a specific point and a range radius of a current specific area;
screening out the maximum value in the range radius of the current specific area to be used as the maximum radius;
marking the current specific area with the largest radius as the largest specific area;
judging whether specific points of the current specific area are all located outside the maximum specific area;
if not, marking the current specific area positioned in the maximum specific area as a candidate specific area;
and comparing the range radius of the candidate specific region, and taking the candidate specific region with the smallest range radius as the target specific region.
In a preferred embodiment, the step of determining whether the specific points of the current specific area are all located outside the maximum specific area further comprises:
if yes, the maximum specific area is taken as the target specific area.
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, the step of determining that the earphone is outside the specific area preset by the user further includes:
the normal play mode is acquired and the terminal adjusts the earphone to the normal play mode.
In a preferred embodiment, the step of determining whether the number of the current specific areas is greater than 1 further comprises:
if not, the single current specific area is marked as the target specific area.
In a preferred embodiment, the step of obtaining a specific play mode preset by a user and corresponding to the target specific area includes:
acquiring the current time of a terminal;
and acquiring a corresponding specific playing mode based on the target specific area and the current time.
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 regulation function of the playing mode of the earphone, when a user wears the earphone to enter a specific area or uses the earphone in the specific area, the specific area of a target can be automatically judged and screened, the playing mode of the earphone is automatically regulated to be the specific playing mode corresponding to the specific area of the target, the adaptability of the automatic regulation of the earphone is improved, the frequency of regulating the earphone by the user is reduced, and the experience of using the earphone by the user is improved.
Drawings
Fig. 1 is a 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 of screening out a specific target area according to an embodiment of the present application;
fig. 4 is a schematic diagram of a functional module of an electronic device according to an embodiment of 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 current use scene facing different use scenes. Since the user generally has a fixed scene and a relatively fixed usage habit in daily life and work, in the usage scene of the earphone, a high-frequency usage scene generally exists, and in the aforementioned high-frequency usage scene, a scene area may be included or the scene areas may intersect, that is, an overlapping area may occur in a plurality of high-frequency usage scenes, for example, the user sets an office area for the working scene of the user, and a conference area is defined in the office area, that is, the office area and the conference area have overlapping areas.
The high-frequency use scene of the earphone is marked out by a user, the high-frequency use scene marked by the user is used as a specific area, and a corresponding specific play mode is set for the specific area, so that when the user wears the earphone to enter and exit the specific area or wears the earphone in the specific area, the earphone is automatically adjusted to the corresponding specific play mode according to the specific situation of the specific area where the earphone is currently located, 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, in an embodiment of the present application, a method for controlling playing of an earphone is provided, where the method includes:
s1, acquiring current position data of a terminal connected with an earphone, and effectively connecting the earphone with the terminal; the current position data is obtained after the current position of the terminal is positioned, the current position of the terminal can be shown, 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.
S2, based on the current position data and the effective connection distance, whether the earphone is in a specific area preset by a user or not is sequentially judged;
s3, if yes, marking the specific area as the current specific area;
wherein the specific region includes a specific point and a range radius; 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 randomly by the user, and the number of defined specific areas is not limited here. 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 a user uses headphones to assist in the demarcation of a specific area, the user needs to be located within the specific area and trigger the marking mode of the headphones. When the user is near the center point range of the specific area and triggers the marking mode of the earphone, the user 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.
It is easy to understand that after the user completes the setting of the specific area, when the user uses the earphone, the earphone and the terminal establish a connection relationship, and the current position range of the earphone can be obtained approximately by obtaining the current position data and the effective connection distance of the terminal.
S4, judging whether the number of the current specific areas is larger than 1;
s41, if yes, screening out a target specific area from the current specific area;
s42, if not, marking the single current specific area as a target specific area;
s5, acquiring a specific playing mode preset by a user and corresponding to the target specific area, and adjusting the earphone to the specific playing mode by the terminal.
The target specific area is a specific area corresponding to triggering and acquiring the earphone specific playing mode. The specific play mode is a parameter output by the earphone configured by the user to the specific area. 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, and the specific playing mode comprises a grading 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 scenarios, the user's use habit is different, and the user can dispose at least one of different play volume, noise reduction progression, noise reduction mode and play audio effect for its self-demarcating specific area according to self demand.
It can be understood that, since the situation that the earphone is in the current specific area can be divided into two situations, one is that the earphone is in a single current specific area, and the other is that the earphone is in a plurality of current specific areas, that is, that the earphone is in an overlapping area of the plurality of current specific areas, after the current specific area is obtained, the two situations can be distinguished by determining whether the number of the current specific areas is greater than 1, so as to improve the adaptability of automatic adjustment of the earphone.
After the specific condition of the current specific area is judged, the target specific area can be obtained, then the terminal adjusts the earphone to the specific play mode by acquiring the specific play mode corresponding to the target specific area, so that the automatic adjustment function of the earphone to the play mode of the target specific area can be realized.
Further, in a preferred embodiment, the step S5 of obtaining a specific play mode preset by a user and corresponding to the target specific area includes:
acquiring the current time of a terminal;
and acquiring a corresponding specific playing mode based on the target specific area and the current time.
It is easy to understand that the usage habits of the user may be different in different time periods in the same specific area, so that after determining the target specific area where the earphone is currently located, the corresponding specific playing mode may also be selected in combination with the current time. 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 target specific area, the corresponding relation between the current time and the time periods may be used to obtain the specific playing modes corresponding to the target specific area in the different 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 determining the specific target area where the earphone is currently located, a specific playing mode 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 mode is obtained according to the time period to which the current time belongs, and the terminal adjusts the earphone to the specific playing mode corresponding to the specific target area in the time period.
Further, before the target specific area is obtained, it is required to determine whether the earphone is located in the specific area preset by the user, so as to screen the target specific area from the specific area where the earphone is located. Referring to fig. 2, in this embodiment, step S2 of sequentially determining whether the earphone is in a specific area preset by a user includes:
s21, acquiring a specific point and a range radius of a specific area;
s22, calculating the sum of the radius of the range and the effective connection distance to obtain a judgment distance;
s23, calculating the distance between the terminal and the specific point to obtain the current distance;
s24, judging whether the current distance is smaller than the judgment distance;
and S25, if yes, judging that the earphone is in a specific area preset by a user.
The specific point is a position point in the central range of the specific area, preferably the central 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. 2, in the present embodiment, the step S24 of determining whether the current distance is smaller than the determined distance further includes:
s26, if not, judging that the earphone is out of a specific area preset by a user.
It is easy to understand that when the current distance is determined to be greater than or equal to the determination distance, it is indicated that the area range of the earphone and the area range of the specific area do not intersect, so that it is possible to determine that the earphone is located outside the specific area preset by the user.
Further, referring to fig. 2, in this embodiment, after step S26 of determining that the earphone is located outside the specific area preset by the user, the method further includes:
s27, acquiring a normal play mode, and adjusting the earphone to the normal play mode by the terminal.
It can be appreciated that after it is determined that the earphone is outside the specific area preset by the user, the playing mode of the earphone needs to be adjusted to adapt to the change of the usage scene of the user. The normal playing mode is a playing mode used by the earphone outside the specific area, and may be a default playing mode of the earphone, a playing mode used by the earphone before the earphone is located in the specific area, or a playing mode generated based on a using habit of the user outside the specific area. The user moves from within the specific area to outside the specific area with the headphones or when the user uses the headphones outside the specific area, the terminal acquires the normal play mode and adjusts the play mode of the headphones 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, the rate can be set according to the design requirement, so that the abrupt sense and uncomfortable sense in the process of switching the playing mode are reduced, and the use experience of the user is prevented from being influenced.
Further, after the number of the current specific areas is determined to be greater than 1, the target specific areas need to be selected from the current specific areas, and two manners of generating overlapping areas between the current specific areas exist, wherein one is an intersecting relationship between the current specific areas, and the other is an inclusion relationship between the current specific areas. In order to more conveniently and rapidly screen out the target specific area and improve the adaptability and accuracy of acquiring the specific playing mode when the earphone is in the overlapped area, the specific point and the range radius between the current specific areas can be utilized to divide the position relationship between the current specific areas. Referring to fig. 3, in the present embodiment, step S41 of screening a target specific area from the current specific area includes:
s411, acquiring a specific point and a range radius of a current specific area;
s412, screening out the maximum value in the range radius of the current specific area as the maximum radius;
s413, marking the current specific area with the maximum radius as the maximum specific area;
s414, judging whether the specific points of the current specific area are all located outside the maximum specific area;
s415, if not, marking the current specific area within the maximum specific area as a candidate specific area;
s416, comparing the range radius of the candidate specific areas, and taking the candidate specific area with the smallest range radius as the target specific area.
Based on the situation of the position relation between the current specific areas, in order to improve the efficiency of screening the target specific areas from the current specific areas, one of the obtained current specific areas can be selected as a reference area in order to be more in line with the actual use situation of the user. Preferably, the current specific region with the largest area can be used as the reference region, i.e. the current specific region with the largest radius of the range is used as the reference region. Therefore, after the specific point and the range radius of the current specific area are obtained, the maximum value in the range radius of the current specific area needs to be screened out.
In the process of screening the maximum value of the range radii of the current specific area, there may be a case where the range radii of a plurality of current specific areas are equal, and when the foregoing occurs, an optional one of the equal and maximum range radii is defined as the maximum radius. After the maximum radius is obtained, namely the current specific area with the largest area can be determined, the current specific area with the largest radius is marked as the largest specific area so as to be used as a reference area for subsequent screening judgment, and further the efficiency of screening the target specific area from the current specific area is improved.
After the maximum specific area is obtained, the positional relationship between the specific point and the maximum specific area can be determined by using the specific points of the maximum specific area and the rest of the current specific areas, and the positional relationship between the current specific areas can be divided into two cases that the specific points are both out of the range of the maximum specific area and the existing specific points are in the range of the maximum specific area. And when the specific point is determined to be located in the maximum specific area, marking the current specific area corresponding to the specific point as a candidate specific area.
It will be appreciated that from the actual use case, it is known that when a particular point is located within the largest particular area, i.e. the current particular area to which the particular point corresponds may be a sub-divided area within the largest particular area, e.g. a meeting room area in an office area. From the viewpoint of improving the adaptability of the automatic adjustment of the earphone, the current specific area in the specific point position in the maximum specific area can be marked as a candidate specific area, and then the target specific area is further screened out from the candidate specific area.
After the candidate specific areas are obtained, the area ratio of the overlapped area in each candidate specific area can be obtained by comparing the range radius of the candidate specific area, and it is easy to understand that when the range radius of the candidate specific area is small, the area ratio of the overlapped area is large, so that the candidate specific area with the smallest range radius is taken as the target specific area, and the situation of actual use of a user is more fit.
Further, in the present embodiment, the step S414 of determining whether the specific points of the current specific area are all located outside the maximum specific area further includes:
s417, if yes, the maximum specific area is set as the target specific area.
It can be understood that when the specific points of the current specific areas are determined to be outside the maximum specific area, that is, the current specific areas and the maximum specific areas are not in the inclusion relationship, from the practical experience, the maximum specific area is selected as the target specific area, so that frequent switching of the earphone playing mode can be reduced to a certain extent, 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 automatic adjusting function of the playing mode of the earphone, and when a user wears the earphone to enter a specific area or uses the earphone in the specific area, the method can automatically judge and screen out a target specific area, automatically adjust the playing mode of the earphone to the specific playing mode corresponding to the target specific area, improve the adaptability of the automatic adjustment of the earphone, reduce the frequency of adjusting the earphone by the user, and improve the experience of using the earphone by the user.
The following is a second aspect of the application:
the present application provides an electronic device, as shown in fig. 4, 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, where 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, and effectively connecting the earphone with the terminal;
based on the current position data and the effective connection distance, sequentially judging whether the earphone is in a specific area preset by a user, wherein the specific area comprises a specific point and a range radius;
if yes, marking the specific area as the current specific area;
determining whether the number of the current specific areas is greater than 1;
if yes, screening out a target specific area from the current specific area;
and acquiring a specific play mode preset by a user and corresponding to the target specific area, and adjusting the earphone to the specific play mode by the terminal.
2. The method for controlling playback of headphones as recited in claim 1, wherein the step of sequentially determining whether the headphones are within a specific area preset by a 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 for controlling playback of headphones as recited in claim 1, wherein the step of screening out the target specific area from the current specific area comprises:
acquiring a specific point and a range radius of the current specific area;
screening out the maximum value in the range radius of the current specific area as the maximum radius;
marking the current specific area with the maximum radius as the maximum specific area;
judging whether the specific points of the current specific area are all located outside the maximum specific area;
if not, marking the current specific area with the specific point positioned in the maximum specific area as a candidate specific area;
and comparing the range radius of the candidate specific areas, and taking the candidate specific area with the smallest range radius as the target specific area.
4. The method of claim 3, wherein the step of determining whether the specific points of the current specific area are all located outside the maximum specific area further comprises:
and if so, taking the maximum specific area as the target specific area.
5. 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 a user.
6. The method for controlling playback of an earphone according to claim 5, wherein the step of determining that the earphone is outside a specific area preset by a user further comprises:
a normal play mode is acquired and the terminal adjusts the earphone to the normal play mode.
7. The method of claim 1, wherein the step of determining whether the number of the current specific areas is greater than 1 further comprises:
if not, marking the single current specific area as the target specific area.
8. 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 target specific area includes:
acquiring the current time of the terminal;
and acquiring a corresponding specific playing mode based on the target specific area and the current time.
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.
CN202311102139.2A 2023-08-30 2023-08-30 Earphone playing control method, electronic equipment and storage medium Active CN117041803B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311102139.2A CN117041803B (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
CN202311102139.2A CN117041803B (en) 2023-08-30 2023-08-30 Earphone playing control method, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN117041803A true CN117041803A (en) 2023-11-10
CN117041803B CN117041803B (en) 2024-03-22

Family

ID=88629925

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN117041803B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104469670A (en) * 2014-10-22 2015-03-25 广东小天才科技有限公司 Method for switching sound effect mode based on position of mobile terminal and mobile terminal
CN105025417A (en) * 2015-07-28 2015-11-04 Tcl集团股份有限公司 Method and system for automatically adjusting earphone volume according to positioning information
US10111002B1 (en) * 2012-08-03 2018-10-23 Amazon Technologies, Inc. Dynamic audio optimization
CN109672958A (en) * 2018-12-14 2019-04-23 歌尔科技有限公司 Control method for playing back and equipment
CN110049403A (en) * 2018-01-17 2019-07-23 北京小鸟听听科技有限公司 A kind of adaptive audio control device and method based on scene Recognition
CN111935583A (en) * 2020-08-24 2020-11-13 Oppo(重庆)智能科技有限公司 Earphone mode control method, earphone mode control device, terminal equipment, earphone mode control system and storage medium
CN112188345A (en) * 2020-10-16 2021-01-05 歌尔科技有限公司 Volume gear adjusting method and device, earphone and computer readable storage medium
CN112788176A (en) * 2019-11-11 2021-05-11 Oppo广东移动通信有限公司 Earphone volume adjusting method and device, storage medium and electronic equipment
WO2021218377A1 (en) * 2020-04-29 2021-11-04 Oppo广东移动通信有限公司 Noise reduction mode control method and apparatus, electronic device and storage medium
WO2022037398A1 (en) * 2020-08-21 2022-02-24 华为技术有限公司 Audio control method, device, and system
CN114647397A (en) * 2020-12-21 2022-06-21 中兴通讯股份有限公司 Earphone play control method and device, electronic equipment and storage medium
CN114666695A (en) * 2020-12-22 2022-06-24 华为技术有限公司 Active noise reduction method, device and system

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10111002B1 (en) * 2012-08-03 2018-10-23 Amazon Technologies, Inc. Dynamic audio optimization
CN104469670A (en) * 2014-10-22 2015-03-25 广东小天才科技有限公司 Method for switching sound effect mode based on position of mobile terminal and mobile terminal
CN105025417A (en) * 2015-07-28 2015-11-04 Tcl集团股份有限公司 Method and system for automatically adjusting earphone volume according to positioning information
CN110049403A (en) * 2018-01-17 2019-07-23 北京小鸟听听科技有限公司 A kind of adaptive audio control device and method based on scene Recognition
CN109672958A (en) * 2018-12-14 2019-04-23 歌尔科技有限公司 Control method for playing back and equipment
CN112788176A (en) * 2019-11-11 2021-05-11 Oppo广东移动通信有限公司 Earphone volume adjusting method and device, storage medium and electronic equipment
WO2021218377A1 (en) * 2020-04-29 2021-11-04 Oppo广东移动通信有限公司 Noise reduction mode control method and apparatus, electronic device and storage medium
WO2022037398A1 (en) * 2020-08-21 2022-02-24 华为技术有限公司 Audio control method, device, and system
CN111935583A (en) * 2020-08-24 2020-11-13 Oppo(重庆)智能科技有限公司 Earphone mode control method, earphone mode control device, terminal equipment, earphone mode control system and storage medium
CN112188345A (en) * 2020-10-16 2021-01-05 歌尔科技有限公司 Volume gear adjusting method and device, earphone and computer readable storage medium
CN114647397A (en) * 2020-12-21 2022-06-21 中兴通讯股份有限公司 Earphone play control method and device, electronic equipment and storage medium
CN114666695A (en) * 2020-12-22 2022-06-24 华为技术有限公司 Active noise reduction method, device and system

Also Published As

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

Similar Documents

Publication Publication Date Title
CN109951596A (en) Adjusting method, device, storage medium and the mobile terminal of screen intensity
US10410651B2 (en) De-reverberation control method and device of sound producing equipment
US9294612B2 (en) Adjustable mobile phone settings based on environmental conditions
US9541986B2 (en) Adaptive screen timeouts based on user preferences, interaction patterns and active applications
EP2852133B1 (en) Ringtone adjustment and processing method and device
US8238592B2 (en) Method for user indvidualized fitting of a hearing aid
EP3823299A1 (en) Method for controlling volume of wireless headset, wireless headset and mobile terminal
CN109408207A (en) Micro services access control method, device and storage medium
CN108510963A (en) Method of adjustment, device, storage medium and the intelligent terminal of screen intensity
CN109218535A (en) Intelligence adjusts method, apparatus, storage medium and the terminal of volume
CN110175014B (en) Wireless earphone volume control method, system, wireless earphone and storage medium
US10979813B2 (en) Terminal and method controlling for stereo sound effect thereof
CN109511041B (en) Earphone starting setting method and device and earphone
KR101440269B1 (en) Method for Fitting a Hearing Aid Employing Mode of User's Adaptation
CN110556107A (en) control method and system capable of automatically adjusting voice recognition sensitivity, air conditioner and readable storage medium
CN108055687A (en) Wireless network connecting method, device, terminal device and storage medium
CN113390170A (en) Method and device for controlling air conditioner and air conditioner
CN117041803B (en) Earphone playing control method, electronic equipment and storage medium
CN113422866B (en) Volume adjusting method and device, storage medium and electronic equipment
CN112015365A (en) Volume adjustment method and device and electronic equipment
CN112600897B (en) Multi-user access control method and device for intelligent equipment
CN105278832B (en) A kind of terminal and its control method
CN117061927B (en) Earphone playing control method, electronic equipment and storage medium
CN113660512B (en) Audio processing method, device, server and computer readable storage medium
CN114413437A (en) Parameter adjusting method and device for air conditioner compressor and storage medium

Legal Events

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