This application claims priority to Chinese Patent Application No. 201510387526.4 filed on Jun. 30, 2015, the entire contents of which are incorporated herein by reference.
The present disclosure relates to a processing technology in an information processing field, more particularly, to an information processing method, an electronic apparatus and a system.
With continuous development of science and technology, electronic apparatuses, especially earphones are used by more and more users who care about audio-visual experience, and earphones having a noise canceling function are used and accepted by more users. However, the earphones having the noise canceling function only have two options of enabling and disabling currently, and it is clear that such options cannot adapt to a wide variety of application scenarios, and cannot provide a good user experience for the users.
An embodiment of the present disclosure provides an information processing method, which is applied to a first electronic apparatus, the method comprising: establishing a connection with a second electronic apparatus; receiving a first control instruction sent from the second electronic apparatus; parsing the first control instruction, to obtain an adjusting parameter for an audio adjusting unit; adjusting a gain for the audio adjusting unit based on the adjusting parameter; processing and outputting audio information received from the second electronic apparatus based on the adjusted gain.
An embodiment of the present disclosure provides an information processing method, which is applied to a second electronic apparatus, the method comprising: establishing a connection with a first electronic apparatus; determining a first control instruction for the first electronic apparatus, wherein, the first control instruction is used for controlling an adjusting parameter of an audio adjusting unit in the first electronic apparatus; sending the first control instruction to the first electronic apparatus through the connection.
An embodiment of the present disclosure provides an electronic apparatus. The electronic apparatus comprises: a first connecting unit, for establishing a connection with a second electronic apparatus; an information processing unit, for receiving a first control instruction sent from the second electronic apparatus, parsing the first control instruction to obtain an adjusting parameter for an audio adjusting unit; an audio adjusting unit, for adjusting a gain for the audio adjusting unit based on the adjusting parameter, processing and outputting audio information received from the second electronic apparatus based on the adjusted gain.
An embodiment of the present disclosure provides an electronic apparatus. The electronic apparatus comprises: a second connecting unit, for establishing a connection with a first electronic apparatus; a controlling unit, for determining a first control instruction for the first electronic apparatus, wherein, the first control instruction is used for controlling an adjusting parameter of an audio adjusting unit in the first electronic apparatus; sending the first control instruction to the first electronic apparatus through the connection established by the second connecting unit.
An embodiment of the present disclosure provides an information processing system. The system comprises a first electronic apparatus and a second electronic apparatus. The first electronic apparatus establishes a connection with a second electronic apparatus; receives a first control instruction from the second electronic apparatus; parses the first control instruction to obtain an adjusting parameter for an audio adjusting unit; adjusts a gain for the audio adjusting unit based on the adjusting parameter; processes and outputs audio information received from the second electronic apparatus based on the adjusted gain. The second electronic apparatus establishes a connection with the first electronic apparatus; determines a first control instruction for the first electronic apparatus, wherein, the first control instruction is used for controlling the adjusting parameter of the audio adjusting unit in the first electronic apparatus; sends the first control instruction to the first electronic apparatus through the connection.
In the information processing method, the electronic apparatus and the system provided by the present disclosure involve, after establishing a connection with a second electronic apparatus, a first control instruction from the second electronic apparatus is received, an adjusting parameter is obtained based on the first control instruction, a gain for the audio adjusting unit is determined based on the adjusting parameter, and the received audio information is processed based on the adjusted gain and then output. So, the first electronic apparatus can control the gain for the audio adjusting unit under the control of the second electronic apparatus, and a manner of adjusting the gain of the first electronic apparatus is added, which makes the first electronic apparatus applicable to more scenes, thus user experience is improved.
Hereinafter, the present disclosure will be further illustrated in detail in conjunction with the accompanying drawings and the specific embodiments.
The present embodiment of the present disclosure provides an information processing method, which is applied to a first electronic apparatus. As shown in
Step 101: establishing a connection with a second electronic apparatus;
Step 102: receiving a first control instruction from the second electronic apparatus;
Step 103: parsing the first control instruction, to obtain an adjusting parameter for an audio adjusting unit;
Step 104: adjusting a gain for the audio adjusting unit based on the adjusting parameter;
Step 105: processing and outputting audio information received from the second electronic apparatus based on the adjusted gain.
Here, the first electronic apparatus is an audio output accessory. The audio output accessory may be an earphone.
In the present embodiment, the establishing a connection with a second electronic apparatus may be establishing a connection through a port of the first electronic apparatus.
The receiving a first control instruction from the second electronic apparatus may be receiving the first control instruction through the connection established between the first electronic apparatus and the second electronic apparatus.
The first control instruction may at least include an adjusting parameter for an audio adjusting unit of the first electronic apparatus. The adjusting parameter may represent a level of gain adjustment for the audio adjusting unit. The first control instruction can use a software protocol algorithm, which is defined by the software, for example, it can be set to represent that the first control instruction is to increase the gain by one step-length value when five pulses are sent in one second, and to represent that the first control instruction is to reduce the gain by one step-length value when seven pulses are sent in one second. However, the earphones in current market only have a function of enabling and disabling noise cancellation, but do not have a function of controlling gains. The step-length value can be set according to the actual situation, for example, it can be set to 1 dB. Or the gain can be set to a percentage value with respect to amplitude, for example, each step-length value is 10% of the amplitude.
The adjusting a gain for the audio adjusting unit based on the adjusting parameter includes: setting an adjusting scale for the amplitude of environmental audio in the audio adjusting unit based on the adjusting parameter, wherein, the adjusting scale represents adjustment of gain for the audio adjusting unit.
In the present embodiment, the received audio information may be audio information received from the second electronic apparatus through a port; accordingly, the processing and outputting audio information received from the second electronic apparatus based on the adjusted gain includes: acquiring environmental audio information by a first audio acquiring unit, wherein, the environmental audio information represents audio information of the environment where the first electronic apparatus is located; processing the environmental audio information to obtain a denoising parameter based on the adjusted gain; processing and outputting audio information received from the second electronic apparatus through a first interface by using the denoising parameter.
The manner of processing the environmental audio information to obtain a denoising parameter based on the adjusted gain may be that: the first audio acquiring unit is a denoising mic, and environmental audio is acquired by the first audio acquiring unit. Accordingly, the gain can be an amplitude of adjusting the denoising parameter based on the acquired environmental audio, so that the amplitude of the denoising parameter may be less than or equal to an amplitude of the environmental audio.
Hereinafter, scenes provided by the present embodiment will be illustrated. It is assumed that the first electronic apparatus is an earphone, and the second electronic apparatus may be a smart phone, a tablet computer, a laptop computer, or a desktop computer and so on.
When the earphone is connected with the second electronic apparatus, the second electronic apparatus can be controlled by a user to adjust a gain of an audio adjusting unit of the earphone; after the user selects an adjusting parameter, a first control instruction is generated according to the adjusting parameter selected by the user.
A first control instruction from the second electronic apparatus is received, and the first control instruction is parsed, to obtain an adjusting parameter.
The gain of the audio adjusting parameter is adjusted based on the adjusting parameter.
Then a denoising parameter is calculated and obtained by using the gain and the environmental audio.
The earphone receives audio information from the second electronic apparatus, superimposes the denoising parameter and the audio information to obtain denoised audio information, and output the same.
It can be seen that, by using the above solution, after a connection is established with the second electronic apparatus, a first control instruction from the second electronic apparatus can be received, an adjusting parameter can be obtained based on the first control instruction, a gain of the audio adjusting unit can be determined based on the adjusting parameter, and the received audio information can be processed and outputted based on the adjusted gain. So, the first electronic apparatus can control the gain for the audio adjusting unit under the control of the second electronic apparatus, and a manner of adjusting the gain of the first electronic apparatus is added, which makes the first electronic apparatus applicable to more scenes, thus the user experience is improved.
The present embodiment of the present disclosure provides an information processing method, which is applied to a first electronic apparatus, as shown in
Step 101: establishing a connection with a second electronic apparatus.
Step 102: receiving a first control instruction from the second electronic apparatus.
Step 103: parsing the first control instruction, to obtain an adjusting parameter for an audio adjusting unit.
Step 104: adjusting a gain for the audio adjusting unit based on the adjusting parameter.
Step 105: processing and outputting audio information received from the second electronic apparatus based on the adjusted gain.
Here, the first electronic apparatus is an audio output accessory. The audio output accessory may be an earphone.
In the present embodiment, the establishing the connection with a second electronic apparatus may be establishing a connection through a port of the first electronic apparatus.
The receiving the first control instruction from the second electronic apparatus may be receiving the first control instruction through a connection established between the first electronic apparatus and the second electronic apparatus.
The first control instruction may at least include an adjusting parameter for an audio adjusting unit of the first electronic apparatus. The adjusting parameter may be used for representing a level of gain adjustment for the audio adjusting unit. The first control instruction can use a software protocol algorithm, and is defined by the software. For example, it can be set to represent that the first control instruction is to increase the gain by one step-length value when five pulses are sent in one second, and to represent that the first control instruction is to reduce the gain by one step-length value when seven pulses are sent in one second. However, the earphones in current market only have a function of enabling and disabling noise cancellation, but do not have a function of controlling gains. The step-length value can be set according to the actual situation, for example, it can be set to 1 dB. Or the gain can be set to a percentage value of amplitude, for example, each step-length value is 10% of the amplitude.
The present embodiment is to illustrate a manner of receiving a first control instruction in detail. That is, the receiving the first control instruction from the second electronic apparatus includes: obtaining an output type of audio information, wherein, the output type of the audio information includes a first output type and a second output type; the first output type being different from the second output type, the first output type represents that the audio information from the second electronic apparatus is received by two audio receiving paths; the second output type represents that the audio information from the second electronic apparatus is received by only one audio receiving path; if the audio information has the first output type, establishing a first information transmission path between a first interface and an information processing unit, and obtaining a first control instruction through the first information transmission path; if the audio information has the second output type, establishing a second information transmission path between the first interface and an information processing unit, and obtaining the first control instruction through the second information transmission path.
For example, as shown in
In the output type of audio information, the audio information represented by the first output type is outputted by two output sub-units, and the audio information of such output type is usually music; and the second output type often adopts the first output sub-unit, i.e., the left channel for outputting, and such type is usually voice, for example, when a user makes a voice call, the second output type is usually adopted.
Hereinafter, in conjunction with
Scene I: It is assumed that the audio information obtained by the first electronic apparatus has the first output type. For example, when a mobile phone is used to listen to music, and left and right channels of the earphone are used, which is a case where the first output sub-unit and the second output sub-unit are used at a same time, but a call MIC, i.e., a second audio acquiring unit, is not used. As show in
Specifically, the second electronic apparatus side outputs an instruction through a second general-purpose input and output port to control the switching unit to connect with a first general-purpose input and output port, and sends a first control instruction to the information processing unit of the first electronic apparatus through the first general-purpose input and output port (GPIO). The first control instruction may be a modulation pulse. Further, the first electronic apparatus parses the first control instruction through the information processing unit, to obtain a corresponding adjusting parameter, and control a noise cancellation gain of the audio adjusting unit based on the adjusting parameter.
In addition, it can be seen from
Scene II: It is assumed that the audio information obtained by the first electronic apparatus has a second output type. As show in
Specifically, the second electronic apparatus side outputs an instruction through a third general-purpose input and output port to control the switching unit, so that a first port is connected with the first general-purpose input and output port, and a first control instruction is sent to the information processing unit of the first electronic apparatus through the first general-purpose input and output port (GPIO). The first control instruction may be a modulation pulse. Further, the first electronic apparatus parses the first control instruction through the information processing unit, to obtain a corresponding adjusting parameter, and control a noise cancellation gain of the audio adjusting unit based on the adjusting parameter.
In addition, it can be seen from
It can be understood that, the switching unit in the present embodiment is not shown in
The adjusting a gain for the audio adjusting unit based on the adjusting parameter includes: setting an adjusting scale for the amplitude of environmental audio in the audio adjusting unit based on the adjusting parameter, wherein, the adjusting scale is just for representing adjustment of gain of the audio adjusting unit.
In the present embodiment, the received audio information may be audio information received from the second electronic apparatus through a port; accordingly, the processing and outputting the audio information received from the second electronic apparatus based on the adjusted gain includes: acquiring environmental audio information by a first audio acquiring unit, wherein, the environmental audio information represents audio information of the environment where the first electronic apparatus is located; processing the environmental audio information to obtain a denoising parameter based on the adjusted gain; processing audio information received from the second electronic apparatus through the first interface by using the denoising parameter, and outputting the denoised audio information by a first audio output sub-unit and/or a second audio output sub-unit.
The manner of processing the environmental audio information to obtain a denoising parameter based on the adjusted gain may be that: the first audio acquiring unit is a denoising mic, and environmental audio is acquired by the first audio acquiring unit. Accordingly, the gain can be an amplitude of adjusting the denoising parameter based on the acquired environmental audio, so that the amplitude of the denoising parameter may be less than or equal to an amplitude of the environmental audio.
It can be seen that, by using the above solution, after a connection is established with the second electronic apparatus, a first control instruction from the second electronic apparatus can be received, an adjusting parameter can be obtained based on the first control instruction, a gain of the audio adjusting unit can be determined based on the adjusting parameter, and the received audio information can be processed and outputted based on the adjusted gain. So, the first electronic apparatus can control the gain of the audio adjusting unit under the control of the second electronic apparatus, and a manner of adjusting the gain of the first electronic apparatus is added, which makes the first electronic apparatus applicable to more scenes, thus the user experience is improved.
The present embodiment of the present disclosure provides an information processing method, which is applied to a second electronic apparatus, as shown in
Step 501: establishing a connection with a first electronic apparatus.
Step 502: determining a first control instruction for the first electronic apparatus, wherein, the first control instruction is used for controlling an adjusting parameter of an audio adjusting unit in the first electronic apparatus.
Step 503: sending the first control instruction to the first electronic apparatus through the connection.
Further, after step 503 is completed, the second electronic apparatus further send audio information to the first electronic apparatus.
Here, in the present embodiment, the first electronic apparatus is an audio output accessory. The audio output accessory may be an earphone. The second electronic apparatus may be a smart phone, a tablet computer and so on.
In the present embodiment, the establishing a connection with a second electronic apparatus may be establishing a connection through a first port of the first electronic apparatus. The first control instruction may at least include an adjusting parameter for an audio adjusting unit of the first electronic apparatus; the adjusting parameter may be used for representing a level of gain adjustment for the audio adjusting unit. The first control instruction can use a software protocol algorithm, and is defined by the software. For example, it can be set to represent that the first control instruction is to increase the gain by one step-length value when five pulses are sent in one second, and to represent that the first control instruction is to reduce the gain by one step-length value when seven pulses are sent in one second. However, the earphones in current market only have a function of enabling and disabling noise cancellation, but do not have a function of controlling gains. The step-length value can be set according to the actual situation, for example, it can be set to 1 dB. Or the gain can be set to a percentage value of amplitude, for example, each step-length value is 10% of the amplitude.
The present embodiment further provides a detail description on a manner of receiving a first control instruction by a first electronic apparatus, which includes: obtaining an output type of audio information, wherein, the output type of the audio information includes a first output type and a second output type; the first output type being different from the second output type, the first output type represents that the audio information from the second electronic apparatus is received by two audio receiving paths; the second output type represents that the audio information from the second electronic apparatus is received by only one audio receiving path; if the audio information has the first output type, establishing a first information transmission path between a first interface and an information processing unit, and obtaining the first control instruction through the first information transmission path; if the audio information has the second output type, establishing a second information transmission path between the first interface and the information processing unit, and obtaining the first control instruction through the second information transmission path.
For example, as shown in
Hereinafter, the establishing an information transmission path will be illustrated in conjunction with
Scene I: It is assumed that the audio information obtained by the first electronic apparatus has a first output type. For example, when a mobile phone is used to listen to music, and left and right channels of the earphone are used, which is a case where the first output sub-unit and the second output sub-unit are used at a same time, but a call MIC, i.e., a second audio acquiring unit, is not used. As show in
Specifically, the second electronic apparatus side outputs an instruction through a second general-purpose input and output port to control the switching unit to connect with the first general-purpose input and output port path, and sends the first control instruction to the information processing unit of the first electronic apparatus through the first general-purpose input and output port (GPIO). The first control instruction may be a modulation pulse. Further, the first electronic apparatus parses the first control instruction through the information processing unit, to obtain a corresponding adjusting parameter, and control a noise cancellation gain of the audio adjusting unit based on the adjusting parameter.
In addition, it can be seen from
Scene II: It is assumed that the audio information obtained by the first electronic apparatus has a second output type. As show in
Specifically, the second electronic apparatus side outputs an instruction through the third general-purpose input and output port to control the switching unit, so that a first port is connected with the first general-purpose input and output port, and a first control instruction is sent to the information processing unit of the first electronic apparatus through the first general-purpose input and output port (GPIO). The first control instruction may be a modulation pulse. Further, the first electronic apparatus parses the first control instruction through the information processing unit, to obtain a corresponding adjusting parameter, and control a noise cancellation gain of the audio adjusting unit based on the adjusting parameter.
In addition, it can be seen from
It can be understood that, the switching unit in the present embodiment is not shown in
It can be understood that, after step 503 is completed in the present embodiment, the first electronic apparatus will adjust a gain of the audio adjusting unit based on the adjusting parameter, which may specifically include: setting an adjusting scale for the amplitude of environmental audio in the audio adjusting unit based on the adjusting parameter, wherein, the adjusting scale is just for representing adjustment of gain of the audio adjusting unit.
In the present embodiment, the received audio information may be audio information received from the second electronic apparatus through the port. Accordingly, the first electronic apparatus will process and output the audio information received from the second electronic apparatus based on the adjusted gain, which includes: acquiring environmental audio information by a first audio acquiring unit, wherein, the environmental audio information represents audio information of the environment where the first electronic apparatus is located; processing the environmental audio information to obtain a denoising parameter based on the adjusted gain; processing audio information received from the second electronic apparatus through the first interface by using the denoising parameter, and outputting the denoised audio information by a first audio output sub-unit and/or a second audio output sub-unit.
The manner of processing the environmental audio information to obtain a denoising parameter based on the adjusted gain may be that: the first audio acquiring unit is a denoising mic, and environmental audio is acquired by the first audio acquiring unit. Accordingly, the gain can an amplitude of adjusting the denoising parameter based on the acquired environmental audio, so that the amplitude of the denoising parameter may be less than or equal to an amplitude of the environmental audio.
It can be seen that, by using the above solution, after a connection is established with the second electronic apparatus, a first control instruction from the second electronic apparatus can be received, an adjusting parameter can be obtained based on the first control instruction, a gain of the audio adjusting unit can be determined based on the adjusting parameter, and the received audio information can be processed and outputted based on the adjusted gain. So, the first electronic apparatus can control the gain for the audio adjusting unit under the control of the second electronic apparatus, and a manner of adjusting the gain of the first electronic apparatus is added, which makes the first electronic apparatus applicable to more scenes, thus the user experience is improved.
The present embodiment of the present disclosure provides an electronic apparatus. As shown in
The first connecting unit 61 is for establishing a connection with a second electronic apparatus.
The information processing unit 62 is for receiving a first control instruction from the second electronic apparatus; parsing the first control instruction, to obtain an adjusting parameter for an audio adjusting unit;
The audio adjusting unit 63 is for adjusting a gain for the audio adjusting unit based on the adjusting parameter; processing and outputting audio information received from the second electronic apparatus based on the adjusted gain.
Here, the first electronic apparatus is an audio output accessory. The audio output accessory may be an earphone. The audio adjusting unit may be an adjusting unit having active noise canceling (ANC) function.
The receiving a first control instruction from the second electronic apparatus may be receiving the first control instruction through a connection established between the first electronic apparatus and the second electronic apparatus.
The first control instruction may at least include an adjusting parameter for an audio adjusting unit of the first electronic apparatus; the adjusting parameter is used for representing a level of gain adjustment for the audio adjusting unit. The first control instruction can use a software protocol algorithm, which is defined by the software. For example, it can be set to represent that the first control instruction is to increase the gain by one step-length value when five pulses are sent in one second, and to represent that the first control instruction is to reduce the gain by one step-length value when seven pulses are sent in one second. However, the earphones in current market only have a function of enabling and disabling noise cancellation, but do not have a function of controlling gains. The step-length value can be set according to the actual situation, for example, it can be set to 1 dB. Or the gain can be set to a percentage value of amplitude, for example, each step-length value is 10% of the amplitude.
The audio adjusting unit is specifically used for setting an adjusting scale for the amplitude of environmental audio in the audio adjusting unit based on the adjusting parameter. The adjusting scale is just for representing adjustment of gain of the audio adjusting unit.
Hereinafter, scenes provided by the present embodiment will be illustrated. It is assumed that the first electronic apparatus is an earphone, and the second electronic apparatus may be a smart phone, a tablet computer, a laptop computer, or a desktop computer and so on.
When the earphone is connected with the second electronic apparatus, the second electronic apparatus can be controlled by a user to adjust a gain of an audio adjusting unit of the earphone. After the user selects an adjusting parameter, a first control instruction is generated according to the adjusting parameter selected by the user;
A first control instruction from the second electronic apparatus is received, and the first control instruction is parsed, to obtain an adjusting parameter;
The gain of the audio adjusting parameter is adjusted based on the adjusting parameter;
Then a denoising parameter is calculated and obtained by using the gain and the environmental audio;
The earphone receives audio information from the second electronic apparatus, superimposes the denoising parameter and the audio information to obtain denoised audio information, and output the same.
It can be seen that, by using the above solution, after a connection is established with the second electronic apparatus, the first control instruction from the second electronic apparatus can be received, an adjusting parameter can be obtained based on the first control instruction, a gain of the audio adjusting unit can be determined based on the adjusting parameter, and the received audio information can be processed and outputted based on the adjusted gain. So, the first electronic apparatus can control the gain for the audio adjusting unit under the control of the second electronic apparatus, and a manner of adjusting the gain of the first electronic apparatus is added, which makes the first electronic apparatus applicable to more scenes, thus the user experience is improved.
The present embodiment of the present disclosure provides an electronic apparatus, as shown in
Here, the electronic apparatus is an audio output accessory. The audio output accessory may be an earphone.
The first control instruction may at least include an adjusting parameter for an audio adjusting unit of the first electronic apparatus. The adjusting parameter may be used for representing a level of gain adjustment of the audio adjusting unit. The first control instruction can use a software protocol algorithm, and is defined by the software. For example, it can be set to represent that the first control instruction is to increase the gain by one step-length value when five pulses are sent in one second, and to represent that the first control instruction is to reduce the gain by one step-length value when seven pulses are sent in one second. However, the earphones in current market only have a function of enabling and disabling noise cancellation, but do not have a function of controlling gains. The step-length value can be set according to the actual situation, for example, it can be set to 1 dB. Or the gain can be set to a percentage value of amplitude, for example, each step-length value is 10% of the amplitude.
The present embodiment provides a detail description on a manner of receiving a first control instruction, and the information processing unit is specifically used for obtaining an output type of audio information. The output type of the audio information includes a first output type and a second output type; the first output type being different from the second output type. The first output type represents that the audio information from the second electronic apparatus is received by two audio receiving paths. The second output type represents that the audio information from the second electronic apparatus is received by only one audio receiving path. If the audio information has the first output type, it is controlled to establish a first information transmission path between a first interface and an information processing unit, and the first control instruction is obtained through the first information transmission path. If the audio information has the second output type, it is controlled to establish a second information transmission path between the first interface and the information processing unit, and the first control instruction is obtained through the second information transmission path.
For example, as shown in
Hereinafter, the establishing an information transmission path will be illustrated in conjunction with
Scene I: It is assumed that the audio information obtained by the electronic apparatus has a first output type, for example, when a mobile phone is used to listen to music, and left and right channels of the earphone are used, which is a case where the first output sub-unit and the second output sub-unit are used at a same time, but a call MIC, i.e., a second audio acquiring unit, is not used. As show in
Specifically, the second electronic apparatus side outputs an instruction through a second general-purpose input and output port to control the switching unit to connect with a path of first general-purpose input and output port, and sends the first control instruction to the information processing unit of the first electronic apparatus through the first general-purpose input and output port (GPIO). The first control instruction may be a modulation pulse. Further, the first electronic apparatus parses the first control instruction through the information processing unit, to obtain a corresponding adjusting parameter, and control a noise cancellation gain of an audio adjusting unit based on the adjusting parameter.
In addition, it can be seen from
Scene II: It is assumed that the audio information obtained by the first electronic apparatus has a second output type. As show in
Specifically, the second electronic apparatus side outputs an instruction through the third general-purpose input and output port to control the switching unit, so that a first port is connected with the first general-purpose input and output port, and the first control instruction is sent to the information processing unit of the first electronic apparatus through the first general-purpose input and output port (GPIO). The first control instruction may be a modulation pulse. Further, the first electronic apparatus parses the first control instruction through the information processing unit, to obtain a corresponding adjusting parameter, and control a noise cancellation gain of the audio adjusting unit based on the adjusting parameter.
In addition, it can be seen from
It can be understood that, the switching unit in the present embodiment is not shown in
The adjusting the gain for the audio adjusting unit based on the adjusting parameter includes: setting an adjusting scale for the amplitude of environmental audio in the audio adjusting unit based on the adjusting parameter, wherein, the adjusting scale is just for representing adjustment of gain for the audio adjusting unit.
In the present embodiment, the electronic apparatus further comprises: a first audio acquiring unit 74, for acquiring environmental audio information. The environmental audio information represents audio information of the environment where the first electronic apparatus is located. The audio adjusting unit 73 specifically processes the environmental audio information to obtain a denoising parameter based on the adjusted gain; processing and outputting audio information received from the second electronic apparatus through the first interface of the first connecting unit by using the denoising parameter.
Preferably, the electronic apparatus provided by the present embodiment, as shown in
The manner of processing the environmental audio information based on the adjusted gain to obtain a denoising parameter may be that: the first audio acquiring unit is a denoising mic, and environmental audio is acquired by the first audio acquiring unit. Accordingly, the gain can be an amplitude of adjusting the denoising parameter based on the acquired environmental audio, so that the amplitude of the denoising parameter may be less than or equal to an amplitude of the environmental audio.
The first connecting unit 71 is specifically used for establishing a connection with the second electronic apparatus through a first interface; and obtaining power supply provided by the second electronic apparatus through the first interface.
It can be seen that, by means of the above solution, after a connection is established with the second electronic apparatus, a first control instruction from the second electronic apparatus can be received, an adjusting parameter can be obtained based on the first control instruction, a gain of the audio adjusting unit can be determined based on the adjusting parameter, and the received audio information can be processed and outputted based on the adjusted gain. So, the first electronic apparatus can control the gain for the audio adjusting unit under the control of the second electronic apparatus, and a manner of adjusting the gain of the first electronic apparatus is added, which makes the first electronic apparatus applicable to more scenes, thus the user experience is improved.
The present embodiment of the present disclosure provides an electronic apparatus. As shown in
Further, the controlling unit 92 will further send audio information to the first electronic apparatus through the connection established by the second connecting unit 91.
Here, in the present embodiment, the first electronic apparatus is an audio output accessory. The audio output accessory may be an earphone. The electronic apparatus may be a smart phone, a tablet computer and so on.
The second connecting unit 91 in the present embodiment can establish a connection through a first port.
The first control instruction may at least include an adjusting parameter for an audio adjusting unit of the first electronic apparatus. The adjusting parameter may be used for representing a level of gain adjustment for the audio adjusting unit. The first control instruction can use a software protocol algorithm, and is defined by the software, for example, it can be set to represent that the first control instruction is to increase the gain by one step-length value when five pulses are sent in one second, and to represent that the first control instruction is to reduce the gain by one step-length value when seven pulses are sent in one second. However, the earphones in current market only have a function of enabling and disabling noise cancellation, but do not have a function of controlling gains. The step-length value can be set according to the actual situation, for example, it can be set to 1 dB. Or the gain can be set to a percentage value of amplitude, for example, each step-length value is 10% of the amplitude.
It can be seen that, by using the above solution, after a connection is established, an adjusting parameter can be obtained based on the first control instruction, a gain of the audio adjusting unit can be determined based on the adjusting parameter, and the received audio information can be processed and outputted based on the adjusted gain. So, the first electronic apparatus can control the gain for the audio adjusting unit under the control of the second electronic apparatus, and a manner of adjusting the gain of the first electronic apparatus is added, which makes the first electronic apparatus applicable to more scenes, thus the user experience is improved.
The present embodiment of the present disclosure provides an information processing system. As shown in
The first electronic apparatus 1001 is for establishing a connection with a second electronic apparatus; receiving a first control instruction from the second electronic apparatus; parsing the first control instruction, to obtain an adjusting parameter for an audio adjusting unit; adjusting a gain for the audio adjusting unit based on the adjusting parameter; processing and outputting audio information received from the second electronic apparatus based on the adjusted gain.
The second electronic apparatus 1002 is for establishing a connection with the first electronic apparatus; determining the first control instruction for the first electronic apparatus, wherein, the first control instruction is used for controlling the adjusting parameter of the audio adjusting unit in the first electronic apparatus; sending the first control instruction to the first electronic apparatus through the connection.
Here, the first electronic apparatus 1001 is an audio output accessory. The audio output accessory may be an earphone.
In the present embodiment, the establishing the connection with a second electronic apparatus may be establishing the connection by a port of the first electronic apparatus.
The receiving a first control instruction from the second electronic apparatus may be receiving the first control instruction through a connection established between the first electronic apparatus and the second electronic apparatus.
The first control instruction may at least include an adjusting parameter for an audio adjusting unit of the first electronic apparatus. The adjusting parameter may be used for representing a level of gain adjustment for the audio adjusting unit. The first control instruction can use a software protocol algorithm, and is defined by the software. For example, it can be set to represent that the first control instruction is to increase the gain by one step-length value when five pulses are sent in one second, and to represent that the first control instruction is to reduce the gain by one step-length value when seven pulses are sent in one second. However, the earphones in current market only have a function of enabling and disabling noise cancellation, but do not have a function of controlling gains. The step-length value can be set according to the actual situation, for example, it can be set to 1 dB. Or the gain can be set to a percentage value of amplitude, for example, each step-length value is 10% of the amplitude.
The first electronic apparatus 1001 is used for setting an adjusting scale for the amplitude of environmental audio in the audio adjusting unit based on the adjusting parameter. The adjusting scale is just for representing adjustment of gain for the audio adjusting unit.
In the present embodiment, the audio information received by the first electronic apparatus 1001 may be audio information received from the second electronic apparatus through a port; accordingly, the first electronic apparatus 1001 is specifically used for acquiring environmental audio information by a first audio acquiring unit, wherein, the environmental audio information represents audio information of the environment where the first electronic apparatus is located; processing the environmental audio information to obtain a denoising parameter based on the adjusted gain; processing audio information received from the second electronic apparatus through a first interface by using the denoising parameter.
A manner of the first electronic apparatus 1001 processing the environmental audio information to obtain a denoising parameter based on the adjusted gain may be that: environmental audio is acquired by the first audio acquiring unit. Accordingly, the gain can be an amplitude of adjusting the denoising parameter based on the acquired environmental audio, so that the amplitude of the denoising parameter may be less than or equal to an amplitude of the environmental audio.
It can be seen that, by using the above solution, after the connection is established with the second electronic apparatus, a first control instruction from the second electronic apparatus can be received, an adjusting parameter can be obtained based on the first control instruction, a gain of the audio adjusting unit can be determined based on the adjusting parameter, and the received audio information can be processed and outputted based on the adjusted gain. So, the first electronic apparatus can control the gain of the audio adjusting unit under the control of the second electronic apparatus, and a manner of adjusting the gain of the first electronic apparatus is added, which makes the first electronic apparatus applicable to more scenes, thus the user experience is improved.
In several embodiments provided by this disclosure, it should be understood that, the disclosed apparatuses may be implemented in other manners. The above-described apparatus embodiments are only exemplary, for example, division of the units is only a logical functional division, and there may be other modes of division when they are actually implemented, for example, a plurality of units or components may be combined, or some features may be omitted. In addition, coupling between the respective components shown or discussed, either direct coupling or communicative connection, may be implemented through some ports, and indirect coupling or communicative connection between the apparatuses or the units may be electrical, mechanical, or in other forms.
The above units described as separate components may be or may not be physically separated, and the components displayed as units may be or may not be physical units, i.e., may be located in one place, or may be distributed in a plurality of network units; and the purpose of this embodiment may be achieved by selecting some or all of the units therein as actually required.
The foregoing embodiments merely are exemplary embodiments of the present disclosure, and not intended to define the scope of the present disclosure; modification or substitution which is easily thought by any person skilled in the art should fall into the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be the protection scope of the claims.
Number | Date | Country | Kind |
---|---|---|---|
201510387526.4 | Jun 2015 | CN | national |