[go: up one dir, main page]

CN110324749B - Conversion device and method for converting audio data - Google Patents

Conversion device and method for converting audio data Download PDF

Info

Publication number
CN110324749B
CN110324749B CN201910693165.4A CN201910693165A CN110324749B CN 110324749 B CN110324749 B CN 110324749B CN 201910693165 A CN201910693165 A CN 201910693165A CN 110324749 B CN110324749 B CN 110324749B
Authority
CN
China
Prior art keywords
audio data
module
conversion device
interface
earphone
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910693165.4A
Other languages
Chinese (zh)
Other versions
CN110324749A (en
Inventor
侯恩星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201910693165.4A priority Critical patent/CN110324749B/en
Publication of CN110324749A publication Critical patent/CN110324749A/en
Application granted granted Critical
Publication of CN110324749B publication Critical patent/CN110324749B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1025Accumulators or arrangements for charging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2201/00Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
    • H04R2201/10Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

本公开提供一种转换装置及转换音频数据的方法。所述转换装置包括:耳机接口、通讯模块和控制模块,其中,所述耳机接口,用于与耳机的耳机线插头配合使用,所述通讯模块,用于与终端进行无线通讯连接,接收所述终端发送的待播放的音频数据,并将所述音频数据发送给所述控制模块,所述控制模块,用于在所述耳机线插头与所述耳机接口配合使用时,对所述音频数据进行数模转换处理,得到模拟音频信号,并将所述模拟音频信号发送给所述耳机接口,耳机在未与终端进行线性连接的情况下,通过与转换装置进行线性连接,能获取并输出终端待播放的音频信息。

The present disclosure provides a conversion device and a method for converting audio data. The conversion device includes: an earphone interface, a communication module and a control module, wherein the earphone interface is used in conjunction with an earphone line plug of an earphone, the communication module is used to wirelessly communicate with a terminal, receive audio data to be played sent by the terminal, and send the audio data to the control module, the control module is used to perform digital-to-analog conversion processing on the audio data when the earphone line plug is used in conjunction with the earphone interface, obtain an analog audio signal, and send the analog audio signal to the earphone interface, and the earphone can obtain and output the audio information to be played by the terminal by linearly connecting with the conversion device when the earphone line plug is used in conjunction with the earphone interface.

Description

Conversion device and method for converting audio data
Technical Field
The disclosure relates to the technical field of computer communication, and in particular relates to a conversion device and a method for converting audio data.
Background
A traditional intelligent terminal is provided with an earphone interface, and when an earphone plug of the earphone is connected with the earphone interface of the intelligent terminal, the earphone can output audio information played by the intelligent terminal.
In order to make the intelligent terminal more beautiful and light and thin, in the related technology, the setting of an earphone interface on the intelligent terminal is canceled, and only a common interface is arranged on the intelligent terminal, such as a Type-C (Type-C is a hardware interface specification of a universal serial bus (USB, universal Serial Bus)) interface, and the like, wherein the common interface can be used as a charging interface, the common interface is used for charging the intelligent terminal, the common interface can also be used as an earphone interface, and the common interface is connected with an earphone plug.
Based on the setting of sharing interface for intelligent terminal only can charge or carry out the linear connection with the earphone at a certain moment, at the in-process that intelligent terminal charges, the earphone can't carry out the linear connection with intelligent terminal, can't acquire and export the audio information that intelligent terminal broadcast.
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.
Drawings
FIG. 1 is a flow diagram of a conversion device according to an exemplary embodiment;
FIG. 2 is a flow diagram of another conversion device shown in accordance with an exemplary embodiment;
FIG. 3 is a flow diagram of another conversion device shown in accordance with an exemplary embodiment;
FIG. 4 is a flow diagram of another conversion device shown in accordance with an exemplary embodiment;
FIG. 5 is a flowchart illustrating a method of converting audio data, according to an exemplary embodiment;
FIG. 6 is a flowchart illustrating a method of transmitting audio data, according to an exemplary embodiment;
Fig. 7 is a flowchart illustrating another method of transmitting audio data, according to an exemplary embodiment.
Reference numerals illustrate:
1. an earphone interface; 2. a communication module; 3. a control module; 4. an indicator light;
5. a charging interface; 6. indicating lamp
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.

Claims (10)

1.一种转换装置,其特征在于,包括:耳机接口、通讯模块、存储模块和控制模块;1. A conversion device, characterized in that it comprises: an earphone interface, a communication module, a storage module and a 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 it is determined that the moment when the audio data is received is within a specified time range, and send the analog audio signal to the headphone interface; when it is determined that the moment when the audio data is received is not within the specified time range, send the audio data to the storage module. 2.根据权利要求1所述的转换装置,其特征在于,所述转换装置还包括第一指示模块;2. The conversion device according to claim 1, characterized in that the conversion device further comprises 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.根据权利要求2所述的转换装置,其特征在于,所述转换装置还包括供电模块;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.根据权利要求3所述的转换装置,其特征在于,所述转换装置还包括充电接口;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.根据权利要求4所述的转换装置,其特征在于,所述转换装置还包括第二指示模块;5. The conversion device according to claim 4, characterized in that the conversion device further comprises 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; and 在所述充电接口与所述充电插头配合使用时与所述充电装置形成通路,处于启动状态,以及在所述充电接口与所述充电插头未配合使用时与所述充电装置形成断路,处于未启动状态。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.根据权利要求1所述的转换装置,其特征在于,所述控制模块,用于响应于所述耳机接口内配合有所述耳机线插头,对所述音频数据进行数模转换处理,得到模拟音频信号,并将所述模拟音频信号通过所述耳机接口发送给所述耳机线插头,以使所述耳机根据所述模拟音频信号输出音频信息。6. The conversion device according to claim 1 is 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.一种转换音频数据的方法,其特征在于,应用于权利要求1-6中任一项所述的转换装置,所述方法包括:7. A method for converting audio data, characterized in that it is applied to the conversion device according to any one of claims 1 to 6, and the method comprises: 当所述转换装置与终端进行无线通讯连接时,接收所述终端发送的待播放的音频数据;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.根据权利要求7所述的方法,其特征在于,所述耳机接口内配合有耳机的耳机线插头,所述将所述模拟音频信号发送给所述耳机接口,包括:8. The method according to claim 7, wherein the headphone interface is equipped with a headphone line plug of a headphone, and sending the analog audio signal to the headphone interface comprises: 将所述模拟音频信号通过所述耳机接口发送给所述耳机线插头,以使所述耳机根据所述模拟音频信号输出音频信息。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.一种非临时性计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现权利要求7或权利要求8所述的方法的步骤。9. A non-transitory computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the steps of the method of claim 7 or claim 8 are implemented. 10.一种转换装置,其特征在于,包括:10. A conversion device, comprising: 处理器;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.
CN201910693165.4A 2019-07-30 2019-07-30 Conversion device and method for converting audio data Active CN110324749B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910693165.4A CN110324749B (en) 2019-07-30 2019-07-30 Conversion device and method for converting audio data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910693165.4A CN110324749B (en) 2019-07-30 2019-07-30 Conversion device and method for converting audio data

Publications (2)

Publication Number Publication Date
CN110324749A CN110324749A (en) 2019-10-11
CN110324749B true CN110324749B (en) 2024-11-12

Family

ID=68124984

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910693165.4A Active CN110324749B (en) 2019-07-30 2019-07-30 Conversion device and method for converting audio data

Country Status (1)

Country Link
CN (1) CN110324749B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101627613A (en) * 2007-03-07 2010-01-13 索尼株式会社 Relay device
CN104796177A (en) * 2014-01-22 2015-07-22 光宝电子(广州)有限公司 Bluetooth transceiver, line control earphone module and mobile device module
CN106507233A (en) * 2016-12-08 2017-03-15 宇龙计算机通信科技(深圳)有限公司 Blue-tooth device
CN107333195A (en) * 2016-04-29 2017-11-07 北京小米移动软件有限公司 Conversion equipment and ear speaker device
CN206640635U (en) * 2017-04-25 2017-11-14 李开名 A kind of iPhone back splint power supply with Bluetooth audio frequency conversion
CN208079076U (en) * 2018-01-02 2018-11-09 歌尔科技有限公司 A kind of both-end Bluetooth adapter
CN109890018A (en) * 2019-01-29 2019-06-14 深圳傲智天下信息科技有限公司 Blue-tooth transmission method, bluetooth transceiver and the computer readable storage medium of audio
CN209861130U (en) * 2019-07-30 2019-12-27 北京小米移动软件有限公司 Conversion device

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2819655Y (en) * 2005-06-16 2006-09-20 高洪卫 External radio bluetooth earphone for various cell phones
CN2882174Y (en) * 2005-12-07 2007-03-21 邵小兵 Multifunctional multimedia speakers
US7912501B2 (en) * 2007-01-05 2011-03-22 Apple Inc. Audio I/O headset plug and plug detection circuitry
CN203057324U (en) * 2012-12-04 2013-07-10 深圳市同洲电子股份有限公司 Control device, digital television terminal, and system
KR101302616B1 (en) * 2013-02-04 2013-09-02 주식회사 아싸 Wireless microphone transmitter having multi-function
CN104254027A (en) * 2013-08-05 2014-12-31 广东欧珀移动通信有限公司 A method and system for using earphones compatible with round hole interface and USB interface
CN106358125A (en) * 2016-09-09 2017-01-25 北京小米移动软件有限公司 Method and device for audio output
CN207541948U (en) * 2017-12-21 2018-06-26 湖南恒茂高科股份有限公司 Audio player and audio playing apparatus
CN108446094B (en) * 2018-03-27 2021-04-13 北京小米移动软件有限公司 Audio acquisition circuit, terminal equipment, audio acquisition method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101627613A (en) * 2007-03-07 2010-01-13 索尼株式会社 Relay device
CN104796177A (en) * 2014-01-22 2015-07-22 光宝电子(广州)有限公司 Bluetooth transceiver, line control earphone module and mobile device module
CN107333195A (en) * 2016-04-29 2017-11-07 北京小米移动软件有限公司 Conversion equipment and ear speaker device
CN106507233A (en) * 2016-12-08 2017-03-15 宇龙计算机通信科技(深圳)有限公司 Blue-tooth device
CN206640635U (en) * 2017-04-25 2017-11-14 李开名 A kind of iPhone back splint power supply with Bluetooth audio frequency conversion
CN208079076U (en) * 2018-01-02 2018-11-09 歌尔科技有限公司 A kind of both-end Bluetooth adapter
CN109890018A (en) * 2019-01-29 2019-06-14 深圳傲智天下信息科技有限公司 Blue-tooth transmission method, bluetooth transceiver and the computer readable storage medium of audio
CN209861130U (en) * 2019-07-30 2019-12-27 北京小米移动软件有限公司 Conversion device

Also Published As

Publication number Publication date
CN110324749A (en) 2019-10-11

Similar Documents

Publication Publication Date Title
US20190313177A1 (en) Wireless earphone
JP3213242U (en) Composite earphone
CN110381413A (en) Artificial intelligence speaker and its driving method
CN109361977A (en) Wireless headset and charging unit
CN103925583A (en) Wireless speaker system and wireless data transmission method
US20210160618A1 (en) Electronic device, method, and system for converting digital audio signal received in wired or wireless manner into analog audio signal
CN106169233B (en) An intelligent sound and light controller
CN213461165U (en) From online two unification pronunciation intelligent control PD head that charges
CN209861130U (en) Conversion device
CN104217709A (en) Electronic organ with keys freely combinable and method for realizing free combination
CN110324749B (en) Conversion device and method for converting audio data
CN206350151U (en) A kind of acousto-optic combining with teaching voice recording and broadcasting system
CN105847951A (en) Play control method and device in audio and video play system
CN213244341U (en) Audio equipment
CN204103538U (en) A kind of safe and intelligent power supply adaptor
CN104247446B (en) Lighting system, IR remote controller, the operating method of lighting system and record have the recording medium of the program by the microcomputer execution for electronic equipment
WO2017141581A1 (en) Device for detachably coupling portable telephone and headset
US20170126037A1 (en) Multifunctional mobile station
CN207022136U (en) Far field speech recognition equipment
CN206542547U (en) Bluetooth DAB earphone
CN217693687U (en) Smart Speakers and Vehicles
CN216146401U (en) Control circuit for touch control sound box and touch control sound box
CN217825296U (en) Wireless transmission monitoring earphone
CN105872883A (en) Method for controlling headset mode, client and headset
US20230321542A1 (en) E-gaming entertainment system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant