Disclosure of Invention
In view of this, the present disclosure provides a conversion device, which can be connected with a terminal in a wireless communication manner, and used in cooperation with an earphone wire plug through an earphone interface, and when the earphone is not connected with the terminal in a linear manner, the earphone is connected with the conversion device in a linear manner, so as to obtain and output audio information played by the terminal.
According to a first aspect of an embodiment of the present disclosure, there is provided a conversion apparatus including: the earphone comprises an earphone interface, a communication module and a control module;
The earphone interface is used for being matched with an earphone wire plug of the earphone;
The communication module is used for carrying out wireless communication connection with the terminal, receiving audio data to be played sent by the terminal and sending the audio data to the control module;
The control module is used for performing digital-to-analog conversion processing on the audio data to obtain an analog audio signal, and sending the analog audio signal to the earphone interface.
Optionally, the conversion device further includes a first indication module;
the first indication module is used for indicating the connection state of the earphone wire plug and the earphone interface; and
When the earphone wire plug is matched with the earphone interface for use, the earphone wire plug is in a starting state, and when the earphone wire plug is not matched with the earphone interface for use, the earphone wire plug is in an unactuated state.
Optionally, the conversion device further comprises a power supply module;
the power supply module is respectively connected with the first indication module, the communication module and the control module and is used for supplying power to the first indication module, the communication module and the control module.
Optionally, the conversion device further comprises a charging interface;
the charging interface is used for being matched with a charging plug of a charging device for providing electric energy to charge the power supply module.
Optionally, the conversion device further comprises a second indication module;
the second indication module is configured to indicate power related information of the power supply module, where the power related information includes charging state information, and the charging state information indicates that the power supply module is in a charging state or a non-charging state; and
The charging interface and the charging plug form a passage with the charging device when being matched with each other for use, and are in a starting state, and form an open circuit with the charging device when the charging interface and the charging plug are not matched with each other for use, and are in an un-starting state.
Optionally, the control module is configured to respond to the fact that the earphone interface is internally matched with the earphone wire plug, perform digital-to-analog conversion processing on the audio data to obtain an analog audio signal, and send the analog audio signal to the earphone wire plug through the earphone interface, so that the earphone outputs audio information according to the analog audio signal.
Optionally, the first indication module includes at least one of:
Indicator light, audio output module, display panel.
Optionally, the apparatus further comprises: a prompting module;
The prompt module is used for receiving the prompt instruction sent by the control module and outputting a prompt according to the prompt instruction, wherein the prompt instruction is an instruction sent by the control module after receiving the audio data.
Optionally, the prompting module includes at least one of:
Indicator light, audio output module, display panel.
Optionally, the apparatus further comprises: a storage module;
The storage module is used for storing the audio data sent by the control module;
and the control module is used for sending the audio data to the storage module when the moment of receiving the audio data is judged not to meet the preset time condition.
According to a second aspect of embodiments of the present disclosure, there is provided a method of converting audio data, applied to the converting apparatus described in the first aspect, the method including:
when the conversion device is in wireless communication connection with a terminal, receiving audio data to be played, which are sent by the terminal;
Performing digital-to-analog conversion processing on the audio data to obtain an analog audio signal;
and sending the analog audio signal to a headset interface.
Optionally, an earphone wire plug of an earphone is fitted in the earphone interface, and the sending the analog audio signal to the earphone interface includes:
and sending the analog audio signal to the earphone wire plug through the earphone interface so that the earphone outputs audio information according to the analog audio signal.
According to a third aspect of embodiments of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method of the second aspect described above.
According to a fourth aspect of embodiments of the present disclosure, there is provided a conversion apparatus, comprising:
A processor;
a memory for storing processor-executable instructions;
Wherein the processor is configured to:
when the conversion device is in wireless communication connection with a terminal, receiving audio data to be played, which are sent by the terminal;
Performing digital-to-analog conversion processing on the audio data to obtain an analog audio signal;
and sending the analog audio signal to a headset interface.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
In this disclosure, conversion equipment includes earphone interface, communication module and control module, and earphone interface is used for cooperating with earphone cord plug and uses, and communication module carries out wireless communication with the terminal and is connected to give control module with audio data, control module carries out digital to analog conversion to audio data and handles, obtains analog audio signal, and gives earphone interface with analog audio signal transmission, makes the earphone carry out the linear connection through with conversion equipment under the condition that does not carry out the linear connection with the terminal, acquires and exports the audio information that the terminal broadcast.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in this disclosure to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "in response to a determination" depending on the context.
The present disclosure provides a conversion device, which is capable of receiving audio data sent by a terminal, performing digital-to-analog conversion on the received audio data, and sending an obtained analog audio signal to an earphone line interface of an earphone connected to the conversion device, so that the earphone outputs a sound wave according to the analog audio signal, and a user listens to audio information, such as music information, voice information, etc., corresponding to the audio data sent by the terminal through the earphone.
Referring to fig. 1, a block diagram of a conversion device according to an exemplary embodiment is shown, the conversion device comprising: the earphone comprises an earphone interface 1, a communication module 2 and a control module 3; wherein,
An earphone interface 1 for being matched with an earphone wire plug of an earphone;
The communication module 2 is used for carrying out wireless communication connection with the terminal, receiving audio data to be played sent by the terminal and sending the audio data to the control module, wherein the audio data is a digital audio signal;
The control module 3 is configured to perform digital-to-analog conversion processing on the audio data sent by the communication module 2, obtain an analog audio signal, and send the analog audio signal to the earphone interface.
Wherein, communication module 2 can be connected with control module 3 communication, and control module 3 can be connected with earphone interface communication.
In an implementation, in a case where an earphone cord plug is fitted in the earphone interface, the control module 3 transmits the obtained analog audio signal to the earphone interface and transmits the analog audio signal to the earphone cord plug through the earphone interface, so that the earphone outputs audio information according to the analog audio signal. Under the condition that the earphone wire plug is not matched in the earphone interface, the control module 3 can perform digital-to-analog conversion processing on the audio data sent by the communication module and send the obtained analog audio signal to the earphone interface, or the control module 3 can perform subsequent operations such as digital-to-analog conversion processing on the audio data sent by the communication module, so that the working pressure of the control module 3 is reduced, and the energy consumption of the conversion device is saved.
There are various modes of wireless communication connection between the communication module 2 and the terminal, for example, bluetooth connection between the communication module 2 and the terminal, wireless lan connection between the communication module 2 and the terminal, and the like. The communication module 2 can support multiple wireless communication connection modes simultaneously.
The structure of the earphone interface 1 is various, such as a single earphone interface with a round 3.5MM head, a USB earphone interface, and the like. The specific structure and number of the earphone interfaces 1 can be set according to actual requirements.
The conversion device may comprise one earphone interface 1, or may comprise at least two earphone interfaces 1 of the same or different types, for example, two earphone interfaces 1 are included, one earphone interface may be a round-head earphone interface, and the other earphone interface may be a Type-c interface.
Through the setting of earphone interface 1, communication module 2 and control module 3 for conversion equipment has and carries out wireless communication with the terminal and be connected to and use through earphone interface 1 and earphone cord plug cooperation, realize conversion equipment and earphone connection. The earphone is not connected with the terminal, and can acquire and output audio information played by the terminal through linear connection with the conversion device, and a user can listen to the audio information, such as music information, voice information and the like through wearing the earphone.
When only being equipped with the sharing interface that the background art was described on the terminal, at the in-process that the terminal used the sharing interface to charge, can cooperate to use the conversion equipment that this disclosure provided, realize that the terminal carries out indirect connection through conversion equipment and earphone for the terminal that only is equipped with the sharing interface can charge simultaneously and be connected with the earphone, the intelligence of terminal obtains improving, and has satisfied the user demand of user to the terminal.
In an alternative embodiment, the conversion device may further include a first indication module, where the first indication module is configured to indicate a connection state of the earphone line plug and the earphone interface.
The first indication module is in a starting state when the earphone wire plug is matched with the earphone interface for use, and is in an unactuated state when the earphone wire plug is not matched with the earphone interface for use. In this way, the matching state of the earphone wire plug and the earphone interface is determined by judging whether the first indication module is started or not.
The first indication module is connected in series with the power supply module and the earphone interface, or connected in parallel with the earphone interface, etc. In the implementation, the first indication module can form a passage with the power supply module when the earphone wire plug is matched with the earphone interface for use, is in a starting state, and can form an open circuit with the power supply module when the earphone wire plug is not matched with the earphone interface for use, and is in an un-starting state.
Based on the setting of the first indication module, the conversion device has the function of indicating the connection state of the earphone wire plug and the earphone interface 1, the user can determine the matching state of the earphone wire plug and the earphone interface 1 through the first indication module, the performance of the conversion device is improved, and the user experience is improved.
There are a variety of first indication modules suitable for use in the present disclosure, for example, the first indication module may include at least one of: indicator light, audio output module, display panel.
Referring to fig. 2, another block diagram of a conversion device is shown, according to an exemplary embodiment, with a first indicator module being an indicator light 4. In implementation, the matching state of the earphone line plug and the earphone interface 1 may be determined according to whether the indicator light 4 is started, for example, when the indicator light 4 is on, the earphone line plug is determined to be matched with the earphone interface 1, and when the indicator light 4 is off, the earphone line plug is determined to be not matched with the earphone interface 1; or the indicator lamp 4 can emit light with different colors, and the matching state of the earphone wire plug and the earphone interface 1 can be determined according to the light color emitted by the indicator lamp 4.
If the first indication module includes an audio output module, when the earphone cord plug is used with the earphone interface 1, the audio output module may output a prompt message about that the earphone cord plug is used with the earphone interface 1, for example: and (5) prompting sound.
If the first indication module includes a display panel, the matching state of the earphone line plug and the earphone interface 1 can be determined according to the information content displayed by the display panel, such as the information of text content, state number, graphics and the like.
The conversion device may further include a power supply module electrically connected to the first indication module, the communication module 2 and the control module 3, respectively, where the power supply module is configured to supply power to the first indication module, the communication module 2 and the control module 3. Based on the setting of the power supply module, the conversion device has an autonomous power supply function, and the performance of the conversion device is improved.
Referring to fig. 3, a block diagram of another conversion device according to an exemplary embodiment is shown, where the conversion device includes the power supply module, and the conversion device may further include a charging interface 5, where the charging interface 5 is connected to the power supply module, and the charging interface 5 is used to be used with a charging plug of the charging device that provides electric energy to charge the power supply module. Based on the setting of the charging interface 5, the conversion device has an electric storage function, so that the power supply module is ensured to supply power for the conversion device for a long time, and the performance of the conversion device is improved.
The charging interface 5 suitable for the present disclosure has various structures, such as a 3.5MM round head single earphone interface, a USB earphone interface, and the like. The specific structure of the charging interface 5 can be set according to actual requirements.
In an alternative embodiment, the conversion device may further include a second indication module, where the second indication module is configured to indicate power related information of the power supply module, and the power related information includes charge state information, where the charge state information indicates that the power supply module is in a charge state or a non-charge state.
The second indication module forms a passage with the charging device when the charging interface is matched with the charging plug to be in a starting state, and forms an open circuit with the charging device when the charging interface is not matched with the charging plug to be in an un-starting state. In this way, the second indication module is judged to be started or not, the matching state of the charging interface and the charging plug is determined, and the charging state of the power supply module is determined.
Based on the setting of the second indication module, the conversion device has the function of indicating whether the power supply module is in a charging state or a non-charging state, and the user can determine the charging state of the power supply module through the second indication module, so that the performance of the conversion device is improved, and the user experience is improved.
In the present disclosure, the power related information indicated by the second indication module may include other information, such as remaining power information, used power information, and the like, in addition to the charge state information.
Similar to the first indicator module, there are a variety of second indicator modules suitable for use in the present disclosure, for example, the second indicator module may include at least one of: indicator light, audio output module, display panel.
Referring to fig. 4, another block diagram of a conversion device is shown according to an exemplary embodiment, the second indicator module being an indicator light 6. In an implementation, the charging state of the power supply module may be determined according to whether the indicator light 6 is started, for example, when the indicator light 6 is on, the power supply module is determined to be in a charging state, and when the indicator light 6 is off, the power supply module is determined to be in an uncharged state; or the indicator lamp 6 can emit light with different colors, and the charging state of the power supply module can be determined according to the light color emitted by the indicator lamp 6.
It should be noted that, the first indication module may include one or more of an indication lamp, an audio output module, and a display panel, and may be other applicable modules or devices having the indication function, which is not limited in this disclosure; also, the second indication module may include one or more of an indication lamp, an audio output module, and a display panel, and may be other suitable modules or devices having the indication function, which is not limited herein.
In an alternative embodiment, the conversion device may further include a prompt module, where the prompt module is connected to the control module 3, and the prompt module may receive a prompt instruction sent by the control module 3, where the prompt instruction is an instruction sent by the control module 3 after receiving the audio data, where the prompt instruction indicates that the control module 3 receives the audio data, and the prompt module outputs a prompt according to the prompt instruction. The user may determine from the prompt that the conversion device receives an audio data.
The prompting module is various, for example, the prompting module can comprise at least one of the following: indicator lights, audio output modules, display panels, etc. In addition to the above structure, the prompting module may be another applicable module or device with the prompting function, which is not limited herein.
Based on the setting of the prompt module, the conversion device has the function of outputting corresponding prompts after receiving the audio data, and the performance of the conversion device is improved.
In an alternative embodiment, the conversion means may further comprise a memory module, which is connected to the control module 3; the control module 3 sends the audio data to the storage module when the moment of receiving the audio data is judged not to meet the preset time condition; the storage module stores the audio data transmitted by the control module 3.
The control module 3 performs digital-to-analog conversion processing on the audio data to obtain an analog audio signal when the moment of receiving the audio data is determined to meet the preset time condition, and sends the analog audio signal to the earphone interface 1.
The preset time condition may define a time range, for example, the preset time condition defines a daytime period, when the control module 3 determines that the moment of receiving the audio data falls in the daytime period, digital-to-analog conversion processing is performed on the audio data, so that the earphone used with the conversion device plays audio information in the daytime period and does not play audio information in the evening period, thereby ensuring a rest of a user and reducing the power consumption of the conversion device.
Based on the arrangement of the storage module and the control module 3 in the embodiment, the conversion device has the function of sending the audio data to the storage module for storage when the moment of receiving the audio data is judged not to meet the preset time condition, and the performance of the conversion device is improved.
The present disclosure also provides a method of converting audio data. Referring to fig. 5, a flowchart of a method of converting audio data, which is applied to the above-provided converting apparatus of the present disclosure, is shown according to an exemplary embodiment, and includes:
in step 101, when the conversion device is in wireless communication connection with the terminal, audio data to be played sent by the terminal is received.
In step 102, digital-to-analog conversion processing is performed on the audio data to obtain an analog audio signal.
In step 103, the analog audio signal is sent to the headphone interface.
Based on the setting of step 101-step 103, the conversion device has the functions of receiving the audio data to be played sent by the terminal, performing digital-to-analog conversion on the audio data to obtain an analog audio signal, and sending the analog audio signal to the earphone interface.
In an alternative embodiment, in the case of an earphone line plug fitted with an earphone in the earphone interface, step 103 may be implemented by: and sending the analog audio signal to the earphone wire plug through the earphone interface so that the earphone outputs audio information according to the analog audio signal. Therefore, under the condition that the earphone is not in linear connection with the terminal, the earphone is in linear connection with the conversion device, and audio information played by the terminal is obtained and output.
In an optional embodiment, the conversion device may further include a prompt module, where the prompt module is connected to the control module, and in this structure, after receiving the audio data to be played sent by the terminal, the method may further include: the output conversion device receives a prompt for audio data. The user is facilitated to determine from the prompt that the conversion means received the audio data.
In an alternative embodiment, the conversion device may further include a storage module, where the storage module is connected to the control module, and in this structure, after receiving the audio data to be played sent by the terminal, the method may further include: and judging whether the moment of receiving the audio data meets the preset time condition or not, and storing the audio data to a storage module under the condition that the moment of receiving the audio data does not meet the preset time condition. Therefore, the conversion device selectively stores or performs digital-to-analog conversion processing on the received audio data according to the time when the audio data are received and the preset time condition.
The present disclosure also provides a method of transmitting audio data. Referring to fig. 6, there is a flowchart illustrating a method of transmitting audio data, which is applied to a terminal, according to an exemplary embodiment, the method of transmitting audio data including:
step 201, when it is detected that the external device includes the conversion device provided in the present disclosure, audio data to be played is sent to a communication module of the conversion device through a wireless communication connection mode, so that a control module of the conversion device performs digital-to-analog conversion processing on the audio data received by the communication module to obtain an analog audio signal, and sends the analog audio signal to an earphone interface.
The terminal has the function of detecting whether the terminal is connected with the conversion device or not, and sending the audio data to be played to the communication module of the conversion device in a wireless communication connection mode. Under the condition that the terminal is not in linear connection with the earphone, the terminal is communicated with the conversion device to indirectly transmit audio information to the earphone, the intelligence of the terminal is improved, and the use requirement of a user on the terminal is met.
In an alternative embodiment, when the terminal is detected to be in wireless communication connection with the conversion device, the terminal may send the audio data to be played by the terminal to the communication module of the conversion device according to a preset sending mechanism.
There are various preset sending mechanisms, for example, the first preset sending mechanism is: the method comprises the steps of sending audio data to be played by a terminal in preset duration to a communication module of a conversion device; the second preset sending mechanism is as follows: judging whether the audio data to be played by the terminal is preset audio data or not, and if so, sending the audio data to be played by the terminal to a communication module of the conversion device.
Based on the setting and the use of the preset sending mechanism, the execution condition that the terminal sends the audio data to the conversion device is added, and the intelligence of the terminal is further improved.
The present disclosure also provides a method of transmitting audio data. Referring to fig. 7, a flowchart of a method of transmitting audio data is shown, the method being applied to an intelligent system, the intelligent system comprising: the terminal, the conversion device and the earphone, wherein the terminal and the conversion device are the equipment provided by the above embodiment of the disclosure, and the earphone is a wired earphone, and the method for transmitting audio data comprises the following steps:
in step 301, when detecting that the external device includes a conversion device, the terminal sends audio data to be played to the conversion device through a wireless communication connection mode.
In step 302, the conversion device performs digital-to-analog conversion processing on the audio data to obtain an analog audio signal, and sends the analog audio signal to an earphone line plug of the earphone through the earphone interface.
In step 303, the earphone outputs audio information according to the analog audio signal received by the earphone line plug.
For the foregoing method embodiments, for simplicity of explanation, the methodologies are shown as a series of acts, but one of ordinary skill in the art will appreciate that the present disclosure is not limited by the order of acts described, as some steps may occur in other orders or concurrently in accordance with the disclosure.
Further, those skilled in the art will also appreciate that the embodiments described in the specification are all alternative embodiments, and that the acts and modules referred to are not necessarily required by the present disclosure.
Accordingly, in one aspect, the disclosed embodiments provide a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method of converting audio data provided by the disclosed embodiments.
In another aspect, an embodiment of the present disclosure provides a conversion apparatus, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to: when the conversion device is in wireless communication connection with the terminal, receiving audio data to be played, which are sent by the terminal; performing digital-to-analog conversion processing on the audio data to obtain an analog audio signal; the analog audio signal is sent to the headphone interface.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.