Conversion device and method for converting audio data
By providing a conversion device on the smart terminal, using wireless communication and digital-to-analog conversion technology, the problem that the smart terminal cannot connect to the headset when charging is solved, and the function of obtaining and outputting audio information during the charging process is realized, which improves the terminal's Intelligence and user experience.
Patent Information
- Application Number
- CN201910693165.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-07-30
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2039-07-30
AI Technical Summary
The smart terminal cancels the headphone interface, which makes it impossible to connect to the headphones at the same time when charging, and cannot obtain and output audio information.
Provides a conversion device, including a headphone interface, a communication module and a control module, which connects the terminal through a wireless communication terminal, receives audio data and performs digital-to-analog conversion, and sends analog audio signals to the headphone interface, so that the headphones can obtain and output when they are not linearly connected. Audio information.
It realizes that audio information can still be obtained and output when the smart terminal is charged, improving the intelligence and user experience of the terminal.
Smart Images

Figure CN110324749B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer communication technology, and in particular to a conversion device and a method for converting audio data. Background Art
[0002] A conventional smart terminal is provided with an earphone interface. When an earphone plug of an earphone is connected to the earphone interface of the smart terminal, the earphone can output audio information played by the smart terminal.
[0003] In order to make the smart terminal more beautiful and thin, the relevant technology cancels the setting of the headphone interface on the smart terminal, and only sets a shared interface on the smart terminal, such as the Type-C (Type-C is a hardware interface specification of the Universal Serial Bus (USB)) interface, etc. The shared interface can be used as a charging interface to charge the smart terminal, and the shared interface can also be used as a headphone interface to connect to the headphone plug.
[0004] Based on the setting of the shared interface, the smart terminal can only be charged or linearly connected to the headset at a certain moment. During the charging process of the smart terminal, the headset cannot be linearly connected to the smart terminal and cannot obtain and output the audio information played by the smart terminal. Summary of the invention
[0005] In view of this, the present disclosure provides a conversion device that can be wirelessly connected to a terminal and used in conjunction with a headphone line plug through a headphone interface. When the headphone is not linearly connected to the terminal, it can obtain and output the audio information played by the terminal by linearly connecting to the conversion device.
[0006] According to a first aspect of an embodiment of the present disclosure, there is provided a conversion device, comprising: an earphone interface, a communication module and a control module;
[0007] The headphone interface is used in conjunction with a headphone line plug of a headphone;
[0008] The communication module is used to establish a wireless communication connection with the terminal, receive the audio data to be played sent by the terminal, and send the audio data to the control module;
[0009] The control module is used to perform digital-to-analog conversion on the audio data to obtain an analog audio signal, and send the analog audio signal to the headphone interface.
[0010] Optionally, the conversion device further includes a first indication module;
[0011] The first indication module is used to indicate the connection status between the headphone line plug and the headphone interface; and
[0012] When the headphone line plug is used in conjunction with the headphone interface, it is in an activated state, and when the headphone line plug is not used in conjunction with the headphone interface, it is in an inactivated state.
[0013] Optionally, the conversion device further includes a power supply module;
[0014] The power supply module is connected to the first indication module, the communication module and the control module respectively, and is used to supply power to the first indication module, the communication module and the control module.
[0015] Optionally, the conversion device further includes a charging interface;
[0016] The charging interface is used in conjunction with a charging plug of a charging device that provides electrical energy to charge the power supply module.
[0017] Optionally, the conversion device further includes a second indication module;
[0018] The second indication module is used to indicate the power-related information of the power supply module, wherein the power-related information includes charging status information, and the charging status information indicates whether the power supply module is in a charging state or a non-charging state; and
[0019] When the charging interface and the charging plug are used together, a circuit is formed with the charging device and the charging device is in an activated state. When the charging interface and the charging plug are not used together, a circuit is broken with the charging device and the charging device is in an unactivated state.
[0020] Optionally, the control module is used to perform digital-to-analog conversion on the audio data in response to the headphone line plug being fitted in the headphone interface to obtain an analog audio signal, and send the analog audio signal to the headphone line plug through the headphone interface, so that the headphone outputs audio information according to the analog audio signal.
[0021] Optionally, the first indication module includes at least one of the following:
[0022] Indicator lights, audio output module, display panel.
[0023] Optionally, the device further comprises: a prompt module;
[0024] The prompt module is used to receive the prompt instruction sent by the control module and output a prompt according to the prompt instruction. The prompt instruction is an instruction sent by the control module after receiving the audio data.
[0025] Optionally, the prompt module includes at least one of the following:
[0026] Indicator lights, audio output module, display panel.
[0027] Optionally, the device further comprises: a storage module;
[0028] The storage module is used to store the audio data sent by the control module;
[0029] The control module is used to send the audio data to the storage module when it is determined that the moment of receiving the audio data does not meet the preset time condition.
[0030] According to a second aspect of an embodiment of the present disclosure, a method for converting audio data is provided, which is applied to the conversion device described in the first aspect, and the method includes:
[0031] When the conversion device is connected to the terminal by wireless communication, receiving the audio data to be played sent by the terminal;
[0032] Performing digital-to-analog conversion on the audio data to obtain an analog audio signal;
[0033] The analog audio signal is sent to the headphone interface.
[0034] Optionally, the headphone interface is equipped with a headphone line plug of a headphone, and sending the analog audio signal to the headphone interface includes:
[0035] The analog audio signal is sent to the headphone line plug through the headphone interface, so that the headphone outputs audio information according to the analog audio signal.
[0036] According to a third aspect of an embodiment of the present disclosure, there is provided a non-temporary computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the method described in the second aspect are implemented.
[0037] According to a fourth aspect of an embodiment of the present disclosure, there is provided a conversion device, comprising:
[0038] processor;
[0039] a memory for storing processor-executable instructions;
[0040] Wherein, the processor is configured to:
[0041] When the conversion device is connected to the terminal by wireless communication, receiving the audio data to be played sent by the terminal;
[0042] Performing digital-to-analog conversion on the audio data to obtain an analog audio signal;
[0043] The analog audio signal is sent to the headphone interface.
[0044] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0045] In the present disclosure, the conversion device includes a headphone interface, a communication module and a control module. The headphone interface is used in conjunction with a headphone line plug. The communication module is wirelessly connected to the terminal and sends audio data to the control module. The control module performs digital-to-analog conversion on the audio data to obtain an analog audio signal, and sends the analog audio signal to the headphone interface, so that the headphone can obtain and output the audio information played by the terminal by linearly connecting to the conversion device without being linearly connected to the terminal.
[0046] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 is a flow chart of a conversion device according to an exemplary embodiment;
[0048] Figure 2 is a flow chart of another conversion device according to an exemplary embodiment;
[0049] Figure 3 is a flow chart of another conversion device according to an exemplary embodiment;
[0050] Figure 4 is a flow chart of another conversion device according to an exemplary embodiment;
[0051] Figure 5 is a flow chart of a method for converting audio data according to an exemplary embodiment;
[0052] Figure 6 is a flow chart of a method for transmitting audio data according to an exemplary embodiment;
[0053] Figure 7 The figure is a flow chart of another method for transmitting audio data according to an exemplary embodiment.
[0054] Description of reference numerals:
[0055] 1. Headphone jack; 2. Communication module; 3. Control module; 4. Indicator light;
[0056] 5. Charging port; 6. Indicator light DETAILED DESCRIPTION
[0057] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0058] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. The singular forms of "a", "said" and "the" used in this disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0059] It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0060] The present disclosure provides a conversion device that can receive audio data sent by a terminal, perform digital-to-analog conversion on the received audio data, and send the obtained analog audio signal to an earphone line interface of an earphone connected to the conversion device, so that the earphone outputs sound waves according to the analog audio signal, so that a user can listen to audio information corresponding to the audio data sent by the terminal, such as music information, voice information, etc., through the earphone.
[0061] Reference Figure 1 According to a block diagram of a conversion device shown in an exemplary embodiment, the conversion device includes: an earphone interface 1, a communication module 2 and a control module 3; wherein,
[0062] Headphone jack 1, used for use with a headphone cable plug of a headphone;
[0063] The communication module 2 is used to establish a wireless communication connection with the terminal, receive the audio data to be played sent by the terminal, and send the audio data to the control module, wherein the audio data is a digital audio signal;
[0064] The control module 3 is used to perform digital-to-analog conversion on the audio data sent by the communication module 2 to obtain an analog audio signal, and send the analog audio signal to the headphone interface.
[0065] The communication module 2 can be connected to the control module 3 for communication, and the control module 3 can be connected to the headphone interface for communication.
[0066] In the implementation, when the headphone interface is equipped with a headphone line plug, the control module 3 sends the obtained analog audio signal to the headphone interface, and sends it to the headphone line plug through the headphone interface, so that the headphone outputs audio information according to the analog audio signal. When the headphone interface is not equipped with a headphone line plug, the control module 3 can perform digital-to-analog conversion on the audio data sent by the communication module, and send the obtained analog audio signal to the headphone interface, or the control module 3 can not perform subsequent operations such as digital-to-analog conversion on the audio data sent by the communication module, so as to reduce the working pressure of the control module 3 and save the energy consumption of the conversion device.
[0067] There are many ways for the communication module 2 to connect to the terminal through wireless communication, such as Bluetooth connection between the communication module 2 and the terminal, wireless LAN connection between the communication module 2 and the terminal, etc. The communication module 2 can support multiple wireless communication connection modes at the same time.
[0068] There are many structures of the headphone jack 1, such as a single headphone jack with a 3.5MM round head, a USB headphone jack, etc. The specific structure and quantity of the headphone jack 1 can be set according to actual needs.
[0069] The conversion device may include one headphone jack 1, or may include at least two headphone jacks 1 of the same or different types. Taking two headphone jacks 1 as an example, one headphone jack may be a round headphone jack, and the other headphone jack may be a Type-c interface.
[0070] Through the configuration of the earphone interface 1, the communication module 2 and the control module 3, the conversion device is capable of wirelessly communicating with the terminal, and the conversion device is connected to the earphone through the earphone interface 1 in conjunction with the earphone line plug. When the earphone is not connected to the terminal, it can obtain and output the audio information played by the terminal through a linear connection with the conversion device, and the user can listen to the audio information, such as music information, voice information, etc., by wearing the earphone.
[0071] When the terminal is only provided with the common interface described in the background technology, during the process of charging the terminal using the common interface, the conversion device provided by the present invention can be used in conjunction to realize an indirect connection between the terminal and the headset through the conversion device, so that the terminal only provided with a common interface can be charged and connected to the headset at the same time, the intelligence of the terminal is improved, and the user's requirements for the terminal are met.
[0072] In an optional embodiment, the conversion device may further include a first indication module, the first indication module being used to indicate the connection status between the headphone line plug and the headphone interface.
[0073] The first indication module is in an activated state when the headphone line plug is used in conjunction with the headphone interface, and is in an inactivated state when the headphone line plug is not used in conjunction with the headphone interface. In this way, the coordination state of the headphone line plug and the headphone interface is determined by judging whether the first indication module is activated.
[0074] There are many ways to connect the first indication module, for example, the first indication module, the power supply module and the headphone interface are connected in series, or the first indication module and the headphone interface are connected in parallel, etc. In implementation, the first indication module can form a path with the power supply module when the headphone line plug and the headphone interface are used together, and be in an activated state, and can form a disconnection with the power supply module when the headphone line plug and the headphone interface are not used together, and be in an unactivated state.
[0075] Based on the setting of the first indication module, the conversion device has the function of indicating the connection status of the headphone line plug and the headphone interface 1. The user can determine the matching status of the headphone line plug and the headphone interface 1 through the first indication module, the performance of the conversion device is improved, and the user experience is improved.
[0076] There are various first indication modules applicable to the present disclosure. For example, the first indication module may include at least one of the following: an indicator light, an audio output module, and a display panel.
[0077] Reference Figure 2 This is another block diagram of a conversion device according to an exemplary embodiment, in which the first indication module is an indicator light 4. In implementation, the matching state of the headphone line plug and the headphone interface 1 can be determined according to whether the indicator light 4 is turned on. For example, when the indicator light 4 is on, it is determined that the headphone line plug is used in conjunction with the headphone interface 1, and when the indicator light 4 is off, it is determined that the headphone line plug is not used in conjunction with the headphone interface 1; or, the indicator light 4 can emit lights of different colors, and the matching state of the headphone line plug and the headphone interface 1 can be determined according to the color of the light emitted by the indicator light 4.
[0078] If the first indication module includes an audio output module, when the headphone line plug is used in conjunction with the headphone interface 1 , the audio output module can output prompt information about the headphone line plug and the headphone interface 1 being used in conjunction with each other, such as a prompt tone.
[0079] If the first indication module includes a display panel, the matching state of the headphone line plug and the headphone interface 1 can be determined according to the information content displayed on the display panel, such as text content, state number, graphics and other information.
[0080] The conversion device may further include a power supply module, which is electrically connected to the first indication module, the communication module 2 and the control module 3, respectively, and is used 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 the function of autonomous power supply, and the performance of the conversion device is improved.
[0081] Reference Figure 3 This is another block diagram of a conversion device according to an exemplary embodiment. On the basis that the conversion device includes the above-mentioned power supply module, the conversion device may also include a charging interface 5, which is connected to the power supply module. The charging interface 5 is used in conjunction with a charging plug of a charging device that provides electrical energy to charge the power supply module. Based on the setting of the charging interface 5, the conversion device has a power storage function, which ensures that the power supply module supplies power to the conversion device for a long time, and the performance of the conversion device is improved.
[0082] There are many structures of the charging interface 5 applicable to the present disclosure, such as a single headphone interface with a 3.5MM round head, a USB headphone interface, etc. The specific structure of the charging interface 5 can be set according to actual needs.
[0083] In an optional embodiment, the conversion device may further include a second indication module, which is used to indicate power-related information of the power supply module, where the power-related information includes charging status information, and the charging status information indicates whether the power supply module is in a charging state or a non-charging state.
[0084] When the charging interface and the charging plug are used together, the second indication module forms a path with the charging device and is in an activated state, and when the charging interface and the charging plug are not used together, the second indication module forms a disconnection with the charging device and is in an inactivated state. In this way, by judging whether the second indication module is activated, the matching state of the charging interface and the charging plug is determined, and the charging state of the power supply module is determined.
[0085] Based on the setting of the second indication module, the conversion device has the function of indicating the power-related information of the power supply module and indicating whether the power supply module is in a charging state or a non-charging state. The user can determine the charging state of the power supply module through the second indication module, the performance of the conversion device is improved, and the user experience is improved.
[0086] 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, etc., in addition to the charging status information.
[0087] Similar to the first indication module, there are various second indication modules applicable to the present disclosure. For example, the second indication module may include at least one of the following: an indicator light, an audio output module, and a display panel.
[0088] Reference Figure 4 is another block diagram of a conversion device according to an exemplary embodiment, in which the second indication module is an indicator light 6. In implementation, the charging state of the power supply module can be determined according to whether the indicator light 6 is started, for example, when the indicator light 6 is on, it is determined that the power supply module is in a charging state, and when the indicator light 6 is off, it is determined that the power supply module is in an uncharged state; or, the indicator light 6 can emit lights of different colors, and the charging state of the power supply module can be determined according to the color of the light emitted by the indicator light 6.
[0089] It should be noted that, in addition to including one or more of the indicator light, audio output module, and display panel, the first indication module may also be other applicable modules or devices with the said indication function, and the present disclosure does not limit this here; similarly, in addition to including one or more of the indicator light, audio output module, and display panel, the second indication module may also be other applicable modules or devices with the said indication function, and the present disclosure does not limit this here.
[0090] In an optional embodiment, the conversion device may further include a prompt module, which is connected to the control module 3 and can receive a prompt instruction sent by the control module 3. The prompt instruction is an instruction sent by the control module 3 after receiving the audio data. The prompt instruction indicates that the control module 3 has received the audio data, and the prompt module outputs a prompt according to the prompt instruction. The user can determine that the conversion device receives the audio data according to the prompt.
[0091] There are many types of prompt modules, for example, the prompt module may include at least one of the following: indicator light, audio output module, display panel, etc. In addition to the above structure, the prompt module may also be other applicable modules or devices with the prompt function, and the present disclosure does not limit this.
[0092] Based on the setting of the prompt module, the conversion device has the function of outputting corresponding prompts after receiving audio data, and the performance of the conversion device is improved.
[0093] In an optional embodiment, the conversion device may also include a storage module, which is connected to the control module 3; the control module 3 sends the audio data to the storage module when it is determined that the moment of receiving the audio data does not meet the preset time condition; the storage module stores the audio data sent by the control module 3.
[0094] When determining that the moment of receiving the audio data satisfies the preset time condition, the control module 3 performs digital-to-analog conversion on the audio data to obtain an analog audio signal, and sends the analog audio signal to the headphone interface 1 .
[0095] The preset time condition can limit the time range. For example, the preset time condition limits the daytime period. When the control module 3 determines that the time when the audio data is received falls within the daytime period, it performs digital-to-analog conversion on the audio data, so that the headphones used in conjunction with the conversion device play audio information during the daytime period, but not during the night time period, thereby ensuring the user's rest and reducing the power consumption of the conversion device.
[0096] Based on the configuration of the storage module and the control module 3 in this embodiment, the conversion device has the function of sending the audio data to the storage module for storage when it is determined that the moment of receiving the audio data does not meet the preset time condition, thereby improving the performance of the conversion device.
[0097] The present disclosure also provides a method for converting audio data. Figure 5 is a flow chart of a method for converting audio data according to an exemplary embodiment. The method is applied to the conversion device provided above in the present disclosure. The method for converting audio data includes:
[0098] In step 101, when the conversion device is connected to the terminal through wireless communication, the audio data to be played sent by the terminal is received.
[0099] In step 102, the audio data is converted from digital to analog to obtain an analog audio signal.
[0100] In step 103, the analog audio signal is sent to the headphone interface.
[0101] Based on the settings of step 101 to step 103, the conversion device has the function 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 headphone interface.
[0102] In an optional embodiment, when the headphone interface is equipped with a headphone line plug of the headphone, step 103 can be implemented in the following manner: the analog audio signal is sent to the headphone line plug through the headphone interface, so that the headphone outputs audio information according to the analog audio signal. In this way, the headphone can obtain and output the audio information played by the terminal by linearly connecting with the conversion device when the headphone is not linearly connected with the terminal.
[0103] In an optional embodiment, the conversion device may further include a prompt module, which is connected to the control module. In this structure, after receiving the audio data to be played sent by the terminal, the method may further include: outputting a prompt that the conversion device has received the audio data, so that the user can determine that the conversion device has received the audio data according to the prompt.
[0104] In an optional embodiment, the conversion device may further include a storage module, which is connected to the control module. In this structure, after receiving the audio data to be played sent by the terminal, the method may further include: determining whether the moment of receiving the audio data meets the preset time condition, and if it is determined that the moment of receiving the audio data does not meet the preset time condition, storing the audio data in the storage module. Thus, the conversion device selectively stores or performs digital-to-analog conversion processing on the received audio data according to the moment of receiving the audio data and the preset time condition.
[0105] The present disclosure also provides a method for transmitting audio data. Figure 6 The present invention is a flow chart of a method for transmitting audio data according to an exemplary embodiment. The method is applied to a terminal. The method for transmitting audio data includes:
[0106] Step 201, when it is detected that the external device includes the conversion device provided above in the present disclosure, the audio data to be played is sent to the communication module of the conversion device via a wireless communication connection, and the control module of the conversion device performs digital-to-analog conversion on the audio data received by the communication module to obtain an analog audio signal, and sends the analog audio signal to the headphone interface.
[0107] The terminal has the function of detecting whether it is connected to the conversion device and sending the audio data to be played to the communication module of the conversion device through a wireless communication connection. When the terminal is not linearly connected to the earphone, it communicates with the conversion device to indirectly transmit audio information to the earphone, thereby improving the intelligence of the terminal and meeting the user's needs for the terminal.
[0108] In an optional embodiment, when it is detected that the terminal is 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.
[0109] There are multiple preset sending mechanisms. For example, the first preset sending mechanism is: sending the audio data to be played by the terminal within a preset time length to the communication module of the conversion device; the second preset sending mechanism is: judging whether the audio data to be played by the terminal is the preset audio data. If it is determined that the audio data to be played by the terminal is the preset audio data, the audio data to be played by the terminal is sent to the communication module of the conversion device.
[0110] Based on the setting and use of the preset sending mechanism, an execution condition for the terminal to send audio data to the conversion device is added, and the intelligence of the terminal is further improved.
[0111] The present disclosure also provides a method for transmitting audio data. Figure 7The present invention is a flow chart of a method for transmitting audio data according to an exemplary embodiment. The method is applied to an intelligent system, and the intelligent system includes: a terminal, a conversion device, and a headset, wherein the terminal and the conversion device are both devices provided by the above embodiments of the present disclosure, and the headset is a wired headset. The method for transmitting audio data includes:
[0112] In step 301, when the terminal detects that the external device includes a conversion device, the terminal sends the audio data to be played to the conversion device via a wireless communication connection.
[0113] 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 the headphone line plug of the headphone through the headphone interface.
[0114] In step 303, the earphone outputs audio information according to the analog audio signal received by the earphone line plug.
[0115] For the aforementioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should know that the present disclosure is not limited by the described order of actions, because according to the present disclosure, certain steps can be performed in other orders or simultaneously.
[0116] Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present disclosure.
[0117] Accordingly, on the one hand, an embodiment of the present disclosure provides a non-temporary computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method for converting audio data provided by an embodiment of the present disclosure.
[0118] On the other hand, an embodiment of the present disclosure provides a conversion device, comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to: when the conversion device is wirelessly connected to a terminal, receive audio data to be played sent by the terminal; perform digital-to-analog conversion on the audio data to obtain an analog audio signal; and send the analog audio signal to a headphone interface.
[0119] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0120] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A conversion device, characterized in that: include: Headphone jack, communication module, storage module and control module; The headphone interface is used in conjunction with a headphone line plug of a headphone; The communication module is used to establish a wireless communication connection with the terminal, receive the audio data to be played sent by the terminal, and send the audio data to the control module; The storage module is used to store the audio data sent by the control module; The control module is used to perform digital-to-analog conversion on the audio data to obtain an analog audio signal when determining that the moment of receiving the audio data is within a specified time range, and send the analog audio signal to the headphone interface; When it is determined that the time when the audio data is received is not within the specified time range, the audio data is sent to the storage module.
2. The conversion device according to claim 1, characterized in that: The conversion device also includes a first indication module; The first indication module is used to indicate the connection status between the headphone line plug and the headphone interface; and When the headphone line plug is used in conjunction with the headphone interface, it is in an activated state, and when the headphone line plug is not used in conjunction with the headphone interface, it is in an inactivated state.
3. The conversion device according to claim 2, characterized in that: The conversion device also includes a power supply module; The power supply module is connected to the first indication module, the communication module and the control module respectively, and is used to supply power to the first indication module, the communication module and the control module.
4. The conversion device according to claim 3, characterized in that: The conversion device also includes a charging interface; The charging interface is used in conjunction with a charging plug of a charging device that provides electrical energy to charge the power supply module.
5. The conversion device according to claim 4, characterized in that: The conversion device also includes a second indication module; The second indication module is used to indicate the power-related information of the power supply module, wherein the power-related information includes charging status information, and the charging status information indicates whether the power supply module is in a charging state or a non-charging state; as well as When the charging interface and the charging plug are used together, a circuit is formed with the charging device and the charging device is in an activated state. When the charging interface and the charging plug are not used together, a circuit is broken with the charging device and the charging device is in an unactivated state.
6. The conversion device according to claim 1, characterized in that: The control module is used to perform digital-to-analog conversion on the audio data in response to the headphone line plug being matched with the headphone interface to obtain an analog audio signal, and send the analog audio signal to the headphone line plug through the headphone interface, so that the headphone outputs audio information according to the analog audio signal.
7. A method for converting audio data, characterized in that: The conversion device applied to any one of claims 1 to 6, the method comprising: When the conversion device is connected to the terminal by wireless communication, 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; The analog audio signal is sent to the headphone interface.
8. The method according to claim 7, characterized in that The headphone interface is equipped with a headphone line plug of a headphone, and sending the analog audio signal to the headphone interface includes: The analog audio signal is sent to the headphone line plug through the headphone interface, so that the headphone outputs audio information according to the analog audio signal.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method described in claim 7 or claim 8 are implemented.
10. A conversion device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: When the conversion device is connected to the terminal by wireless communication, receiving the audio data to be played sent by the terminal; When it is determined that the moment when the audio data is received is within the specified time range, performing digital-to-analog conversion processing on the audio data to obtain an analog audio signal, and sending the analog audio signal to the headphone interface; When it is determined that the time when the audio data is received is not within the specified time range, the audio data is stored.
