Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides an audio playing method, which is characterized by comprising the following steps: determining the use state of the earphone; generating an audio signal corresponding to the use state; and selecting a playing unit for playing the audio signal according to the using state, and playing the audio signal through the playing unit in the earphone. The embodiment of the invention can adjust the audio frequency and the playing mode according to the state of the user using the earphone, and can reduce the power consumption.
The technical solutions of the embodiments of the present invention are described in detail below with reference to the accompanying drawings and the detailed description.
As shown in fig. 1, an audio playing method provided in an embodiment of the present invention may include:
step S110, determining the usage state of the headset.
The usage status defined in the embodiment of the present invention may include, but is not limited to, a first unicast unit usage status, a second unicast unit usage status, a dual play unit usage status, and a no usage status. For example, when the dual-channel headphone is applied to a commonly-used dual-channel headphone, the usage state of the first unicast playing unit of the dual-channel headphone is that a user currently listens to sound only through the first playing unit of the dual-channel headphone, the usage state of the second unicast playing unit of the dual-channel headphone is that the user currently listens to sound only through the second playing unit of the dual-channel headphone, the usage state of the dual-playing unit of the dual-channel headphone is that the user currently listens to sound simultaneously through the first and second playing units of the dual-channel headphone, and the non-usage state of the dual-channel headphone is that the user currently does not listen to sound through any playing unit.
In a specific implementation, the method for determining the use state of the earphone can be realized by acquiring the sensing signal from the earphone. For example, sensors are disposed on both playing units of the two-channel earphone shown in fig. 18, and under the control of the terminal, sensing signals are fed back to the terminal in real time for the operation of judging the use state of the terminal. For example, when the first playing unit 181 of the earphone is provided with the first sensor and the second playing unit 182 of the earphone is provided with the second sensor, the sensing signals fed back to the terminal by the earphone include the first sensing signal acquired by the first sensor and the second sensing signal acquired by the second sensor.
The terminal may preset a criterion for judging the use state of the headset: for example, when the signal fed back by the earphone is a sensing signal fed back by a distance sensor, the distance value may be used as a criterion for determining the usage state of the earphone, that is, a preset signal level, if the distance value fed back by the distance sensor signal acquired from the earphone is not greater than the distance value set by the preset signal level, the playback unit feeding back the distance sensing signal is considered to be in a usage state, and if the distance value fed back by the distance sensor signal acquired from the earphone is greater than the distance value set by the preset signal level, the playback unit feeding back the distance sensing signal is considered to be in a non-usage state. Here, the sensor arranged on the earphone can be various, such as a temperature sensor, and accordingly, the terminal can use the temperature as a standard for measuring the sensing signal fed back by the earphone. In addition, when the sensing signals acquired by the terminal from the earphones are various, the use state judgment can be performed by taking the attribute values as the preset signal levels, so that the accuracy of the use state judgment operation is improved.
Accordingly, after the sensing signals are obtained by the first sensor of the first playing unit and the second sensor of the second playing unit, the usage state of the headphone can be determined, wherein:
and if only the first sensing signal reaches a preset signal level in the acquired first sensing signal and the acquired second sensing signal, determining that the use state of the earphone is the use state of the first unicast playing unit. As described above, when only the first sensing signal reaches the preset signal level, the first playing unit of the earphone is being used, and the second playing unit is set to be empty, and since the user only listens to sound through the first playing unit of the earphone, the current usage status of the earphone is determined as the first usage status of the unicast playing unit.
And if only the second sensing signal reaches a preset signal level in the acquired first sensing signal and the acquired second sensing signal, determining that the use state of the earphone is the use state of the second unicast playing unit. As described above, when only the second sensing signal reaches the preset signal level, it represents that the second playing unit of the headphone is being used, and the first playing unit is in an empty state, and since the user only listens to sound through the second playing unit of the headphone currently, it is determined that the current usage state of the headphone is the second usage state of the unicast playing unit.
And if the acquired first sensing signal and the acquired second sensing signal both reach the preset signal level, determining that the use state of the earphone is the use state of the double-playing unit. The first and second sensing signals reach a preset signal level, which means that the first and second playing units are used at the same time, and the current using state of the earphone is determined to be the using state of the dual playing unit because the user listens to sound at the same time through the first and second playing units of the earphone.
And if the acquired first sensing signal and the acquired second sensing signal do not reach the preset signal level, determining that the use state of the earphone is a non-use state. As described above, if neither the first sensing signal nor the second sensing signal reaches the preset signal level, it represents that the user does not use any playing unit for sound listening, and it is determined that the current usage status is the dual playing unit non-usage status.
In step S111, an audio signal corresponding to the use state is generated. According to the usage state of the earphone determined in step S110, in this step, the audio signal to be played is adaptively adjusted:
in a specific implementation, when the usage status determined in step S110 is the first single playing unit usage status, generating the audio signal corresponding to the usage status may include: acquiring a source signal needing to be played through an earphone; and converting the source signal to generate a single-channel audio signal corresponding to the using state of the first single playing unit.
In a specific implementation, the source signal to be played through the earphone may be a two-channel audio signal or a multi-channel audio signal, and when the obtained source signal is not a mono audio signal, the step converts the source signal into the mono audio signal through audio software or hardware of the main board so as to adapt to the playing mode of the use state of the first unicast playing unit.
In a specific implementation, when the usage status determined in step S110 is the second single playing unit usage status, generating the audio signal corresponding to the usage status may include: acquiring a source signal needing to be played through an earphone; and converting the source signal to generate a single-channel audio signal corresponding to the using state of the second single-broadcasting unit.
In a specific implementation, the method for generating the monaural audio signal corresponding to the use state of the second unicast playing unit is the same as the generated monaural audio signal corresponding to the use state of the first unicast playing unit, and when the obtained source signal is not a monaural audio signal, the source signal needs to be converted into a monaural audio signal through audio software or hardware of a main board so as to adapt to the playing mode of the use state of the first unicast playing unit.
In a specific implementation, when the usage status determined in step S110 is the dual play unit usage status, generating the audio signal corresponding to the usage status may include: acquiring a source signal needing to be played through an earphone, wherein the source signal comprises a first dual-channel audio signal and a second dual-channel audio signal; the source signal is converted to generate a first binaural audio signal and a second binaural audio signal corresponding to the usage status of the dual play unit.
In a specific implementation, when the obtained source signal is not a binaural audio signal, the step converts the source signal to generate a first binaural audio signal and a second binaural audio signal corresponding to the usage state of the dual play unit, so as to adapt to the play mode of the usage state of the dual play unit. The first dual-channel audio signal is used for playing through the first playing unit, and the second dual-channel audio signal is used for playing through the second playing unit. In addition, when the acquired source signal is a binaural signal including a first binaural audio signal for playing through the first playing unit of the headphone and a second binaural audio signal for playing through the second playing unit of the headphone, the first binaural audio signal and the second binaural audio signal may be directly specified as two audio signals corresponding to the usage state of the dual playing unit.
In addition, when the usage state determined in step S110 is a non-usage state, this step will not generate an audio signal. Since the non-use state is a state in which the user does not listen to sound using any playback unit, this step will stop generating any output form of audio signal in order to reduce hardware loss and energy loss.
In step S112, a playing unit for playing the audio signal is selected according to the usage status, and the audio signal is played through the selected playing unit.
In a specific implementation, when the usage status determined in step S110 is the usage status of the first unicast playing unit, a playing unit for playing the audio signal is selected according to the usage status, and the manner of playing the audio signal by the selected playing unit is as follows: selecting a first playing unit as a playing unit for playing a single-channel audio signal; and sending the single-channel audio signal to a first playing unit of the earphone, so that the first playing unit of the earphone plays the single-channel audio signal. Then, after the earphone receives the mono audio signal sent by the terminal, the first playing unit of the earphone plays the mono audio signal, and at this time, the user can listen to the sound through the first playing unit of the earphone.
In a specific implementation, when the usage status determined in step S110 is the usage status of the second unicast playing unit, a playing unit for playing the audio signal is selected according to the usage status, and the manner of playing the audio signal by the selected playing unit is as follows: selecting a second playing unit as a playing unit for playing the single-channel audio signal; and sending the single-channel audio signal to a second playing unit of the earphone, so that the second playing unit of the earphone plays the single-channel audio signal. Then, after the earphone receives the mono audio signal sent by the terminal, the second playing unit of the earphone plays the mono audio signal, and at this time, the user can listen to the sound through the second playing unit of the earphone.
In a specific implementation, when the usage status determined in step S110 is the dual playing unit usage status, a playing unit for playing the audio signal is selected according to the usage status, and the manner of playing the audio signal by the selected playing unit is as follows: selecting a first playing unit as a playing unit for playing a first binaural audio signal; selecting a second playing unit as a playing unit for playing the second two-channel audio signal; sending a first dual-channel audio signal to a first playing unit of the earphone, so that the first playing unit of the earphone plays the first dual-channel audio signal; and sending the second two-channel audio signal to a second playing unit of the earphone, so that the second playing unit of the earphone plays the second two-channel audio signal. Then, after the earphone receives the mono audio signal sent by the terminal, the first playing unit of the earphone plays the first bi-channel audio signal, and the second playing unit of the earphone plays the second bi-channel audio signal, at this time, the user can listen to the sound through the first and second playing units of the earphone.
In addition, when the usage status determined in step S110 is the non-usage status, this step stops sending the audio signal to the earphone and stopping playing the audio signal through the earphone.
In the embodiment of the present invention, the manner of playing the audio signal by the first playing unit or the second playing unit may be: as shown in the schematic circuit diagram of fig. 18, in the state of use of the first single playing unit, the generated mono audio signal can be transmitted to the first playing unit 181 through the first channel interface 183 of the headphone, so that the first playing unit 181 plays the mono audio signal generated in step S111; similarly, in the second single playing unit usage state, the generated monaural audio signal can be transmitted to the second playing unit 182 through the second channel interface 184 of the earphone, so that the second playing unit 182 plays the monaural audio signal generated in step S111; accordingly, in the dual play unit usage state, the first dual-channel audio signal generated in step S111 may be transmitted to the first play unit 181 through the first channel interface 183 of the headphone, and the second dual-channel audio signal generated in step S111 may be transmitted to the second play unit 182 through the second channel interface 184 of the headphone, so that the first play unit 181 plays the first dual-channel audio signal, and the second play unit 182 plays the second dual-channel audio signal. In addition, in the non-use state, the terminal does not transmit the audio signal to the earphone, and the earphone cannot play the sound because the earphone cannot receive the audio signal. The first channel and the second channel mentioned in the embodiments of the present invention may be a left channel and a right channel in a broad sense.
The number of the playing units of the earphone is not limited in the embodiment of the invention, and when the earphone with a specific function has a plurality of playing units, the method in the embodiment of the invention can flexibly adjust the playing according to the use state determined in the step S110, thereby realizing the control of the playing work of the plurality of playing units of the earphone.
The method of the embodiment of the invention can be implemented in a hardware mode, for example, after the terminal receives the sensing signal fed back by the earphone, the sensing signal directly controls the audio signal conversion device and the audio output device in the terminal to adjust the audio signal and the playing mode; the method can also be implemented in a mode of combining software and hardware, the sensing signal acquired from the earphone is converted into a digital signal, corresponding audio signal and playing mode adjustment is carried out through a playing adjustment application program which can be integrated in the terminal, and whether the earphone is inserted into an earphone socket of the terminal is used as an execution condition for starting or closing the playing adjustment application program.
The audio playing method provided by the embodiment of the invention adjusts the audio and the playing mode by determining the using state of the earphone, thereby realizing automatic control in the playing process of the terminal and reducing the power consumption.
The embodiment of the invention provides an audio playing method, which is applied to an earphone, wherein the earphone comprises a first playing unit and a second playing unit, and the audio playing method can comprise the following steps: when the terminal requires to feed back a sensing signal, acquiring the sensing signal, wherein the sensing signal comprises a first sensing signal acquired by a first sensor positioned on the first playing unit and a second sensing signal acquired by a second sensor positioned on the second playing unit; and feeding the sensing signal back to the terminal for the terminal to judge the use state of the earphone and control the playing of the earphone. In the embodiment of the invention, the earphone can provide the sensing signal for judging the using state of the earphone for the terminal, the terminal is supported to determine the using state of the earphone of the user according to the sensing signal, and the audio and playing mode is adjusted according to the using state.
The technical solutions of the embodiments of the present invention are described in detail below with reference to the accompanying drawings and the detailed description.
As shown in fig. 2, an audio playing method provided in an embodiment of the present invention may include:
and step S210, when the terminal requires to feed back the sensing signal, acquiring the sensing signal. When the earphone comprises the first playing unit and the second playing unit, the sensing signals acquired by the earphone comprise first sensing signals acquired by a first sensor located on the first playing unit and second sensing signals acquired by a second sensor located on the second playing unit. For example, a sensor is provided on each of the first playing unit 181 and the second playing unit 182 of the binaural earphone shown in fig. 18, and signal feedback is performed when the terminal requests feedback of a sensing signal.
Step S211, feeding back the acquired sensing signal to the terminal for the terminal to determine the usage status of the earphone and control the playing of the earphone.
According to the method in the foregoing steps, after the terminal determines the usage state of the earphone according to the sensing signal fed back by the earphone, generates an audio signal corresponding to the usage state and sends the audio signal to the earphone, the earphone plays the audio signal through the playing unit corresponding to the audio signal:
when the terminal judges that the use state of the earphone is the use state of the first unicast playing unit according to the sensing signal fed back by the earphone, a single-channel audio signal corresponding to the use state of the first unicast playing unit is generated and sent to the earphone, and then the earphone receives the single-channel audio signal sent by the terminal and used for playing through the first playing unit; secondly, the single sound track audio signal is played through a first playing unit;
when the terminal judges that the use state of the earphone is the use state of the second unicast playing unit according to the sensing signal fed back by the earphone, a single-channel audio signal corresponding to the use state of the second unicast playing unit is generated and sent to the earphone, and then the earphone receives the single-channel audio signal sent by the terminal and used for being played through the second playing unit; secondly, the single-track audio signal is played through a second playing unit;
when the terminal judges that the use state of the earphone is the use state of the dual-play unit according to the sensing signal fed back by the earphone, and generates a first dual-channel audio signal and a second dual-channel audio signal corresponding to the use state of the dual-play unit and sends the signals to the earphone, the earphone receives the first dual-channel audio signal sent by the terminal and used for being played by the first play unit and the second dual-channel audio signal sent by the second play unit; secondly, the first dual-channel audio signal is played through the first playing unit, and the second dual-channel audio signal is played through the second playing unit.
In addition, when the terminal judges that the use state of the earphone is a non-use state according to the sensing signal fed back by the earphone and stops sending the audio signal to the earphone, the earphone cannot receive the audio signal sent by the terminal and stops playing the audio signal through the first playing unit or the second playing unit.
The earphone adopted by the embodiment of the present invention is not limited to the form of the embodiment of the present invention including two playing units, and the earphone may include a plurality of playing units to achieve different playing effects.
As shown in fig. 17, the structure of the playing unit may include a sensor 171, a sensor 172, a sensor 173, a sensor 174, and a sensor 175, where the five sensors may be distance sensors, and when the usage state of the earphone needs to be determined, the five sensors respectively acquire distance signals and feed the distance signals back to the terminal for determining the usage state. In addition, the five sensors shown in fig. 17 may also be various types of sensors, such as temperature sensors, and set the sensing signal feedback range in the ear body temperature range, and may also adopt pressure sensors to record the pressure range of the two earphones in the normal wearing condition as the sensing signal feedback range. The method for placing the sensor on the playing unit, the type of the acquired sensing signal, the manner of acquiring the sensing signal, and the type of the sensor are not limited in the embodiments of the present invention.
In the audio playing method provided by the embodiment of the invention, the earphone can provide the terminal with the sensing signal for judging the using state of the earphone, the terminal can be supported to determine the using state of the earphone of the user according to the providing terminal, and the audio and playing mode can be adjusted according to the using state.
Accordingly, an embodiment of the present invention provides a terminal, which may include: the determining module is used for determining the use state of the earphone; the generating module is used for generating an audio signal corresponding to the use state determined by the determining module; and the selecting and playing module is used for selecting a playing unit for playing the audio signal according to the using state and playing the audio signal through the playing unit in the earphone. The terminal provided by the embodiment of the invention can determine the state of the user using the earphone, and adjust the audio and the playing mode according to the using state, thereby reducing the power consumption.
The technical solution of the apparatus in the embodiments of the present invention will be described in detail below with reference to the accompanying drawings and the detailed description.
As shown in fig. 3, the terminal may be configured to implement the method shown in fig. 1, and the terminal according to the embodiment of the present invention may specifically include a determining module 31, a generating module 32, and a selecting and playing module 33, where:
a determining module 31 for determining the usage status of the earphone. The usage status defined in the embodiment of the present invention may include, but is not limited to, a first unicast unit usage status, a second unicast unit usage status, a dual play unit usage status, and a no usage status. When the dual-channel earphone is applied to a common dual-channel earphone, the using state of the first single playing unit of the dual-channel earphone is that a user only listens to sound through the first playing unit of the dual-channel earphone at present, the using state of the second single playing unit of the dual-channel earphone is that the user only listens to sound through the second playing unit of the dual-channel earphone at present, the using state of the dual playing unit of the dual-channel earphone is that the user only listens to sound through the first playing unit and the second playing unit of the dual-channel earphone at present, and the non-using state of the dual-channel earphone is that the user does not use any playing unit at present to listen to sound.
Referring to fig. 4, the determining module 31 may further determine the usage status through the obtaining unit 311 and the status determining unit 312, wherein:
an acquiring unit 311 is used for acquiring the sensing signal. The sensing signals obtained by the obtaining unit 311 are fed back by the earphone, and the sensing signals fed back by the earphone may include a first sensing signal fed back by a first sensor located on the first playing unit and a second sensing signal fed back by a second sensor located on the second playing unit.
A state determining unit 312, configured to determine, from the first sensing signal and the second sensing signal obtained by the obtaining unit 311, that the usage state of the earphone is the usage state of the first unicast playing unit only when the first sensing signal reaches a preset signal level; the earphone is further configured to determine that the usage state of the earphone is the usage state of the second unicast playing unit only when the second sensing signal reaches a preset signal level in the first sensing signal and the second sensing signal acquired by the acquisition unit 311; the earphone is further configured to determine that the usage state of the earphone is the usage state of the dual play unit when the first sensing signal and the second sensing signal obtained by the obtaining unit 311 both reach a preset signal level; the earphone is further configured to determine that the usage state of the earphone is a non-usage state when both the first sensing signal and the second sensing signal acquired by the acquisition unit 311 do not reach the preset signal level. The preset signal level mentioned in the embodiment of the present invention may include various attribute values, for example, when the attribute of the sensing signal fed back by the earphone is a temperature sensing signal, the preset signal level may include a temperature interval value, when the attribute of the sensing signal fed back by the earphone is a distance, the preset signal level may include a maximum distance value, and when the attribute of the sensing signal fed back by the earphone is a pressure, the preset signal level may include a minimum pressure value. The embodiment of the present invention does not limit the information contained in the preset signal level.
And a generating module 32, configured to generate an audio signal corresponding to the usage status determined by the determining module 31, and perform adaptive adjustment on the audio signal to be played.
In a specific implementation, when the usage status determined by the determining module 31 is the usage status of the first unicast unit, referring to fig. 5, the generating module 32 may generate corresponding audio signals through the first obtaining unit 321 and the first converting unit 322:
a first obtaining unit 321, configured to obtain a source signal that needs to be played through a headset.
A first converting unit 322, configured to convert the source signal acquired by the first acquiring unit 321, and generate a monaural audio signal corresponding to the usage status of the first single playing unit. The source signal acquired by the first acquiring unit 321 may be a two-channel audio signal or a multi-channel audio signal, and when the acquired source signal is not a mono audio signal, the step converts the source signal into a mono audio signal through audio software or hardware of a main board to adapt to a playing mode of the first unicast playing unit in the use state.
In a specific implementation, when the usage status determined by the determining module 31 is the usage status of the second single playing unit, referring to fig. 6, the generating module 32 may generate corresponding audio signals through the second obtaining unit 323 and the second converting unit 324:
a second obtaining unit 323, configured to obtain a source signal that needs to be played through an earphone;
a second converting unit 324, configured to convert the source signal acquired by the second acquiring unit 323, and generate a monaural audio signal corresponding to the usage status of the second single playing unit. The source signal acquired by the second acquiring unit 323 may be a two-channel audio signal or a multi-channel audio signal, and when the acquired source signal is not a mono audio signal, the step converts the source signal into a mono audio signal through audio software or hardware of the main board, so as to adapt to the playing mode of the use state of the second unicast playing unit.
In a specific implementation, when the usage status determined by the determining module 31 is the dual play unit usage status, referring to fig. 7, the generating module 32 may generate a corresponding audio signal through the third obtaining unit 325 and the specifying unit 326:
a third obtaining unit 325, configured to obtain a source signal that needs to be played through an earphone;
a third converting unit 326, configured to convert the source signal acquired by the third acquiring unit 325, and generate a first binaural audio signal and a second binaural audio signal corresponding to the usage status of the dual play unit. The generated first dual-channel audio signal is used for playing through the first playing unit, and the generated second dual-channel audio signal is used for playing through the second playing unit. In addition, when the acquired source signal is a binaural signal including a first binaural audio signal for playing through the first playing unit of the headphone and a second binaural audio signal for playing through the second playing unit of the headphone, the first binaural audio signal and the second binaural audio signal may be directly specified as two audio signals corresponding to the usage state of the dual playing unit.
In addition, when the use state determined by the determination module 31 is the non-use state, the generation module 32 does not generate the audio signal any more. Since the non-use state is a state in which a user does not listen to sound using any playback unit, the module stops generating any output form of audio signals in order to reduce hardware loss and energy loss.
The selecting and playing module 33 is configured to select a playing unit for playing the audio signal according to the usage status of the earphone, and play the audio signal through the selected playing unit.
In a specific implementation, when the determining module 31 determines that the usage state of the earphone is the usage state of the first single playing unit, please refer to fig. 8, the selecting and playing module 33 can select a playing unit for playing the audio signal according to the usage state of the earphone through the first selecting unit 331 and the first sending unit 332, and play the audio signal through the selected playing unit:
the first selecting unit 331 is configured to select the first playing unit of the earphone as a playing unit for playing the monaural audio signal when the determining module 31 determines that the usage status of the earphone is the first unicast playing unit usage status.
The first sending unit 332 is configured to send the monaural audio signal generated by the generating module 32 when the usage status is the first unicast playing unit usage status to the first playing unit of the headphone, so that the first playing unit of the headphone plays the monaural audio signal.
In a specific implementation, when the determining module 31 determines that the usage state of the earphone is the usage state of the second single playing unit, please refer to fig. 9 together, the selecting and playing module 33 can select a playing unit for playing the audio signal according to the usage state of the earphone through the second selecting unit 333 and the second sending unit 334, and play the audio signal through the selected playing unit:
the second selecting unit 333 is configured to select the second playing unit of the earphone as the playing unit for playing the monaural audio signal when the determining module 31 determines that the usage status of the earphone is the usage status of the second unicast playing unit.
The second sending unit 334 is configured to send the monaural audio signal generated by the generating module 32 when the usage status is the second unicast playing unit usage status to the second playing unit of the earphone, so that the second playing unit of the earphone plays the monaural audio signal.
In a specific implementation, when the determining module 31 determines that the usage state of the earphone is the usage state of the dual playing unit, please refer to fig. 10 together, the selecting and playing module 33 can select the playing unit for playing the audio signal according to the usage state of the earphone through the third selecting unit 335 and the third sending unit 336, and play the audio signal through the selected playing unit:
the third selecting unit 335 is configured to select the second playing unit of the earphone as a playing unit for playing the monaural audio signal when the determining module 31 determines that the usage status of the earphone is the usage status of the dual playing unit.
The third sending unit 336 is configured to send the first binaural audio signal generated by the generating module 32 when the usage state is the dual playing unit usage state to the first playing unit of the headphone, and send the second binaural audio signal generated by the generating module when the usage state is the dual playing unit usage state to the second playing unit of the headphone, so that the first playing unit of the headphone plays the first binaural audio signal, and the second playing unit of the headphone plays the second binaural audio signal.
In addition, when the determining module 31 determines that the usage status of the earphone is the non-usage status, the selecting and playing module 33 stops playing the audio signal through the earphone, and at this time, the earphone cannot receive the audio signal and cannot play the sound.
The number of the playing units of the earphone is not limited, and when the earphone with the specific function has a plurality of playing units, the terminal provided by the embodiment of the invention can flexibly adjust the playing according to the use state determined by the determining module, and control the playing work of the plurality of playing units.
The terminal provided by the embodiment of the invention can realize the automatic adjustment of audio playing in a hardware mode, for example, after the terminal receives the sensing signal fed back by the earphone, the sensing signal directly controls the audio signal conversion device and the audio output device in the terminal to adjust the audio signal and the playing mode; the method can also be realized by combining software and hardware, the sensing signal acquired from the earphone is converted into a digital signal, corresponding audio signal and playing mode adjustment is carried out through a playing adjustment application program which can be integrated in the terminal, and whether the earphone is inserted into an earphone socket of the terminal is used as an execution condition for starting or closing the playing adjustment application program.
The terminal provided by the embodiment of the invention can determine the use state of the earphone and adjust the audio and the playing mode according to the determined use state of the earphone, thereby realizing automatic control in the playing process and reducing the power consumption of the terminal and the earphone.
The embodiment of the invention provides an earphone which is applied to an earphone, wherein the earphone comprises a first playing unit and a second playing unit, and the earphone also comprises: the terminal comprises an acquisition module, a feedback module and a feedback module, wherein the acquisition module is used for acquiring sensing signals when the terminal requires to feed back the sensing signals, and the sensing signals comprise first sensing signals acquired by a first sensor positioned on the first playing unit and second sensing signals acquired by a second sensor positioned on the second playing unit; and the feedback module is used for feeding the sensing signal acquired by the acquisition module back to the terminal so that the terminal can judge the use state of the earphone and control the playing of the earphone. The earphone provided by the embodiment of the invention can provide a sensing signal for judging the using state of the earphone for the terminal, and the terminal is supported to be capable of determining the using state of the earphone of a user according to the providing terminal and adjusting the audio frequency and the playing mode according to the using state.
The technical solution of the apparatus in the embodiments of the present invention will be described in detail below with reference to the accompanying drawings and the detailed description.
As shown in fig. 11, the terminal may be configured to implement the method shown in fig. 2, and the terminal according to the embodiment of the present invention may specifically include an obtaining module 111 and a feedback module 112, where:
the obtaining module 111 is configured to obtain the sensing signal when the terminal requires feedback of the sensing signal. When the earphone comprises the first playing unit and the second playing unit, the sensing signals acquired by the earphone comprise first sensing signals acquired by a first sensor located on the first playing unit and second sensing signals acquired by a second sensor located on the second playing unit.
And the feedback module 112 is configured to feed back the sensing signal acquired by the acquisition module 111 to the terminal, so that the terminal can determine the usage state of the earphone and perform playing control on the earphone.
When the terminal judges the use state of the earphone according to the sensing signal fed back by the earphone, generates an audio signal corresponding to the use state and sends the audio signal to the earphone, the earphone plays the audio signal through a playing unit corresponding to the audio signal:
as shown in fig. 12, when the terminal determines that the usage state of the earphone is the usage state of the first unicast playing unit according to the sensing signal fed back by the earphone, and generates a mono audio signal corresponding to the usage state of the first unicast playing unit and sends the mono audio signal to the earphone, the earphone according to the embodiment of the present invention further supports the terminal to implement the playing control of the earphone through the first receiving module 113 and the first playing module 114:
the first receiving module 113 is configured to receive a mono audio signal sent by the terminal and used for playing through the first playing unit.
The first playing module 114 is configured to play the mono audio signal through the first playing unit.
As shown in fig. 13, when the terminal determines that the usage state of the earphone is the usage state of the second unicast playing unit according to the sensing signal fed back by the earphone, and generates a mono audio signal corresponding to the usage state of the second unicast playing unit and sends the mono audio signal to the earphone, the earphone according to the embodiment of the present invention further supports the terminal to implement the playing control of the earphone through the second receiving module 115 and the second playing module 116:
a second receiving module 115, configured to receive a mono audio signal sent by the terminal and used for playing through the second playing unit.
The second playing module 116 is configured to play the mono audio signal through the second playing unit.
As shown in fig. 14, when the terminal determines that the usage state of the earphone is the usage state of the dual playing unit according to the sensing signal fed back by the earphone, and generates a mono audio signal corresponding to the usage state of the dual playing unit and sends the mono audio signal to the earphone, the earphone according to the embodiment of the present invention further supports the terminal to implement the playing control of the earphone through the third receiving module 117 and the third playing module 118:
a third receiving module 117, configured to receive the first dual-channel audio signal sent by the terminal and used for being played by the first playing unit, and the second dual-channel audio signal sent by the terminal and used for being played by the second playing unit.
The third playing module 118 is configured to play the first binaural audio signal through the first playing unit, and play the second binaural audio signal through the second playing unit.
In addition, as shown in fig. 15, when the terminal determines that the usage state of the earphone is a non-usage state according to the sensing signal fed back by the earphone, and stops sending the audio signal to the earphone, the earphone according to the embodiment of the present invention further supports the terminal to implement the playing control of the earphone through the stop module 119:
the stopping module 119 is configured to stop playing the audio signal through the first playing unit or the second playing unit when the audio signal sent by the terminal is not received.
The earphone provided by the embodiment of the present invention is not limited to the form of the earphone including two playing units shown in the embodiment of the present invention, and the earphone may include a plurality of playing units to achieve different playing effects.
As shown in fig. 17, the structure of the playing unit may include a sensor 171, a sensor 172, a sensor 173, a sensor 174, and a sensor 175, where the five sensors may be distance sensors, and when the usage state of the earphone needs to be determined, the five sensors respectively acquire distance signals and feed the distance signals back to the terminal for determining the usage state. In addition, the five sensors shown in fig. 17 may also be various types of sensors, such as temperature sensors, and set the sensing signal feedback range in the ear body temperature range, and may also adopt pressure sensors to record the pressure range of the two earphones in the normal wearing condition as the sensing signal feedback range. The embodiment of the present invention does not limit the type of the acquired sensing signal, the manner of acquiring the sensing signal, and the type of the sensor in the method for placing the sensor on the playing unit of the earphone.
The earphone provided by the embodiment of the invention can provide a sensing signal for judging the using state of the earphone for the terminal, and the terminal can determine the using state of the earphone of a user according to the terminal and adjust the audio frequency and the playing mode according to the using state.
An embodiment of the present invention provides a playing system, as shown in fig. 16, which may include:
a terminal 161, such as the terminal described in any of fig. 3-10;
a headset 162, such as the headset described in any of fig. 11-15.
The earphone adopted by the system of the embodiment of the invention can provide a sensing signal for judging the using state of the earphone for the terminal, and the terminal is supported to determine the using state of the earphone of a user according to the terminal and adjust the audio frequency and the playing mode according to the using state.
The terminal adopted by the system provided by the embodiment of the invention can judge the use state of the earphone according to the sensing signal fed back by the earphone, generate the audio signal corresponding to the use state and send the audio signal to the earphone, select the playing unit for playing the audio signal from the playing unit of the earphone, and send the audio signal to the earphone, so that the earphone plays the audio signal through the selected playing unit.
The system of the embodiment of the invention realizes the purpose of flexibly adjusting the playing mode according to the state of the earphone used by the user, and reduces the power consumption of the terminal and the earphone.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs.
Modules or units in the device of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs.
The modules or units in the embodiments of the present invention may be implemented by a general-purpose integrated Circuit, such as a CPU (Central Processing Unit), or an ASIC (Application specific integrated Circuit).
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs.
The modules or units in the device of the embodiment of the invention can be combined, divided and deleted according to actual needs.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4