Earphone control method, earphone, earphone control device and storage medium
By adjusting the playback parameters of the headphone unit and using the navigation route and current position to determine the sound source position, the problem of interrupting playback during navigation guidance is solved, and the effect of not affecting the music playback experience in navigation mode is achieved.
Patent Information
- Application Number
- CN202510005365.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-02
- Publication Date
- 2025-05-06
AI Technical Summary
The headset outputs a voice prompt during navigation guidance, which will interrupt the currently played audio, affecting the user's listening experience.
By determining the sound source position according to the navigation route and the current position, and adjusting the playback parameters of the headphone unit, the headphones can provide navigation information through the playback effect of the current audio, avoiding the voice prompt interruption of playback.
It realizes that the user's music playback experience does not affect the user's music playback experience in navigation mode, and provides navigation information through spatial sound effects to improve the user's navigation experience.
Smart Images

Figure CN119946489A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of earphone technology, and in particular to an earphone control method, an earphone, an earphone control device, and a storage medium. Background Art
[0002] When using headphones for navigation guidance, the headphones usually output corresponding voice prompts at a certain fork in the road, such as outputting a prompt to turn left. However, in actual use, when the navigation voice prompt is given, the content currently played by the headphones will be interrupted and will not be resumed until the prompt ends, thus affecting the user's listening experience.
[0003] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0004] The main purpose of the present application is to provide a method for controlling headphones, headphones, a headphone control device and a storage medium, aiming to solve the technical problem that outputting voice prompts affects the currently playing audio, resulting in a poor user experience.
[0005] To achieve the above object, the present application proposes a method for controlling earphones, the method comprising:
[0006] Determine the location of the sound source based on the navigation route and current location;
[0007] Determining the broadcasting parameters of the earphone unit according to the sound source position;
[0008] The earphone unit is controlled to play the current audio according to the broadcasting parameters, so that the earphone unit can provide navigation information through the broadcasting effect of the current audio.
[0009] In one embodiment, the step of determining the broadcasting parameters of the earphone unit according to the sound source position includes:
[0010] If the sound source is located on the left earphone unit side, the output volume of the left earphone unit is greater than the output volume of the right earphone unit;
[0011] If the sound source is located at the right earphone unit side, the output volume of the right earphone unit is greater than the output volume of the left earphone unit, wherein the broadcast parameter includes the magnitude relationship between the output volumes of the left earphone unit and the right earphone unit.
[0012] In one embodiment, after the step of determining the location of the sound source according to the navigation route and the current location, the method further includes:
[0013] If the sound source position is on the left earphone unit side, or the sound source position is on the right earphone unit side, the left earphone unit or the right earphone unit is controlled to vibrate.
[0014] In one embodiment, the step of determining the broadcasting parameters of the earphone unit according to the sound source position includes:
[0015] Determine, according to the sound source position and the current position, a first distance between the left earphone unit and the sound source position, and a second distance between the right earphone unit and the sound source position;
[0016] The playback delay and / or volume between the left earphone unit and the right earphone unit are determined according to the first distance and the second distance.
[0017] In one embodiment, the step of determining the playback delay and / or volume between the left earphone unit and the right earphone unit according to the first distance and the second distance includes:
[0018] determining a difference between the first distance and the second distance;
[0019] Using the difference as an input parameter of a preset delay model to obtain the playback delay; and / or
[0020] The volume level is determined according to the correlation between the difference and the volume information.
[0021] In one embodiment, the earphone unit includes a left earphone unit and a right earphone unit, and the step of controlling the earphone unit to play the current audio according to the broadcast parameter so that the earphone unit can provide navigation information through the broadcast effect of the current audio includes:
[0022] Determine the on / off status of the channel driving units of the left earphone unit and the right earphone unit corresponding to the broadcasting parameters, and control the left earphone unit and the right earphone unit to play the current audio based on the channel driving units in the on state; or
[0023] Determine the audio output power of the left earphone unit and the right earphone unit corresponding to the broadcast parameter, and control the left earphone unit and the right earphone unit to play the current audio based on the audio output power; or
[0024] Determine the playback delay of the left earphone unit and the right earphone unit corresponding to the broadcast parameter, and control the left earphone unit and the right earphone unit to play the current audio based on the playback delay.
[0025] In one embodiment, the step of determining the location of the sound source according to the navigation route and the current location includes:
[0026] Determine the branch road information corresponding to the navigation route, and determine the sound source location based on the branch road information and the current location; or
[0027] Determine the current position and the preset distance to a target position corresponding to the navigation route, and set the target position to the sound source position.
[0028] In addition, to achieve the above-mentioned purpose, the present application also proposes an earphone, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the earphone control method as described above.
[0029] In addition, to achieve the above-mentioned purpose, the present application also proposes a headset control device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the headset control method as described above.
[0030] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the headphone control method described above are implemented.
[0031] One or more technical solutions proposed in this application have at least the following technical effects:
[0032] First, when the earphones are playing music and are in navigation guidance mode, the location of the sound source is determined by the guided navigation route information, and then the broadcast parameters for controlling the spatial sound effects output by the earphones are determined by the location of the sound source. Finally, the current audio is played based on the broadcast parameters. In this way, when the earphones are in navigation mode, based on the spatial audio effects generated by the two earphone units, the earphone units provide navigation information through the broadcast effects of the current audio. When using the earphones for navigation, the navigation information will not affect the user's actual hearing sense, thereby improving the user's navigation experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0034] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0035] Figure 1 A schematic diagram of an optional system architecture of headphones provided for the headphone control method of the present application;
[0036] Figure 2A schematic diagram of another optional system architecture of headphones provided for the headphone control method of the present application;
[0037] Figure 3 A schematic diagram of a flow chart of a first embodiment of a method for controlling headphones of the present application;
[0038] Figure 4 A schematic diagram of navigation information provided in the first embodiment of the headset control method of the present application;
[0039] Figure 5 A schematic diagram of navigation information and target location provided in the first embodiment of the headset control method of the present application;
[0040] Figure 6 A schematic diagram of the location of a sound source provided in the second embodiment of the headphone control method of the present application;
[0041] Figure 7 Schematic diagram of the distance between the earphone unit and the sound source provided in the fourth embodiment of the earphone control method of the present application
[0042] Figure 8 Schematic diagram of the device structure of the hardware operating environment involved in the headset control method in the embodiment of the present application.
[0043] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0044] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0045] When the headset is used for navigation guidance, the headset usually outputs corresponding voice prompts at a fork in the road, such as outputting a prompt to turn left. However, in actual use, when the navigation voice prompt is given, the current content played by the headset will be interrupted and will not be resumed until the prompt ends, thus affecting the user's listening experience.
[0046] The present application provides a solution. In navigation mode, the playback parameters of the left and right earphone units are adjusted according to the direction of the sound source during actual navigation guidance, so that the earphones produce a playback effect in the same direction as the sound source position. For the user, a binaural effect is produced, and the user can determine the current location to be traveled based on the actual audio source, avoiding the interruption of the earphone playback content due to the output prompt sound, thereby improving the audio playback effect and navigation guidance effect.
[0047] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device, a headset, etc. that can realize the above functions. The following description is based on the execution subject of the headset.
[0048] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0049] The present application embodiment provides an earphone, which can be a wireless Bluetooth earphone and a headphone. When the earphone is a wireless Bluetooth earphone, please refer to Figure 1 The system architecture of the headset includes a Bluetooth chip, a processor unit, a decoding chip, an input module, and an output module. If the headset is a wired headset, it does not include a Bluetooth chip. Please continue to refer to Figure 1 The processor unit is used to receive and transmit Bluetooth signals to process audio signals, and the decoding chip is used to decode the received signals, such as the music signals received by the decoding processor unit through the Bluetooth chip. The input module and the output module are used to input and output audio signals respectively.
[0050] Exemplarily, when navigation guidance is performed based on headphones, the processor unit is connected to the control device through a Bluetooth chip, thereby receiving instructions sent by the control device and receiving the position information of the headphones fed back by the control device. For example, the user controls the headphones to play music through a mobile phone, and then turns on the navigation function. At this time, the headphones enter the navigation mode, and then the headphones can obtain the position information of the headphones detected by the mobile phone, which can characterize the user's current state and the next location to go. At the same time, the headphones determine the location of the sound source through the target location of the journey, and then based on the position information and the location of the sound source, control the headphones to change the audio output effect (so that the user has a binaural effect), and then let the user determine the direction to go based on the direction of the spatial audio. Among them, if the user is traveling in the correct direction, the direction of the sound source is changed to the front, and the headphone volume returns to normal. If the user is traveling in the wrong direction, the volume will continue to be adjusted while gradually increasing the current volume to remind the user that he is currently walking in the wrong direction until the user turns to the correct direction.
[0051] Optionally, see Figure 2 The headset is also provided with a motion sensing module, which is used to obtain the posture information of the headset. For example, the motion sensing module is a gyroscope, and the headset automatically obtains the current posture information through the gyroscope, so that the headset can determine the direction of travel of the user when wearing the headset based on the current posture information, as well as the relative position relationship between the left and right earphone units and the sound source position, thereby improving the effectiveness of audio space playback.
[0052] Based on this, the present application embodiment provides a method for controlling earphones, please refer to Figure 3 , Figure 3 This is a flow chart of the first embodiment of the earphone control method of the present application.
[0053] In this embodiment, the headset control method includes steps S10 to S30:
[0054] Step S10, determining the location of the sound source according to the navigation route and the current location.
[0055] In this embodiment, when the earphone is in a music playing state, it enters a navigation mode after responding to the user's command through a control button or a control device, and then provides navigation guidance. During the navigation process, by adjusting the audio volume of the earphone or the audio playback delay of the left and right earphone units, the audio currently playing in the earphone unit produces a spatial effect, ensuring that when providing navigation guidance through the currently playing audio, there is no need to output voice prompts, thereby improving the user experience.
[0056] It should be noted that the navigation mode can be the functional mode of the headset itself, or it can be the navigation mode when the headset is used for navigation guidance after the control device of the headset, such as a mobile phone, opens the navigation program. During normal use, after the user uses the headset to play a song, if the address is entered in the navigation program of the mobile phone and navigates, or after inputting the instruction to navigate to a certain place into the headset, the headset enters the navigation mode. After entering the navigation mode, the target location that needs navigation guidance can be determined based on the actual navigation information, so as to use the target location as the sound source location. The sound source location refers to the location of the sound source when the user wears the headset. For example, when the sound source location is directly in front, the user hears the sound coming from the front. The headset can obtain the current position information through a motion sensing unit such as a gyroscope, obtain the current position information based on a positioning module, or obtain the current position of the headset through a control device such as a mobile phone or a charging bin.
[0057] As an optional implementation of determining the location of the sound source, the target location on the navigation route can be determined based on the current location and the preset distance of the navigation route, and then the target location is set as the location of the sound source. Figure 4 , in the process of navigating from the current location to the destination, you can set a target location based on a preset distance. Figure 4 In the route shown, multiple target positions a, b, c, d and e are set at the same distance. Based on the current position, in the navigation route, the sound source positions are a, b, c, d and e respectively. Based on this, the problem of difficulty in moving based on the actual sound source direction when directly taking the destination as the sound source position can be avoided.
[0058] Optionally, the sound source position can also be set at each fork in the road corresponding to the navigation route. Therefore, the fork in the road information corresponding to the navigation route can be determined first, and then the sound source position can be determined based on the fork in the road information and the current position. For example, the position of the nearest fork in the road is set as the sound source position, and then after the user reaches the fork in the road, the position of the next fork in the road is set as the sound source position.
[0059] It is understandable that in actual navigation scenarios, except for open terrain or simple navigation routes, the user's actual route is not a straight line. Therefore, the navigation destination is usually not set to the sound source location. For example, the current navigation route information is as follows: Figure 5 As shown, when the user walks from the current location to the destination, the navigation route is Route A. At this time, if the destination is set to the sound source location, when the audio playback of the earphone is adjusted based on the sound source location, a sound source at the lower right of the current location will be generated. If in an open location, the user can travel to the destination via Route B. In a non-open location, Route B is usually blocked by obstacles and cannot be traveled. At this time, when navigation guidance is performed based on the sound source location, it will be impossible to travel due to route obstruction, reducing the navigation guidance effect.
[0060] Step S20, determining the broadcasting parameters of the earphone unit according to the sound source position.
[0061] The broadcasting parameters refer to the parameters of the current output effect that the earphone unit needs to adjust, including the volume of the earphone and the playback delay, etc. For example, the broadcasting parameters are to increase the volume of the left earphone unit by a decibel, reduce the volume of the right earphone unit by b decibels, turn off the left earphone unit, or delay the playback of the left earphone unit by c milliseconds, etc. If the vibration output power of the earphone unit needs to be adjusted, the broadcasting parameters can be that the left earphone unit vibrates based on frequency B, or that the vibration frequency of the right earphone unit is increased.
[0062] In this embodiment, the broadcasting parameters can be determined directly by the relative position relationship between the sound source position and the left and right earphone units, and the relative position relationship includes the side where the sound source position is relative to the earphone unit, and the relative distance between the sound source position and the earphone unit, etc. For example, if the sound source position is on the side of the left earphone unit, the broadcasting parameters can be determined as increasing the output volume of the left earphone unit, or reducing the output volume of the right earphone unit, or increasing the volume playback speed of the left earphone unit, so that the content played by the earphone unit can produce a binaural effect for the user, so that the user can determine the actual direction of travel according to the sound source in the binaural effect.
[0063] Optionally, in the process of adjusting the output volume of the left and right earphone units, if the user goes in the wrong direction, such as the guidance direction corresponding to the current spatial sound effect is to the right, and the user keeps walking forward, then the output volume of the right earphone unit will not only be greater than that of the left earphone unit, but its volume will gradually increase, thereby prompting the user that he has gone in the wrong direction. Therefore, when determining the broadcast parameters of the earphone unit based on the sound source position, if the distance between the sound source position and the current position gradually increases, it is necessary to increase the current audio playback parameters of the earphone, that is, to determine the broadcast parameters as increasing the audio playback parameters of the earphone unit, wherein the increased parameters can be dynamically determined based on the distance between the sound source position and the current position, as well as the mapping relationship between distance and volume. Optionally, when the user's current direction of travel deviates from the guidance direction of the navigation route, a prompt can also be given by vibration.
[0064] Step S30, controlling the earphone unit to play the current audio according to the broadcasting parameters, so that the earphone unit can provide navigation information through the broadcasting effect of the current audio.
[0065] In this embodiment, the earphone unit is usually in an audio playback state. Therefore, after determining the broadcast parameter, if the broadcast parameter is to increase the playback volume of the right earphone unit, the increase value is a decibel, and the left earphone unit reduces the volume by b decibels. At this time, after playing the current audio through the broadcast parameter, the playback volume of the right earphone unit is increased by a decibel, and the volume of the left earphone unit is reduced by b decibels (can be reduced to 0 decibels). Based on this, due to the difference in sound volume, the audio heard by the user wearing the earphone produces a binaural effect, that is, the direction of the sound source is clearly perceived to be the opposite direction corresponding to the right earphone unit side. Based on this, through the spatial audio playback effect generated when playing the current audio, the user can sense the current navigation information through the spatial sound effect, thereby improving the navigation guidance effect. Therefore, providing navigation information through the playback effect of the current audio refers to the binaural effect based on the current spatial sound effect, so that the user determines the navigation direction based on the direction of the sound source. By adjusting the playback effect of the current audio, the output of voice guidance is avoided to interrupt the current playback content, thereby improving the user experience.
[0066] It is understandable that when the user is in a noisy environment, if the voice reminder is output through headphones, the voice reminder content is interfered by the ambient noise, making it difficult for the user to hear the prompt instructions or misunderstand the content of the prompt instructions, resulting in poor headphone navigation guidance. Although increasing the volume cannot completely eliminate ambient noise, it can mask or reduce the interference of noise on the user's hearing to a certain extent. When the intensity of the voice signal increases or the audio direction changes, the user is more likely to focus on the voice signal and ignore some of the ambient noise, making it easier for the user to distinguish different voice signals. In the navigation guidance, the user determines the direction of travel through the changes in the sound output by the headphones to improve the navigation guidance effect. Similarly, by outputting vibrations, the user can directly perceive the direction of travel, which also avoids reducing the navigation guidance effect due to noise interference.
[0067] Furthermore, the process of determining broadcast parameters and playing the current audio based on the broadcast parameters is performed in real time, that is, after the earphone determines the broadcast parameters according to the sound source location and plays the current audio based on the broadcast parameters, a spatial sound effect is generated to provide navigation information for the user. Then, after the user moves in the guidance direction in the navigation information or goes to a position opposite to the guidance direction, the earphone will still dynamically update the current broadcast parameters based on the actual sound source location and play the current audio based on the dynamically changing broadcast parameters.
[0068] Exemplarily, the user plays music through headphones and performs navigation guidance based on the headphones. At this time, the user is traveling north, and at a fork in the road, the route of navigation guidance is west. After determining the broadcast parameters, the current audio is played based on the broadcast parameters, so that the output volume of the left headphone unit corresponding to the west direction is increased, and the output volume of the right headphone unit is reduced to 0 decibels. At this time, the left headphone unit plays audio. Based on the binaural effect, the user can intuitively perceive that the sound source of the headphones is on the left, and the current direction needs to be turned left. When the user turns his head to walk left, as the position of the headphones changes, the volume of the left headphone unit gradually decreases to a normal level, and the volume of the right headphone unit gradually rises to a normal level, so that the navigation guidance when the direction of travel needs to be changed is completed. Based on this, the headphone output volume can be dynamically adjusted based on the dynamically generated broadcast parameters to avoid the situation where the headphone output content is interrupted and the experience is poor. Among them, if the user is not sure about the current direction of travel, the audio output effect of the headphone unit can be adjusted by turning the head / turning around, based on the change in the relative position of the headphone unit and the sound source position, so as to improve the navigation guidance effect.
[0069] This embodiment provides a method for controlling headphones. After the headphones enter the navigation state, the location of the sound source that meets the navigation guidance is determined through navigation information, and then the broadcast parameters for adjusting the playback control state of the headphone unit are determined through the relative position relationship between the sound source location and the headphone unit. The current audio of the headphones is played based on the broadcast parameters, so that the headphone unit produces the same playback effect in the direction of the sound source location, and then the navigation information is provided through the playback effect of the current audio, so that the user can determine the direction of travel based on the sound source. Based on this, there is no need to output voice prompts, which improves the user's music playback experience during the navigation guidance process. At the same time, in a noisy environment, the sound source can be further determined by changing the posture information such as turning the head or turning around, thereby improving the navigation guidance effect.
[0070] Based on the first embodiment, in the second embodiment of the present application, the same or similar contents as those of the first embodiment can be referred to the above introduction, and will not be described in detail later. On this basis, step S20 includes step S21:
[0071] Step S21: if the sound source is located at the left earphone unit side, the output volume of the left earphone unit is greater than the output volume of the right earphone unit.
[0072] In this embodiment, the broadcasting parameters include the magnitude relationship between the output volume of the left earphone unit and the right earphone unit. The relative position relationship between the sound source position and the earphone unit includes the position of the sound source position relative to the side where the earphone unit is located. Therefore, if the sound source position is on the left earphone unit side, the broadcasting parameters can be determined to increase the volume of the left earphone unit and reduce the output volume of the right earphone unit, or turn on the left channel driving unit of the earphone unit and turn off the right channel driving unit at the same time, so that the output volume of the left earphone unit is greater than the output volume of the right earphone unit, and produce a binaural effect with the sound source being on the left.
[0073] Optionally, if the sound source is located on the right earphone unit side, the broadcasting parameters are determined to increase the volume of the right earphone unit and reduce the output volume of the left earphone unit, so that the output volume of the right earphone unit is greater than the output volume of the left earphone unit.
[0074] For example, the position the user is facing and the position of the sound source are as follows: Figure 6As shown, it can be seen that the sound source position is on the right earphone unit side. At this time, it is necessary to increase the output volume of the right earphone unit, or reduce the output volume of the left earphone unit, or increase the output volume of the right earphone unit while reducing the output volume of the left earphone unit, so that the output volume of the right earphone unit is greater than that of the left earphone unit, thereby generating a stereo effect of the sound source coming from the right side, which is convenient for users to perceive the direction of the sound source and the current direction of travel. Among them, when the sound source position is on the right earphone unit side, in addition to generating the spatial sound effect on the right side through the right earphone unit, the left earphone unit can also cooperate with the delay and volume adjustment to generate the sound source in front of the right, the right side or the back of the right side, thereby further improving the navigation guidance effect.
[0075] This embodiment provides a method for controlling headphones, which determines the broadcast parameters that actually need to be adjusted on the side of the headphone unit where the sound source is located, so that the playback parameters or vibration parameters of the left and right headphone units on the side corresponding to the sound source direction are greater than those on the other side, thereby ensuring the accuracy of navigation guidance.
[0076] In another embodiment, the vibration effect of the earphone unit can be adjusted so that the user can perceive the direction in which he needs to go. Specifically, if the sound source is on the left earphone unit side, or the sound source is on the right earphone unit side, the left earphone unit or the right earphone unit is controlled to vibrate. For example, if the sound source is on the left, the left earphone unit is controlled to vibrate so that the user perceives that he needs to go left. If the sound source is on the right, the right earphone unit is controlled to vibrate. The user can also set the vibrating earphones based on actual needs, for example, when walking to the left, the right earphone unit is controlled to vibrate, and when walking to the right, the left earphone unit is controlled to vibrate, etc.
[0077] It should be noted that, usually when moving left or right, the vibration of the earphone unit is adjusted, and when guiding the user to move forward, the guidance is based on the sound source of the currently playing audio.
[0078] Based on the first embodiment, in the fourth embodiment of the present application, the same or similar contents as those in the first embodiment can be referred to the above description, and will not be described in detail later. On this basis, step S20 of the headset control method further includes steps S22 to S23:
[0079] Step S22: determining a first distance between the left earphone unit and the sound source position, and a second distance between the right earphone unit and the sound source position according to the sound source position and the current position.
[0080] In this embodiment, in the process of determining the first distance between the left earphone unit and the sound source position, and the second distance between the right earphone unit and the sound source position, the travel direction can be determined based on the current position, and the angle between the travel direction and the sound source position, and the distance between the current position and the sound source position can be obtained. The distance between the current position and the sound source position and the relative angle between the positive direction of the current position and the sound source position can be obtained by controlling a device such as a navigation module of a mobile phone, so as to calculate the first distance and the second distance through a trigonometric function relationship.
[0081] Optionally, the position information of the earphone unit can also be determined by a motion sensing module of the earphone unit, such as a gyroscope, and then the direction of travel and the current position of the earphone unit are determined according to the position information, and then the first distance and the second distance are determined by the distance between the current position and the sound source position, and the angle between the distance and the direction of travel. Among them, after the earphone enters the navigation mode, the control device carried by the mobile phone, charging bin, etc. can detect the positioning information of the earphone in real time, and generate the position information of the earphone according to the positioning information, and determine the current position based on its own motion sensing device such as a gyroscope. Therefore, the earphone can send a position information acquisition instruction to the control device, and receive the position information after the control device generates and returns the position information based on the received position information acquisition instruction. Optionally, after the earphone enters the navigation mode, it can also detect its own inclination angle and other information in real time through its own motion sensing module, such as a gyroscope, and then generate the current position information and posture information. That is, the position and posture information of the earphone is obtained based on the motion sensing module, and then the position information of the earphone is generated according to the position and posture information. It should be noted that the implementation method of calculating the position information of the headset through modules such as a gyroscope is not limited here.
[0082] Optionally, if the execution subject is a control device such as a mobile phone or a charging case, the position information of the headset can be generated directly through the built-in positioning detection module of these devices.
[0083] By obtaining the position information of the earphones, the distance between the left and right earphone units and the sound source is calculated based on the current position information, and then the delay information is calculated based on the distance, so that a stereo playback effect is produced when the earphone unit outputs the currently playing audio.
[0084] For example, in the process of calculating the first distance and the second distance, please refer to Figure 7 , OY is the current direction of travel, O is the center of the earphone unit, i.e. the position of the face, A is the left earphone unit, B is the right earphone unit, C is the position of the sound source, and α is the angle between the middle position of the earphone unit and the position of the sound source. Among them, the size of OA and OB is half of the distance between the two earphones, which is a known parameter when the user wears the earphones. The distance between the middle position of the earphone unit and the position of the sound source is OC, which is also a known parameter. Based on the above known parameters, please continue to refer to Figure 7 , each parameter satisfies the following formula:
[0085] CD=sin(90-α)*OC,
[0086] OD=CD / tan(90-α),
[0087] BD=OD-OB,
[0088] BC 2 =BD 2 +CD 2 ,
[0089] AC 2 =AD 2 +CD 2 ,
[0090] Therefore, based on α, OC and OB being known parameters, by substituting these known parameters into the above formula, the distance BC between the right earphone unit and the sound source position and the distance AC between the left earphone unit and the sound source position can be obtained.
[0091] Optionally, the first distance and the second distance may also be determined by other calculation methods, and the present application does not limit the calculation method.
[0092] Step S23: determining a playback delay and / or volume between the left earphone unit and the right earphone unit according to the first distance and the second distance.
[0093] In this embodiment, after obtaining the actual distance between the two earphone units and the sound source, the playback delay between the two earphone units can be determined by the distance between the two earphone units and the sound source, thereby generating a binaural effect based on the time difference when the audio enters the human ear, and then determining the direction of travel. Optionally, the volume between the two earphone units can also be determined by the distance, so as to provide the user with corresponding navigation guidance information through the binaural effect generated by sounds of different sizes.
[0094] Furthermore, the playback delay and volume between the earphone units can be determined simultaneously, so that when the current audio is played based on the playback delay and volume, a more accurate spatial playback sound effect is provided to the user, thereby further improving the navigation guidance effect.
[0095] In the process of determining the specific playback delay and / or volume parameters, the difference between the two can be determined, and the playback delay can be determined by mapping the difference with the preset delay, or the volume can be determined by associating the difference with the volume. In addition, the obtained difference parameter can be input into the relevant playback delay model or volume model through a learning model to obtain the corresponding delay parameter and volume.
[0096] Therefore, as an optional implementation, in the process of determining the playback delay and / or volume, the difference between the first distance and the second distance can be first determined, and then the difference can be used as an input parameter of a preset delay model to obtain the playback delay, and / or the difference can be used as an input parameter of a preset volume model to obtain volume information, thereby generating spatial sound effects based on the playback delay or volume, and combining the two parameters of playback delay and volume to generate spatial sound effects, thereby improving the user's perception of the sound source, thereby improving the accuracy of navigation guidance. In addition, the volume can be determined directly based on the correlation between the difference and the volume information.
[0097] It is understandable that when the first distance is less than the second distance, the playback delay of the right earphone unit is greater than that of the left earphone unit; when the first distance is equal to the second distance, the audio delay of the right earphone unit is equal to the audio delay of the left earphone unit; when the first distance is greater than the second distance, the audio delay of the right earphone unit is less than the audio delay of the left earphone unit. Among them, the specific audio delay parameters can be set based on actual needs, and this application is not limited here. The playback delay and volume can be 0, that is, the audio is played with delay through one of the earphone units, and / or the current audio is played through one earphone unit.
[0098] The present embodiment provides a method for controlling headphones, which determines the delay information and / or volume level of the left and right headphone units when playing audio by determining the position of the headphone units and the sound source, so that a stereoscopic playback effect is produced when the headphone units output the currently playing audio, allowing the user to determine the actual direction of travel based on the stereo sound effect, thereby improving the navigation guidance effect.
[0099] Based on the first embodiment of the present application, in the fifth embodiment of the present application, the same or similar contents as those in the first embodiment can be referred to the above introduction, and will not be repeated in the following. On this basis, step S30 includes step S31:
[0100] Step S31, determining the on / off status of the channel driving units of the left earphone unit and the right earphone unit corresponding to the broadcasting parameters, and controlling the left earphone unit and the right earphone unit to play the current audio based on the channel driving units in the on state.
[0101] Exemplarily, when the broadcasting parameters are to turn on the front channel driver unit of the right earphone unit and turn off other channel driver units, the current audio can be played through the front channel driver unit of the right earphone unit, thereby generating a spatial sound effect of sound coming from the right front, thereby improving the current navigation guidance effect.
[0102] Optionally, the audio output power of the left and right earphone units corresponding to the broadcast parameter can also be determined, and the left and right earphone units can be controlled to play the current audio based on the audio output power. In addition to adjusting the channel drive unit, the output volume of the left and right earphone units can also be adjusted to produce a stereo sound effect.
[0103] Optionally, the left and right earphone units can also produce a stereo sound effect by adjusting the delay parameters of the output volume of the left and right earphone units, that is, determining the audio delay information of the left and right earphone units corresponding to the broadcast parameters, and controlling the left and right earphone units to adjust the playback of the current audio based on the audio delay information.
[0104] The present embodiment provides a method for controlling headphones, which adjusts the volume output of the headphone unit through broadcast parameters, or adjusts the on / off status of multiple channel driving units of the headphone, or adjusts the sound wave delay information of the headphone unit, so that the user can learn the current direction to travel through the current playback volume, or the audio output of different channel driving units in space, thereby improving the user's audio perception effect and improving the navigation guidance effect.
[0105] The present application provides an earphone, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the earphone control method in the above-mentioned first embodiment.
[0106] The present application provides a headset control device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the headset control method in the first embodiment described above.
[0107] Reference below Figure 8 , which shows a schematic structural diagram of a control device for headphones suitable for implementing an embodiment of the present application. Figure 8 The control device of the headset shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0108] like Figure 8As shown, the control device of the headset may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the control device of the headset are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the control device of the headset to communicate with other devices wirelessly or by wire to exchange data. Although the control device of the headset with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0109] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0110] The headset control device provided by the present application adopts the headset control method in the above embodiment, which can solve the technical problem that the output of voice prompts affects the currently played audio, resulting in a poor user experience. Compared with the prior art, the beneficial effects of the headset control device provided by the present application are the same as the beneficial effects of the headset control method provided by the above embodiment, and the other technical features of the headset control device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0111] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0112] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0113] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the earphone control method in the above-mentioned embodiment.
[0114] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0115] The computer-readable storage medium may be included in the control device of the headset; or may exist independently without being assembled into the control device of the headset.
[0116] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the control device of the headset, the control device of the headset:
[0117] Determine the location of the sound source based on the navigation route and current location;
[0118] Determining the broadcasting parameters of the earphone unit according to the sound source position;
[0119] The earphone unit is controlled to play the current audio according to the broadcasting parameters, so that the earphone unit can provide navigation information through the broadcasting effect of the current audio.
[0120] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0121] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0122] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0123] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned headset control method, and can solve the technical problem that the output of voice prompts affects the currently played audio, resulting in a poor user experience. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the headset control method provided by the above-mentioned embodiment, and will not be repeated here.
[0124] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A method for controlling a headset, characterized in that: The earphone control method comprises: Determine the location of the sound source based on the navigation route and current location; Determining the broadcasting parameters of the earphone unit according to the sound source position; The earphone unit is controlled to play the current audio according to the broadcasting parameters, so that the earphone unit can provide navigation information through the broadcasting effect of the current audio.
2. The method for controlling the earphone according to claim 1, characterized in that: The step of determining the broadcasting parameters of the earphone unit according to the sound source position comprises: If the sound source is located on the left earphone unit side, the output volume of the left earphone unit is greater than the output volume of the right earphone unit; If the sound source is located at the right earphone unit side, the output volume of the right earphone unit is greater than the output volume of the left earphone unit, wherein the broadcast parameter includes the magnitude relationship between the output volumes of the left earphone unit and the right earphone unit.
3. The method for controlling the earphone according to claim 1, characterized in that: After the step of determining the location of the sound source according to the navigation route and the current location, the method further includes: If the sound source position is on the left earphone unit side, or the sound source position is on the right earphone unit side, the left earphone unit or the right earphone unit is controlled to vibrate.
4. The method for controlling the earphone according to claim 1, wherein: The step of determining the broadcasting parameters of the earphone unit according to the sound source position comprises: Determine, according to the sound source position and the current position, a first distance between the left earphone unit and the sound source position, and a second distance between the right earphone unit and the sound source position; The playback delay and / or volume between the left earphone unit and the right earphone unit are determined according to the first distance and the second distance.
5. The method for controlling the earphone according to claim 4, characterized in that: The step of determining the playback delay and / or volume between the left earphone unit and the right earphone unit according to the first distance and the second distance comprises: determining a difference between the first distance and the second distance; Using the difference as an input parameter of a preset delay model to obtain the playback delay; and / or The volume level is determined according to the correlation between the difference and the volume information.
6. The method for controlling the earphone according to claim 1, characterized in that: The step of controlling the earphone unit to play the current audio according to the broadcasting parameters so that the earphone unit can provide navigation information through the broadcasting effect of the current audio comprises: Determine the on / off status of the channel driving units of the left earphone unit and the right earphone unit corresponding to the broadcasting parameters, and control the left earphone unit and the right earphone unit to play the current audio based on the channel driving units in the on state; or Determine the audio output power of the left earphone unit and the right earphone unit corresponding to the broadcast parameter, and control the left earphone unit and the right earphone unit to play the current audio based on the audio output power; or Determine the playback delay of the left earphone unit and the right earphone unit corresponding to the broadcast parameter, and control the left earphone unit and the right earphone unit to play the current audio based on the playback delay.
7. The method for controlling the earphone according to claim 1, characterized in that: The step of determining the sound source location according to the navigation route and the current location comprises: Determine the branch road information corresponding to the navigation route, and determine the sound source location based on the branch road information and the current location; or Determine the current position and the preset distance to a target position corresponding to the navigation route, and set the target position to the sound source position.
8. A headset, characterized in that: The headset comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the headset control method according to any one of claims 1 to 7.
9. A headset control device, characterized in that: The headset control device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the headset control method according to any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the method for controlling the earphone according to any one of claims 1 to 7 are implemented.