WO2015165345A1 - 一种传输方法、移动终端、多声道耳机及音频播放系统 - Google Patents

一种传输方法、移动终端、多声道耳机及音频播放系统 Download PDF

Info

Publication number
WO2015165345A1
WO2015165345A1 PCT/CN2015/077094 CN2015077094W WO2015165345A1 WO 2015165345 A1 WO2015165345 A1 WO 2015165345A1 CN 2015077094 W CN2015077094 W CN 2015077094W WO 2015165345 A1 WO2015165345 A1 WO 2015165345A1
Authority
WO
WIPO (PCT)
Prior art keywords
earphone
audio
pin
interface
digital signal
Prior art date
Application number
PCT/CN2015/077094
Other languages
English (en)
French (fr)
Inventor
章志强
姜建辉
Original Assignee
华为终端有限公司
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 华为终端有限公司 filed Critical 华为终端有限公司
Priority to US14/904,467 priority Critical patent/US9788096B2/en
Priority to EP15786601.3A priority patent/EP3007464A4/en
Publication of WO2015165345A1 publication Critical patent/WO2015165345A1/zh

Links

Images

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/1041Mechanical or electronic switches, or control elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R5/00Stereophonic arrangements
    • H04R5/04Circuit arrangements, e.g. for selective connection of amplifier inputs/outputs to loudspeakers, for loudspeaker detection, or for adaptation of settings to personal preferences or hearing impairments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2420/00Details of connection covered by H04R, not provided for in its groups
    • H04R2420/05Detection of connection of loudspeakers or headphones to amplifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2420/00Details of connection covered by H04R, not provided for in its groups
    • H04R2420/07Applications of wireless loudspeakers or wireless microphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/12Circuits for transducers, loudspeakers or microphones for distributing signals to two or more loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R5/00Stereophonic arrangements
    • H04R5/033Headphones for stereophonic communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S3/00Systems employing more than two channels, e.g. quadraphonic
    • H04S3/008Systems employing more than two channels, e.g. quadraphonic in which the audio signals are in digital form, i.e. employing more than two discrete digital channels

Definitions

  • the present invention relates to the field of multimedia technologies, and in particular, to a transmission method, a mobile terminal, a multi-channel earphone, and an audio playback system.
  • a general two-channel earphone is generally used to virtualize multi-channel surround sound, and the two-channel audio file is decomposed into two different audio tracks, such as a phase and a frequency band, according to the algorithm coding, and then retracted.
  • DOWN MIX is a two-channel audio file. The whole process is processed by the processor of the mobile terminal, and the back end output is two channels. This can be done using the existing headphone jack. Can be understood as a processed sound.
  • the source file is a two-channel audio file and the output is also two-channel, the multi-channel effect is much lower than that of a true multi-channel audio file.
  • a technical problem to be solved by embodiments of the present invention is to provide a transmission method, a mobile terminal, a multi-channel earphone, and an audio playback system. To solve the problem of not being able to get true multi-channel playback on the headphone side.
  • a first aspect of the embodiments of the present invention provides a transmission method, where the mobile terminal is configured with a headset interface, including:
  • the earphone is a multi-channel earphone, transmitting an audio digital signal to the earphone through the earphone interface;
  • an audio analog signal is transmitted to the earphone through the earphone interface.
  • the method further includes:
  • the transmitting the audio digital signal to the earphone specifically includes:
  • the audio data packet is transmitted to the earphone through the earphone interface.
  • the method further includes: performing Dolby sound processing or digital cinema system sound processing on the audio digital signal;
  • the packaging the audio digital signal into an audio data packet comprises: packaging the audio digital signal subjected to Dolby sound processing or digital cinema system sound processing into an audio data packet.
  • the determining the type of the headset connected to the earphone interface includes:
  • Receiving a user input or earphone type indication information sent by the earphone determining a type of the earphone according to the earphone type indication information.
  • a second aspect of the present invention provides a transmission method for inserting a multi-channel earphone of a headphone jack of a mobile terminal, including:
  • the method further includes: pairing the audio Digital signal for Dolby sound processing or digital cinema system sound processing;
  • the converting the audio digital signal into an audio analog signal comprises: converting the audio digital signal processed by the Dolby sound processing or the digital cinema system sound into an audio analog signal.
  • a third aspect of the present invention provides a mobile terminal, where the mobile terminal includes:
  • the first switching circuit is connected to the earphone interface
  • the processor is configured to decode an audio file to obtain an audio digital signal, determine a type of an earphone connected to the earphone interface, generate a first switching instruction according to the type of the earphone, and transmit the first switching instruction to the a first switching circuit; if the earphone is a multi-channel earphone, the first switching instruction carries indication information for instructing the first switching circuit to transmit an audio digital signal to the earphone interface; if the earphone is not The first switching instruction carries indication information for instructing the first switching circuit to transmit an audio analog signal to the earphone interface;
  • the digital to analog converter for receiving an audio digital signal from the processor and converting the audio digital signal into the audio analog signal
  • the first switching circuit is configured to receive the first switching instruction, and transmit the audio digital signal or the audio analog signal to the earphone interface according to the first switching instruction;
  • the earphone interface configured to transmit the audio digital signal to the earphone, or transmit the audio digital signal to the earphone
  • the audio analog signal is input.
  • the digital to analog converter is coupled to the processor and the first switching circuit.
  • the processor is further configured to package the audio digital signal into an audio data packet, and send the audio data packet directly to the earphone interface through a first switching circuit;
  • the earphone interface is specifically configured to transmit the audio data packet to the earphone.
  • the processor is further configured to perform Dolby sound processing or digital cinema system sound processing on the audio digital signal after the audio digital signal is decoded into the audio data packet after decoding the obtained audio digital signal. .
  • the first switching circuit is configured to transmit the audio digital signal or the audio analog signal to a channel pin of the earphone interface.
  • the mobile terminal further includes a voice processor, a power source, and a Two switching circuits,
  • the voice processor is configured to process sound information received from a microphone pin of the earphone interface
  • the processor is further configured to output a second switching instruction to the second switching circuit according to a type of the earphone connected to the earphone interface; if the earphone is a multi-channel earphone, the second switching instruction indication The second switching circuit connects the power source to the microphone pin of the earphone interface; if the earphone does not Is a multi-channel earphone, the second switching instruction instructing the second switching circuit to connect the microphone pin of the voice processor and the earphone interface;
  • the second switching circuit is connected to the microphone pin of the earphone interface for receiving the second switching instruction, and the microphone pin of the earphone interface is switched according to the second switching instruction to the voice processor or the The power supply is connected.
  • the earphone interface is a wired connection interface.
  • the mobile terminal further includes an earphone identification circuit connected to the processor, configured to detect a ground impedance of the pin of the earphone interface or the earphone when the earphone is inserted into the earphone interface The voltage value of the voltage detection point set on the pin,
  • the processor is further configured to identify a type of the earphone according to the ground impedance or the voltage value.
  • the earphone interface is a wireless connection interface.
  • the processor is further configured to: receive the headset type indication information sent by the headset, and determine the type of the headset according to the headset type indication information.
  • the mobile terminal further includes an input interface, configured to receive the headset type indication information input by the user;
  • the processor is further configured to: obtain the headset type indication information, according to the headset type indication The information determines the type of the headset.
  • the processor After identifying the type of the earphone interface and issuing the first switching instruction, the processor decodes the audio file to obtain an audio digital signal.
  • the earphone interface is a 3.5mm/2.5mm earphone hole, and the earphone hole includes a left channel pin and a right channel pin.
  • the first switching circuit specifically includes:
  • An analog switch the power input pin of the analog switch is connected to the working voltage, the ground pin is grounded, and the switching control pin is connected to the first signal output pin of the processor of the mobile terminal for receiving the output of the processor.
  • a first switching instruction an output end of the first data output pin of the analog switch is connected to a left channel pin of the earphone interface of the mobile terminal, and an output end of the second data output pin is connected to the earphone of the mobile terminal
  • the right channel pin of the interface, the analog switch further includes a first data input pin, a second data input pin, a third data input pin and a fourth data input pin, the first data input pin And the input end of the second data input pin is configured to receive the audio digital signal or the audio data packet, and the input ends of the third data input pin and the fourth data input pin are used for receiving audio
  • the analog signal if an audio digital signal or an audio data packet is required to be output, the input end of the first data output pin and the input end of the second data output pin are respectively connected to the first data input
  • the earphone interface is a 3.5mm/2.5mm earphone hole
  • the second switching circuit specifically includes:
  • a first PMOS transistor and a second PMOS transistor a gate of the first PMOS transistor is connected to a microphone pin of the earphone interface of the mobile terminal, and a source of the first PMOS transistor is connected to the voice processor, a drain of the first PMOS transistor is connected to a second signal output pin of the processor of the mobile terminal, and the second signal output pin is configured to output a level signal to control whether the first PMOS transistor is turned on or off a gate of the second PMOS transistor is connected to a microphone pin of the earphone interface of the mobile terminal, a source of the second PMOS transistor is connected to the power source, and a drain of the second PMOS transistor is connected to the mobile terminal a third signal output pin of the processor of the terminal, the third signal output pin is configured to output a level signal to control the second PMOS transistor to be turned on or off.
  • a fourth aspect of the present invention provides a multi-channel earphone, the multi-channel earphone comprising: a headphone plug, a digital-to-analog converter, and a speaker, wherein the digital-to-analog converter is connected to the speaker,
  • the earphone plug is configured to receive an audio digital signal transmitted by the mobile terminal through the earphone interface
  • the digital-to-analog converter is configured to convert the audio digital signal into an audio analog signal
  • the speaker is configured to play the audio analog signal.
  • the third switching circuit is connected to the earphone plug
  • the earphone plug is further configured to receive an audio analog signal sent by the mobile terminal through the earphone interface.
  • the third switching circuit is configured to connect the earphone plug and the speaker, send the audio analog signal to the speaker, or connect the earphone plug and the digital-to-analog converter, An audio digital signal is sent to the digital to analog converter.
  • the multi-channel earphone further includes: a processor connected between the third switching circuit and the digital-to-analog converter,
  • the earphone plug is specifically configured to receive an audio data packet with the audio digital signal sent by the mobile terminal,
  • the processor is configured to unpack the audio data packet to obtain the audio digital signal, and send the audio digital signal to the digital to analog converter.
  • the processor is further configured to perform the Dolby sound processing on the audio digital signal or digitize the cinema system sound processing before transmitting the audio digital signal to the digital to analog converter; and process the processed audio digital signal Send to the digital to analog converter.
  • the multi-channel earphone further includes: a fourth switching circuit, a microphone, a power supply circuit,
  • the fourth switching circuit is connected to the earphone plug for connecting the microphone pin of the earphone plug with the microphone or the power supply circuit;
  • the microphone is configured to receive sound information
  • the power supply circuit is configured to transmit power to the multi-channel earphone.
  • the multi-channel earphone further includes: a power supply circuit, a power source,
  • the power supply circuit is connected to the power source for transmitting power to the multi-channel earphone;
  • the power source is used to provide electrical energy.
  • a fifth aspect of the present invention provides an audio playback system, including:
  • a first processor a first digital to analog converter, a first switching circuit and a headphone interface
  • the first switching circuit is connected to the earphone interface
  • the first processor is configured to decode an audio file to obtain an audio digital signal, determine a type of a headset connected to the earphone interface, generate a first switching instruction according to the type of the earphone, and transmit the first switching instruction to The first switching circuit; if the earphone is a multi-channel earphone, the first switching instruction carries indication information for instructing the first switching circuit to transmit an audio digital signal to the earphone interface; Not the multi-channel earphone, the first switching instruction carries indication information for instructing the first switching circuit to transmit an audio analog signal to the earphone interface;
  • the first digital-to-analog converter is configured to receive an audio digital signal from the first processor and convert the audio digital signal into a first audio analog signal;
  • the first switching circuit is configured to receive the first switching instruction, and transmit the audio digital signal or the first audio analog signal to the earphone interface according to the first switching instruction;
  • the earphone interface is configured to transmit the audio digital signal to the earphone or transmit the first audio analog signal to the earphone.
  • the multi-channel earphone includes: a headphone plug, a second digital-to-analog converter, a speaker, and the second digital-to-analog converter is connected to the speaker,
  • the earphone plug is configured to receive an audio digital signal transmitted by the mobile terminal through the earphone interface
  • the second digital-to-analog converter is configured to convert the audio digital signal into a second audio analog signal
  • the speaker is configured to play the second audio analog signal.
  • the first digital-to-analog converter is connected to the first processor and the first switching circuit;
  • the multi-channel earphone further includes: a third switching circuit, the third switching circuit is connected to the earphone plug,
  • the earphone plug is further configured to receive an audio analog signal sent by the mobile terminal through the earphone interface.
  • the third switching circuit is configured to connect the earphone plug and the speaker, send the first audio analog signal to the speaker, or connect the earphone plug and the second digital-to-analog converter, The audio digital signal is sent to the second digital to analog converter.
  • the first processor is further configured to: package the audio digital signal into an audio data packet; and send the audio data packet directly to the earphone interface through a first switching circuit;
  • the earphone interface is specifically configured to transmit the audio data packet to the multi-channel earphone;
  • the multi-channel earphone further includes:
  • the second processor being connected between the third switching circuit and the second digital-to-analog converter
  • the earphone plug is specifically configured to receive an audio data packet with the audio digital signal sent by the mobile terminal,
  • the second processor is configured to unpack the audio data packet to obtain the audio digital signal, and send the audio digital signal to the second digital to analog converter.
  • the first processor is further configured to perform a Dolby sound processing or a digital cinema system on the audio digital signal before the audio digital signal is decoded into the audio data packet after decoding the obtained audio digital signal. Sound processing; or
  • the second processor is further configured to perform the Dolby sound processing on the audio digital signal or digitize the cinema system sound processing before transmitting the audio digital signal to the second digital to analog converter;
  • the audio digital signal is sent to the second digital to analog converter.
  • the first switching circuit is configured to transmit the audio digital signal or the audio analog signal to a channel pin of the earphone interface.
  • the mobile terminal further includes:
  • the voice processor is configured to process sound information received from a microphone pin of the earphone interface
  • the first processor is further configured to output a second switching instruction to the second switching circuit according to a type of the earphone connected to the earphone interface; if the earphone is a multi-channel earphone, the second switching instruction Instructing the second switching circuit to communicate the microphone pin of the power source and the earphone interface; if the earphone is not a multi-channel earphone, the second switching instruction instructs the second switching circuit to communicate with the voice processor a microphone pin interface with the earphone;
  • the second switching circuit is connected to the microphone pin of the earphone interface, and is configured to receive the second switching instruction, and switch the microphone pin of the earphone interface to the voice position according to the second switching instruction.
  • the processor or the power source is connected;
  • the multi-channel earphone further includes:
  • the fourth switching circuit is connected to the earphone interface for connecting the microphone pin of the earphone interface with the microphone or the power supply circuit;
  • the microphone is configured to receive sound information
  • the power supply circuit is configured to transmit power to the multi-channel earphone.
  • the multi-channel earphone further includes:
  • Power supply circuit power supply circuit
  • the power supply circuit is connected to the power source for transmitting power to the multi-channel earphone;
  • the power source is used to provide electrical energy.
  • the earphone interface is a wired connection interface.
  • the mobile terminal further includes an earphone identification circuit, the earphone identification circuit is connected to the first processor, and configured to detect a ground impedance of the pin of the earphone interface or the earphone when the earphone is inserted into the earphone interface The voltage value of the voltage detection point set on the pin,
  • the first processor is further configured to:
  • the type of earphone inserted into the earphone interface is identified based on the ground impedance or the voltage value.
  • the earphone interface is a wireless connection interface.
  • the first processor is further configured to:
  • the mobile terminal further includes an input interface, configured to receive the headset type indication information input by the user;
  • the first processor is further configured to:
  • the first processor After identifying the type of the earphone interface and issuing the first switching instruction, the first processor decodes the audio file to obtain an audio digital signal.
  • the earphone interface is a 3.5mm/2.5mm earphone hole, and the earphone hole includes a left channel pin and a right channel pin.
  • the first switching circuit specifically includes:
  • An analog switch the power input pin of the analog switch is connected to the working voltage, the ground pin is grounded, and the switching control pin is connected to the first signal output pin of the first processor of the mobile terminal, for receiving the a first switching instruction output by the first processor; an output end of the first data output pin of the analog switch is connected to a left channel pin of the earphone interface of the mobile terminal, and an output end of the second data output pin is connected a right channel pin of the earphone interface of the mobile terminal, the analog switch further includes a first data input pin, a second data input pin, a third data input pin, and a fourth data input pin, An input end of the first data input pin and an input end of the second data input pin are configured to receive the audio digital signal or the audio data packet, the third data input pin and the fourth data input pin The input end is configured to receive an audio analog signal, and if an audio digital signal or an audio data packet is required to be output, the input end of the first data output pin and the input end of the second data output pin are respectively connected to the first data
  • the earphone interface is a 3.5mm/2.5mm earphone hole.
  • the second switching circuit specifically includes:
  • a gate of the first PMOS transistor is connected to a microphone pin of the earphone interface of the mobile terminal, and a source of the first PMOS transistor is connected to the voice processor, a drain of the first PMOS transistor is connected to a second signal output pin of the first processor of the mobile terminal, and the second signal output pin is configured to output a level signal to control the first PMOS transistor to be turned on or Turning off;
  • a gate of the second PMOS transistor is connected to a microphone pin of the earphone interface of the mobile terminal, a source of the second PMOS transistor is connected to the power source, and a drain of the second PMOS transistor is connected a third signal output pin of the first processor of the mobile terminal, the third signal output pin is used to output a level signal No. to control the second PMOS transistor to be turned on or off.
  • the earphone side can be realized. Multi-channel audio for multi-channel playback.
  • FIG. 1 is a schematic flow chart of a first embodiment of a transmission method of the present invention
  • FIG. 2 is a schematic flow chart of a second embodiment of a transmission method of the present invention.
  • FIG. 3 is a schematic flow chart of a third embodiment of a transmission method of the present invention.
  • FIG. 4 is a schematic flow chart of a fourth embodiment of a transmission method of the present invention.
  • FIG. 5 is a schematic diagram showing the composition of a first embodiment of a mobile terminal according to the present invention.
  • FIG. 6 is a schematic diagram of the composition of a second embodiment of the mobile terminal of the present invention.
  • Figure 7 is a schematic diagram showing the composition of a first embodiment of the multi-channel earphone of the present invention.
  • Figure 8 is a schematic diagram showing the composition of a second embodiment of the multi-channel earphone of the present invention.
  • Figure 9 is a schematic diagram showing the composition of a third embodiment of the multi-channel earphone of the present invention.
  • FIG. 10 is a schematic diagram of the composition of an audio playback system according to an embodiment of the present invention.
  • FIG. 11 is a circuit diagram of a headphone interface of a mobile terminal according to an embodiment of the present invention.
  • FIG. 12 is a circuit diagram of a first switching circuit of the mobile terminal of the present invention.
  • Figure 13 is a circuit diagram of a second switching circuit of the mobile terminal of the present invention.
  • FIG. 1 is a schematic flowchart of a first embodiment of a transmission method according to the present invention.
  • the method is used to set a mobile terminal with a headset interface, including the following steps:
  • the types of headphones can be classified into multi-channel headphones, two-channel headphones, and mono headphones. Since the data or signal transmission method and path will be different when the user uses different types of headphones, it is necessary to determine the type of the earphone when the earphone is inserted into the earphone interface.
  • determining the type of the headset may be as follows:
  • the headphone pin can be a left channel pin, a right channel pin or a microphone pin;
  • the detected earphone pin may be a left channel pin, a right channel pin or a microphone pin. If the headset type indication information is received by the user input, the headset type information may be input by the user first, and then the headset is inserted into the mobile terminal. The user may first insert the headset, and then the mobile terminal prompts the user to input. Headphone type indication information is implemented.
  • the earphone is a multi-channel earphone, transmit an audio digital signal to the earphone through the earphone interface.
  • the audio file to be processed may be a 4.1 channel audio file, a 5.1 channel audio file, a 6.1 channel audio file, a 7.1 channel audio file, or an audio file of more channels that may appear later, which is not limited herein.
  • the earphone interface of an existing mobile terminal such as a mobile phone or a tablet computer has only four pins, that is, a left channel pin, a right channel pin, a ground pin, and a microphone pin, and the ground pin is generally used for grounding instead of
  • the conventional multi-channel audio transmission mode that is, one audio signal is transmitted per pin
  • the four pins of the headphone interface cannot directly transmit the multi-channel audio digital signals decoded by the multi-channel audio file. For example, after decoding 5.1-channel audio files, there are 6 independent audio signals, and 4 pins cannot meet the transmission requirements.
  • a universal serial bus can be used when transmitting audio packets to the headphone jack (Universal Serial Bus, USB for short) or Sony/Philips Digital Interface Format (SPDIF) is used.
  • USB Universal Serial Bus
  • SPDIF Sony/Philips Digital Interface Format
  • other available interfaces can also be used, and the present invention is not limited thereto.
  • the 5.1 channel audio file when using a USB to transmit a 5.1 channel audio file, the 5.1 channel audio file can be first decoded into 6 audio digital signals, and then the 6 audio digital signals can be packaged to obtain an audio data packet.
  • the number of packages can be For one or more, and then use USB for transmission, according to the USB transmission protocol, two data transmission pins, one ground pin and one power supply pin need to be used at the same time, so it is necessary to simultaneously occupy 4 of the earphone interfaces. Pins, of course, when using other interfaces for transmission, the number of occupied pins may also be different. It is only necessary to ensure that the number of occupied pins is less than or equal to four, and then the audio data packet is transmitted from the earphone interface to the earphone. If the number of packages is greater than one, the transmission path is kept unchanged for a plurality of consecutive transmissions, so that the purpose of transmitting and decoding the multi-channel audio file to the earphone side is realized.
  • the decoded audio digital signal can be directly transmitted to the earphone end without packaging.
  • the earphone is not a multi-channel earphone, transmit an audio analog signal to the earphone through the earphone interface.
  • the earphone inserted into the earphone interface is not a multi-channel earphone, such as a mono earphone or a two-channel earphone
  • the earphone interface may be a 3.5 mm headphone jack, a 2.5 mm headphone jack or a USB headphone jack. It can even be a Bluetooth headset or a WiFi headset that is connected via wireless. At the same time, the earphone plug is set to match the corresponding interface on the mobile terminal.
  • the headphone jack is a 2.5 mm headphone jack
  • its internal circuitry is basically the same as the usual 3.5 mm headphone jack, so you can configure the same switching circuit as the 3.5 mm headphone jack in the mobile terminal or directly switch the circuit with a 2.5 mm headphone.
  • the circuit of the hole is integrated, and the size of the earphone plug is set to 2.5 mm; the processing of the USB port is similar, and will not be described here.
  • the audio data packet can also be sent to the wireless transmission module inside the mobile terminal, and then the wireless transmission module can send the audio data packet to the wireless receiving module of the Bluetooth headset.
  • the process of unpacking and playing is completed by the Bluetooth headset.
  • different transmission paths can be used according to the type of the earphone to transmit different types of signals, and the audio digital signals are transmitted for the multi-channel earphones, and the transmission is not for the multi-channel earphones.
  • Audio analog signals so that the mobile terminal can be compatible with different types of headphones, and with different types of headphones to transmit different types of audio files.
  • the normal playback of multi-channel audio files can be realized, so that the multi-channel headphone end outputs multi-channel surround sound.
  • FIG. 2 is a schematic flowchart of a second embodiment of a transmission method according to the present invention.
  • the method includes the following steps:
  • the types of headphones can be classified into multi-channel headphones, two-channel headphones, and mono headphones. Since the data or signal transmission method and path will be different when the user uses different types of headphones, it is necessary to determine the type of the earphone when the earphone is inserted into the earphone interface.
  • determining the type of the headset may be as follows:
  • the headphone pin can be a left channel pin, a right channel pin or a microphone pin;
  • the detected earphone pin may be a left channel pin, a right channel pin or a microphone pin. If the headset type indication information is received by the user input, the headset type information may be input by the user first, and then the headset is inserted into the mobile terminal. The user may first insert the headset, and then the mobile terminal prompts the user to input. Headphone type indication information is implemented.
  • the earphone is a multi-channel earphone, decode the audio file to be processed to obtain an audio digital signal.
  • the audio file may be a file stored on a mobile terminal, or may be an online file obtained from a network or a file transmitted by another device to the mobile terminal.
  • n 1 channel files, where n is greater than or equal to 3
  • decoding will get (n+1) audio digital signals
  • 6 audio digital signals will be obtained
  • decoding 7.1-channel audio files 8 audio digital signals will be obtained.
  • the audio digital signal when packaging, may be packaged into one audio data packet for one transmission, or the audio digital signal may be packaged into one or more audio data packets according to the transmission rate or the transmission bandwidth requirement.
  • the corresponding number of transmissions can be.
  • the audio digital signal before the audio digital signal is packaged into an audio data packet, the audio digital signal may be subjected to Dolby sound processing, and then the Dolby sound processed audio digital signal is packaged into an audio data packet; or
  • the audio digital signal is packaged into an audio data packet
  • the audio digital signal is subjected to digital cinema system sound processing; and then the digital audio and video system audio processed audio digital signal is packaged into an audio data packet.
  • the earphone interface includes a left channel pin, a right channel pin, a ground pin or a microphone pin;
  • Transmitting the audio data packet to the earphone through the earphone interface including:
  • the audio data packet is transmitted to the earphone through at least one of a left channel pin or a right channel pin of the headphone jack.
  • the audio data packet can also be transmitted with a ground pin or a microphone pin.
  • USB when using a USB to transmit a 5.1-channel audio file, you can first decode the 5.1-channel audio file into 6-channel audio digital signals, then pack the 6-channel audio digital signals into an audio data packet, and then use USB to transmit, according to USB.
  • the transmission protocol needs to use the four pins of the earphone interface at the same time.
  • the ground pin of the earphone interface can be used as the ground pin of the USB
  • the microphone pin of the earphone interface is used as the power supply pin of the USB.
  • the left and right channel pins of the headphone jack are respectively used as two data transmission pins of the USB.
  • the number of occupied pins may be different, and the functions may be different. It is only necessary to ensure that the number of occupied pins is less than or equal to four.
  • the method may further include:
  • FIG. 3 it is a schematic flowchart of a third embodiment of a transmission method according to the present invention.
  • the method includes the following steps:
  • the earphone is not a multi-channel earphone, decode the audio file to be processed to obtain an audio digital signal corresponding to the number of channels.
  • the audio file to be processed here is a mono audio file or a two-channel audio file.
  • a mono audio file can be decoded to obtain 1 audio digital signal
  • a 2.0 channel audio file can be decoded to obtain 2 audio digital signals
  • a 2.1 channel audio file can be decoded to obtain 3 audio digital signals, and then the decoded audio is obtained.
  • the corresponding digital-to-analog conversion of the digital signal can be transmitted through the corresponding one of the four pins of the existing headphone interface.
  • the digital-analog converted audio analog signal can be split or combined so that each channel of the earphone has sound.
  • the audio file is a mono audio file
  • the earphone is The two-channel earphone divides the analog audio signal of the analog-to-digital conversion into two audio analog signals and sends them to the left and right channels of the earphone; if the audio file is a 2.0-channel audio file, the earphone is a mono earphone.
  • the two analog audio signals obtained by digital-to-analog conversion can be combined and passed into the mono earphone. It can also be split or merged.
  • the mono audio analog signal can be transmitted to the left or right channel of the two-channel earphone; After the file is decoded and digital-to-analog converted to obtain 2 channels of analog signals, one of the audio analog signals can be selected for transmission to the mono headset.
  • FIG. 4 it is a schematic flowchart of a fourth embodiment of a transmission method according to the present invention.
  • the method includes the following steps:
  • S401 Receive an audio digital signal transmitted by the mobile terminal through the earphone interface.
  • communication between the headphone plug of the multi-channel earphone and the function module responsible for unpacking can be performed using USB or SPDIF.
  • the digital audio signal may also be subjected to digital cinema system sound processing, and then the audio digital signal processed by the digital cinema system sound is converted into an audio analog signal.
  • the method may further include the following steps:
  • the audio data packet is unpacked to obtain the audio digital signal. Then the number of audios that are unpacked
  • the word signal can be digital-to-analog converted.
  • multiple audio analog signals can be split or combined to obtain an audio analog signal corresponding to the number of channels of the earphone for playback.
  • the audio file is a 5.1-channel audio file and the earphone is a 4-channel earphone
  • the multi-channel earphone can unpack the 5.1-channel audio data packet and convert it into 6-channel audio analog signal, and simulate 6-channel audio.
  • the four audio analog signals in the signal are combined into two audio analog signals, and the remaining two audio analog signals are respectively played through four channels; or the audio file is a 5.1 channel audio file, and the earphone is 8 sounds.
  • the headphone, the multi-channel earphone can unpack the 5.1 channel audio data packet and convert it into 6 audio analog signals, and divide the 2 channel audio analog signals in the 6 channel audio analog signals into 4 channel audio analog signals. , and the remaining 4 channels of audio analog signals are played through 8 channels.
  • the mobile terminal may output a mono or two-channel audio analog signal to the multi-channel earphone according to a normal play mode.
  • the multi-channel earphone can receive a mono or two-channel audio analog signal transmitted by the mobile terminal through the earphone interface; directly playing the mono or two-channel audio analog signal.
  • FIG. 5 is a schematic diagram of a composition of a mobile terminal according to an embodiment of the present invention.
  • the mobile terminal is provided with a headset hole, and the mobile terminal includes:
  • the processor 110 the digital to analog converter 120, the first switching circuit 130 and the headphone interface 140,
  • the processor 110 is connected to the first switching circuit 130, the digital-to-analog converter 120 is connected to the first switching circuit 130, the first switching circuit 130 is connected to the earphone interface 140;
  • the processor 110 is configured to decode an audio file to obtain an audio digital signal, determine a type of a headset connected to the earphone interface, generate a first switching instruction according to the type of the earphone, and a switching instruction is transmitted to the first switching circuit 130;
  • the first switching instruction carries indication information for instructing the first switching circuit 130 to transmit an audio digital signal to the earphone interface 140;
  • the first switching instruction carries indication information for instructing the first switching circuit 130 to transmit an audio analog signal to the earphone interface 140;
  • the digital-to-analog converter 120 is configured to receive an audio digital signal from the processor 110 and convert the audio digital signal into the audio analog signal;
  • the first switching circuit 130 is configured to receive the first switching instruction, and transmit the audio digital signal or the audio analog signal to the earphone interface 140 according to the first switching instruction;
  • the earphone interface 140 is configured to transmit the audio digital signal to the earphone or transmit the audio analog signal to the earphone.
  • the digital to analog converter 120 is connected to the processor 110 and the first switching circuit 130.
  • the digital-to-analog converter 120 is electrically connected to the processor 110 and electrically connected to the first switching circuit 130.
  • the first switching circuit 130 is further electrically connected to the earphone interface, when the connection is When the earphone of the earphone interface 140 is a multi-channel earphone, an audio digital signal needs to be transmitted at this time, the processor sends a first switching instruction to the first switching circuit 130, and passes the decoded audio digital signal through the first A switching circuit 130 is sent to the earphone interface 140, and when the earphone connected to the earphone interface 140 is not a multi-channel earphone, the processor sends a first switching instruction to the first switching circuit 130, and decodes The obtained audio digital signal is sent to the digital-to-analog converter 120 for digital-to-analog conversion to obtain an audio analog signal, and the first switching circuit 130 receives the audio analog signal from the digital-to-analog converter 120 and transmits the audio analog signal to the The headphone interface 140 is described.
  • the first switching circuit 130 may include a control end, and the processor 110 may transmit a first switching instruction to the control end of the first switching circuit 130 through an independent command transmission line to control the indication.
  • An operating state of the switching circuit 130 of course, the command transmission line can also be multiplexed with the audio digital signal transmission line between the processor 110 and the first switching circuit 130 to ensure that the processor 110 is
  • the control of the first switching circuit 130 is not limited herein.
  • the processor 110 is further configured to: package the audio digital signal into an audio data packet; send the audio data packet directly to the earphone interface 140 through the first switching circuit 130;
  • the headset interface 140 is specifically configured to transmit the audio data packet to the headset.
  • the audio file to be processed may be a 4.1 channel audio file, a 5.1 channel audio file, a 6.1 channel audio file, a 7.1 channel audio file, or an audio file of more channels that may appear later, which is not limited herein.
  • the earphone interface of an existing mobile terminal such as a mobile phone or a tablet computer has only four pins, that is, a left channel pin, a right channel pin, a ground pin, and a microphone pin, and the ground pin is generally used for grounding instead of
  • the conventional multi-channel audio transmission mode that is, one audio signal is transmitted per pin
  • the four pins of the headphone interface cannot directly transmit the multi-channel audio digital signals decoded by the multi-channel audio file. For example, after decoding 5.1-channel audio files, there are 6 independent audio signals, and 4 pins cannot meet the transmission requirements.
  • the mobile terminal it is possible to additionally configure a switching circuit in the mobile terminal or directly modify the headphone interface of the mobile terminal, and switch the circuit with The circuit integration setting of the earphone interface, and then switching the audio transmission path to the path of the corresponding data interface and the earphone interface of the switching circuit, and transmitting
  • the signal is an audio digital signal, and for multiple audio digital signals, it can be packaged and transmitted.
  • USB universal serial bus
  • SPDIF Sony/Philips Digital Interface Format
  • the 5.1 channel audio file when using a USB to transmit a 5.1 channel audio file, the 5.1 channel audio file can be first decoded into 6 audio digital signals, and then the 6 audio digital signals can be packaged to obtain an audio data packet.
  • the number of packages can be For one or more, and then use USB for transmission, according to the USB transmission protocol, two data transmission pins, one ground pin and one power supply pin need to be used at the same time, so it is necessary to simultaneously occupy 4 of the earphone interfaces. Pins, of course, when using other interfaces for transmission, the number of occupied pins may also be different. It is only necessary to ensure that the number of occupied pins is less than or equal to four, and then the audio data packet is transmitted from the earphone interface to the earphone. If the number of packages is greater than one, the transmission path is kept unchanged for a plurality of consecutive transmissions, so that the purpose of transmitting and decoding the multi-channel audio file to the earphone side is realized.
  • the processor 110 is further configured to perform Dolby sound processing on the audio digital signal after the audio digital signal is decoded into the audio data packet after decoding the obtained audio digital signal. Digital cinema system sound processing.
  • the first switching circuit 130 is configured to transmit the audio digital signal or the audio analog signal to a channel pin of the earphone interface, and of course, may also be an audio data packet packed with an audio digital signal. .
  • the earphone interface 140 may include a left channel pin, a right channel pin, a ground pin or a microphone pin;
  • the earphone interface 140 is configured to transmit the audio digital signal or the audio analog signal or the audio digital signal to the earphone by using at least one of the left channel pin or the right channel pin The resulting audio packet is packaged.
  • the decoded multi-channel audio digital signal when playing a 5.1 channel audio file, may be packaged and transmitted to the earphone through the left channel pin and the right channel pin of the headphone interface 140; playing 2.0 channel audio
  • the decoded two audio digital signals can be converted into an audio analog signal, and then transmitted to the earphone through the left channel pin and the right channel pin of the headphone interface 140; playing the mono audio file
  • the decoded audio digital signal can be converted into an audio analog signal and then transmitted to the earphone through the left channel pin or the right channel pin of the earphone interface 140.
  • the microphone pin can also be used to transmit an audio digital signal or an audio analog signal or an audio data packet. The process is similar and will not be described here.
  • the mobile terminal further includes a voice processor 150, a power source 160, and a second switching circuit 170.
  • the voice processor 150 is configured to process sound information received from a microphone pin of the earphone interface
  • the processor 110 is further configured to output a second switching instruction to the second switching circuit 170 according to the type of the earphone connected to the earphone interface 140;
  • the second switching instruction instructs the second switching circuit 170 to communicate the power source and the microphone pin of the earphone interface 140;
  • the second switching instruction instructs the second switching circuit 170 to connect the voice processor 150 and the microphone pin of the earphone interface 140;
  • the second switching circuit 170 is connected to the microphone pin of the earphone interface 140 for receiving
  • the second switching instruction is configured to switch the microphone pin of the earphone interface 140 to the voice processor 150 or the power source 160 according to the second switching instruction.
  • the first switching circuit 130 and the second switching circuit 170 can be combined into one logical interface circuit, and the logical interface circuit and the processor 110 can communicate through a universal serial bus or through a Sony/Phillips digital audio interface. That is, the logical interface circuit can include a line interface of a USB or SPDIF.
  • the processor 110 can determine the type of headset connected to the headset interface 140 in a different manner.
  • the headphone pin can be a left channel pin, a right channel pin or a microphone pin;
  • the detected earphone pin may be a left channel pin, a right channel pin or a microphone pin. If the headset type indication information is received by the user input, the headset type information may be input by the user first, and then the headset is inserted into the mobile terminal. The user may first insert the headset, and then the mobile terminal prompts the user to input. Headphone type indication information is implemented.
  • the earphone interface 140 is a wired connection interface.
  • the mobile terminal further includes:
  • the earphone identification circuit is connected to the processor 110 and the earphone interface 140, for detecting the ground impedance of the pin of the earphone interface 140 when the earphone is inserted into the earphone interface 140 or The voltage value of the voltage detection point set on the headphone pin,
  • the processor 110 is further configured to: identify the type of the earphone according to the ground impedance or the voltage value.
  • the earphone interface 140 is a wireless connection interface.
  • the processor 110 is further configured to:
  • the mobile terminal further includes:
  • An input interface configured to receive a headset type indication information input by the user
  • the processor 110 is further configured to:
  • the processor 110 after identifying the type of the earphone interface and issuing the first switching instruction, decodes the audio file to obtain an audio digital signal.
  • the earphone interface is a 3.5mm/2.5mm earphone hole, and has a left and right channel pin, and a ground pin and a microphone pin.
  • FIG. 12 is the first of the mobile terminal of the present invention.
  • the circuit diagram of the switching circuit, the first switching circuit 130 specifically includes:
  • Analog switch the power input pin of the analog switch is connected to the working voltage, the ground pin is grounded, and cut And a control signal pin connected to the first signal output pin of the processor of the mobile terminal, configured to receive a first switching instruction output by the processor; and an output terminal of the first data output pin of the analog switch
  • the left channel pin of the earphone interface of the mobile terminal, the output end of the second data output pin is connected to the right channel pin of the earphone interface of the mobile terminal
  • the analog switch further includes a first data input pin, a second data input pin, a third data input pin and a fourth data input pin, wherein the input end of the first data input pin and the input end of the second data input pin are used to receive the audio digital signal Or the audio data packet, the input end of the third data input pin and the fourth data input pin are used for receiving an audio analog signal, and if the audio digital signal or the audio data packet is required to be output, the first data The input end of the output pin and the input end of the second data output pin are respectively connected to the
  • the earphone interface is a 3.5mm/2.5mm earphone hole.
  • FIG. 13 is a circuit diagram of a second switching circuit of the mobile terminal according to the present invention.
  • the second switching circuit specifically includes:
  • a first PMOS transistor and a second PMOS transistor a gate of the first PMOS transistor is connected to a microphone pin of the earphone interface of the mobile terminal, and a source of the first PMOS transistor is connected to the voice processor, a drain of the first PMOS transistor is connected to a second signal output pin of the processor of the mobile terminal, and the second signal output pin is configured to output a level signal to control whether the first PMOS transistor is turned on or off a gate of the second PMOS transistor is connected to a microphone pin of the earphone interface of the mobile terminal, a source of the second PMOS transistor is connected to the power source, and a drain of the second PMOS transistor is connected to the mobile terminal a third signal output pin of the processor of the terminal, the third signal output pin is configured to output a level signal to control the second PMOS transistor to be turned on or off.
  • the processor of the above mobile terminal may be functionally divided into a decoding module, an identification module, and a control module, and may further include a sound processing module and a packaging module, and the decoding module is configured to decode the audio file to obtain an audio digital signal.
  • the identification module is configured to identify a type of the earphone connected to the earphone interface
  • the control module is configured to generate a first switching instruction according to the type of the earphone, and transmit a first switching instruction to the first switching circuit to control the The working state of the first switching circuit, if the earphone is a multi-channel earphone, the first switching instruction carries indication information for instructing the first switching circuit to transmit an audio digital signal to the earphone interface;
  • the earphone is not a multi-channel earphone, the first switching instruction carries indication information for instructing the first switching circuit to transmit an audio analog signal to the earphone interface; and the sound effect processor is configured to decode the obtained audio After the digital signal, before the audio digital signal is packed into the audio data packet, the audio digital No. Dolby Digital Theater Sound processing systems or audio processing; packing means for packing the audio digital signal.
  • the decoding module, the identification module control module, and the sound processing module may be set together or independently.
  • the digital-to-analog converter may also be integrated with the processor or set separately.
  • FIG. 7 is a schematic diagram of a composition of a first embodiment of a multi-channel earphone according to the present invention.
  • the multi-channel earphone includes:
  • a headphone plug 210 a digital-to-analog converter 220, a speaker 230, and the digital-to-analog converter 220 is connected to the speaker 230,
  • the earphone plug 210 is configured to receive an audio digital signal transmitted by the mobile terminal through the earphone interface;
  • the digital-to-analog converter 220 is configured to convert the audio digital signal into an audio analog signal
  • the speaker 230 is configured to play the audio analog signal.
  • the multi-channel earphone further includes:
  • the third switching circuit 240 is connected to the earphone plug 210,
  • the earphone plug 210 is also used to:
  • the third switching circuit 240 is configured to connect the earphone plug 210 and the speaker 230, send the audio analog signal to the speaker 230, or connect the earphone plug 210 and the digital-to-analog converter 220. Transmitting the audio digital signal to the digital to analog converter 220.
  • the third switching circuit 240 can receive an indication of the mobile terminal to perform switching of an operating state (ie, a transmission data type).
  • the first switching instruction is sent to control the first switching circuit
  • the third switching circuit is sent for a certain time simultaneously or after the first switching instruction is issued.
  • the command to the third switching circuit 240 to control the working state of the third switching circuit 240; of course, the third switching circuit 240 may also determine the type of data received by the earphone plug 210, the data type. It can be an audio digital signal, an audio analog signal, or an audio data packet.
  • a physical switch may be disposed on the multi-channel earphone to switch the working state of the third switching circuit 240, which is not limited herein.
  • the multi-channel earphone may further include:
  • processor 250 is connected between the third switching circuit 240 and the digital to analog converter 220,
  • the earphone plug 210 is specifically configured to receive the audio digital signal sent by the mobile terminal. Audio packet,
  • the processor 250 is configured to unpack the audio data packet to obtain the audio digital signal, and send the audio digital signal to the digital to analog converter 220.
  • the processor 250 is further configured to perform the Dolby sound processing on the audio digital signal or digitize the cinema system sound processing before transmitting the audio digital signal to the digital to analog converter 220;
  • the digital signal is sent to digital to analog converter 220.
  • the multi-channel earphone further includes:
  • Fourth switching circuit 260 microphone 270, power supply circuit 280,
  • the fourth switching circuit 260 is connected to the earphone interface for connecting the microphone pin of the earphone interface with the microphone 270 or the power supply circuit 280;
  • the microphone 270 is configured to receive sound information
  • the power supply circuit 280 is configured to transmit power to the multi-channel earphone.
  • the multi-channel earphone further includes:
  • Power supply circuit power supply circuit
  • the power supply circuit is connected to the power source for transmitting power to the multi-channel earphone; specifically, it may be a power supply line; or a circuit composed of electrical components such as resistors, which can realize voltage division or boosting.
  • the power source is used to provide electrical energy.
  • the multi-channel earphone may include a power management module connected to the power supply circuit for receiving power of the power source, and supplying power for a power component of the multi-channel earphone, such as a speaker, etc., the multi-channel earphone also
  • the built-in rechargeable battery can be used for power supply, and the power management module receives power from the power supply circuit.
  • the charging and discharging of the rechargeable battery can be managed; the multi-channel earphone can also be powered by an external power source such as a power source in the mobile terminal, and the power management module can be connected to the power source in the mobile terminal through the power supply circuit.
  • the third switching circuit and the fourth switching circuit may be combined into one logical interface circuit, and the logical interface circuit and the processor may pass through a universal serial bus or through a Sony/Phillips digital audio interface. Communication.
  • the third switching circuit 240 may directly connect the earphone plug 210 and the speaker 230 of the multi-channel earphone by default for transmitting an audio analog signal;
  • the third switching circuit 240 switches the transmission line between the earphone plug 210 and the speaker 230 according to the instruction of the mobile terminal or according to its own judgment so that the processor and the digital-to-analog converter process the audio digital signal or the audio data. package.
  • the earphone plug 210 is configured to receive an audio analog signal or an audio digital signal or an audio data packet that is transmitted by the mobile terminal through the earphone interface;
  • the speaker 230 is used to play an audio analog signal.
  • the audio data packet received by the earphone plug 210 is transmitted to the processor 250 and the digital-to-analog converter 250 for processing, and then sent to the third switching circuit.
  • the speaker 230 is played; and when the mobile terminal plays a mono or two-channel audio file, the mono or two-channel audio analog signal received by the earphone plug 210 is directly transmitted to the speaker 230 for playing. This enables multi-channel headphones to be compatible with mobile terminals for playing mono or two-channel audio files.
  • the processor of the above earphone may be divided into an unpacking module, and may further include a sound processing module, and the unpacking module and the sound processing module may be set in hardware, It can exist independently.
  • the unpacking module can exist for a single Micro Control Unit (MCU) for unpacking;
  • the audio processing module is a separate digital signal processor (DSP).
  • DSP digital signal processor
  • multi-channel sound processing such as Dolby sound; digital-to-analog converters can also be integrated with the processor or set separately.
  • FIG. 10 is a schematic diagram of a composition of an audio playing system according to an embodiment of the present invention.
  • the system includes:
  • a first processor 110 a first digital to analog converter 120, a first switching circuit 130, and a headphone interface 140,
  • the first switching circuit 130 is connected to the earphone interface 140;
  • the first processor 110 is configured to decode an audio file to obtain an audio digital signal, determine a type of a headset connected to the earphone interface 140, generate a first switching instruction according to the type of the earphone, and set a first switching instruction Transmitted to the first switching circuit 130;
  • the first switching instruction carries indication information for instructing the first switching circuit 130 to transmit an audio digital signal to the earphone interface 140;
  • the first switching instruction carries indication information for instructing the first switching circuit 130 to transmit an audio analog signal to the earphone interface 140;
  • the first digital-to-analog converter 120 is configured to receive an audio digital signal from the first processor 110 and convert the audio digital signal into a first audio analog signal;
  • the first switching circuit 130 is configured to receive the first switching instruction, and transmit the audio digital signal or the first audio analog signal to the earphone interface 140 according to the first switching instruction;
  • the earphone interface 140 is configured to transmit the audio digital signal to the earphone or transmit the first audio analog signal to the earphone.
  • the multi-channel earphone includes:
  • a headphone plug 210 a second digital-to-analog converter 220, a speaker 230, and the second digital-to-analog converter 220 is connected to the speaker 230,
  • the earphone plug 210 is configured to receive an audio digital signal transmitted by the mobile terminal through the earphone interface 140;
  • the second digital-to-analog converter 220 is configured to convert the audio digital signal into a second audio analog signal
  • the speaker 230 is configured to play the second audio analog signal.
  • the first digital-to-analog converter 120 is connected to the first processor 110 and the first switching circuit 130;
  • the multi-channel earphone further includes:
  • the third switching circuit 240 is connected to the earphone plug 210,
  • the earphone plug 210 is further configured to receive an audio analog signal sent by the mobile terminal through the earphone interface 140.
  • the third switching circuit 240 is configured to connect the earphone plug 210 and the speaker 230, send the first audio analog signal to the speaker 230, or connect the earphone plug 210 and the second number
  • the analog converter 220 transmits the audio digital signal to the second digital to analog converter 220.
  • the first processor 110 is further configured to:
  • the earphone interface 140 is specifically configured to
  • the multi-channel earphone further includes:
  • the second processor 250 is connected between the third switching circuit 240 and the second digital to analog converter 220,
  • the earphone plug 210 is specifically configured to receive an audio data packet with the audio digital signal sent by the mobile terminal.
  • the second processor 250 is configured to unpack the audio data packet to obtain the audio digital signal, and send the audio digital signal to the second digital to analog converter 220.
  • the first processor 110 is further configured to:
  • the second processor 250 is further configured to:
  • the second digital-to-analog converter 220 Before transmitting the audio digital signal to the second digital-to-analog converter 220, performing the Dolby sound processing on the audio digital signal, or digitizing the cinema system sound processing; and transmitting the processed audio digital signal to the The second digital to analog converter 220.
  • the first switching circuit 130 is configured to transmit the audio digital signal or the audio analog signal to a channel pin of the earphone socket 140.
  • the mobile terminal further includes:
  • a voice processor 150 a power source 160, a second switching circuit 170,
  • the first processor 110 is further configured to output a second switching instruction to the second switching circuit 170 according to the type of the earphone connected to the earphone interface 140;
  • the second switching instruction indicates the second switching circuit 170 Connecting the power source 160 and the microphone pin of the earphone interface 140;
  • the second switching instruction instructs the second switching circuit 170 to connect the voice processor 150 and the microphone pin of the earphone interface 140;
  • the second switching circuit 170 is connected to the microphone pin of the earphone interface 140 for receiving the second switching instruction, and switches the microphone pin of the earphone interface 140 and the voice processing according to the second switching instruction.
  • the device 150 or the power source 160 is connected;
  • the multi-channel earphone further includes:
  • Fourth switching circuit 260 microphone 270, power supply circuit 280,
  • the fourth switching circuit 260 is connected to the earphone plug 210 for connecting the microphone pin of the earphone plug 210 with the microphone 270 or the power supply circuit 280;
  • the microphone 270 is configured to receive sound information
  • the power supply circuit 280 is configured to transmit power to the multi-channel earphone.
  • the multi-channel earphone further includes: a power supply circuit, a power source,
  • the power supply circuit is connected to the power source for transmitting power to the multi-channel earphone;
  • the power source is used to provide electrical energy.
  • the headset interface 140 is a wired connection interface.
  • the mobile terminal further includes:
  • the earphone identification circuit is connected to the first processor 110, for detecting a grounding impedance of a pin of the earphone interface 140 or the earphone pin when the earphone is inserted into the earphone interface 140 Set the voltage value of the voltage detection point,
  • the first processor 110 is further configured to:
  • the earphone interface 140 is a wireless connection interface.
  • the first processor 110 is further configured to:
  • the mobile terminal further includes:
  • An input interface configured to receive a headset type indication information input by the user
  • the first processor 110 is further configured to:
  • the first processor 110 After identifying the type of the earphone interface and issuing the first switching instruction, the first processor 110 decodes the audio file to obtain an audio digital signal.
  • the earphone interface 140 is a 3.5mm/2.5mm earphone hole, and the earphone hole includes a left channel pin and a right channel pin.
  • the first switching circuit 110 may specifically include:
  • the power input pin of the analog switch is connected to the working voltage, the ground pin is grounded, and the switching control pin is connected to the first signal output pin of the first processor 110 of the mobile terminal, for receiving the a first switching instruction output by the processor 110; an output end of the first data output pin of the analog switch is connected to a left channel pin of the headphone interface 140 of the mobile terminal, and an output end of the second data output pin Connected to the right channel pin of the headphone interface 140 of the mobile terminal, the analog switch further includes a first data input pin, a second data input pin, a third data input pin, and a fourth data input pin.
  • the input end of the first data input pin and the input end of the second data input pin are configured to receive the audio digital signal or the audio data packet, and the third data input pin and the fourth data input pin Foot
  • the input end is configured to receive an audio analog signal, and if an audio digital signal or an audio data packet is required to be output, the input end of the first data output pin and the input end of the second data output pin are respectively connected to the first data input
  • the output end of the pin and the output end of the second data input pin if an audio analog signal output is required, the input end of the first data output pin and the input end of the second data output pin are respectively connected to the third The output of the data input pin and the output of the fourth data input pin.
  • the earphone interface 140 is a 3.5mm/2.5mm earphone hole, and the second switching circuit 170 may specifically include:
  • a gate of the first PMOS transistor is connected to a microphone pin of the earphone interface 140 of the mobile terminal, and a source of the first PMOS transistor is connected to the voice processor 150.
  • a drain of the first PMOS transistor is connected to a second signal output pin of the first processor 110 of the mobile terminal, and the second signal output pin is configured to output a level signal to control the first PMOS transistor Turning on or off;
  • the gate of the second PMOS transistor is connected to the microphone pin of the earphone interface 140 of the mobile terminal, the source of the second PMOS transistor is connected to the power source 160, and the second PMOS transistor
  • the drain is connected to the third signal output pin of the first processor 110 of the mobile terminal, and the third signal output pin is used to output a level signal to control the second PMOS transistor to be turned on or off.
  • the first processor 110 determines the inserted earphone as a multi-channel earphone from the earphone type indication information input by the user or the detected ground impedance or voltage value of the earphone pin, and the mobile terminal
  • the first switching instruction is sent to the first switching circuit 130 to switch the transmission path.
  • the first processor 110 decodes the audio file and packages the audio data packet, and transmits the audio data packet to the earphone interface 140 through the USB or SPDIF, and is transmitted by the earphone interface 140 to the earphone plug 210.
  • the earphone plug 210 sends the audio data packet to the second processor 250 of the multi-channel earphone to perform unpacking to obtain a multi-channel audio digital signal, and then the second processor 250 performs audio processing on the audio digital signal to output the multi-channel.
  • Headphone The second digital-to-analog converter 220 performs digital-to-analog conversion to obtain an audio analog signal, which is played by the speaker 230.
  • the decoded audio file may be subjected to sound processing and packaged transmission, and the second processor 250 may directly output the unpacked audio digital signal to the multi-channel earphone.
  • the second digital to analog converter 220 may be used to convert the audio data packet to the second processor 250 of the multi-channel earphone to perform unpacking to obtain a multi-channel audio digital signal, and then the second processor 250 performs audio processing on the audio digital signal to output the multi-channel.
  • Headphone The second digital-to-analog converter 220 performs digital-to-analog conversion to obtain an audio analog signal, which is
  • the audio digital signal decoded by the first processor 110 can be directly output to the first digital-to-analog converter 120 in the mobile terminal for digital-to-analog conversion, and the audio analog signal is output to the ordinary The headphones can be played.
  • the above process of sound processing can be performed in a mobile terminal or in a multi-channel earphone.
  • the power supply here may be a 5V power supply of a universal serial bus or a power supply of other line interfaces.
  • FIG. 11 is a schematic circuit diagram of a headphone interface of a mobile terminal according to an embodiment of the present invention, which is a 3.5 mm or 2.5 mm earphone jack.
  • 12 is a circuit diagram of a first switching circuit of a mobile terminal of the present invention.
  • Figure 13 is a circuit diagram of a second switching circuit of the mobile terminal of the present invention.
  • J1 is the earphone holder, in which the empty part is the earphone hole, the fifth leg is the grounding pin, the first leg is the left channel pin, and the analog-to-digital conversion (ADC) network is connected through the resistor R2.
  • ADC analog-to-digital conversion
  • the 2 feet are suspended, and the 3rd pin is grounded through the resistor R1, and is connected to the processor of the mobile terminal for detecting whether or not the earphone is inserted.
  • the fourth leg is a microphone pin, and is connected to the gate of the first PMOS transistor Q1 and the second PMOS transistor Q2, that is, the D3 pin as shown in FIG. 13, and the sixth pin of J1 is the right channel pin. As shown in FIG.
  • the second switching circuit includes a first PMOS transistor Q1 and a second PMOS transistor Q2, and a gate of the first PMOS transistor Q1 is connected to a microphone pin of a headphone interface of the mobile terminal,
  • the source of the first PMOS transistor Q1 is connected to the voice processor, and the drain of the first PMOS transistor Q1 is connected to the mobile terminal.
  • a second signal output pin of the processor is configured to output a level signal to control the first PMOS transistor to be turned on or off; and the gate of the second PMOS transistor Q1 is connected a microphone pin of the earphone interface of the mobile terminal, a source of the second PMOS transistor is connected to the power source, where a universal serial bus is used as an example to turn on a 5V voltage source of the serial bus, the second PMOS The drain of the transistor is coupled to a third signal output pin of the processor of the mobile terminal. As shown in FIG.
  • the first switching circuit includes an analog switch U1, and the power input pin of the analog switch U1 is connected to the working voltage of the 9th pin, and the ground pin is grounded to the 4th pin, and the enable pin is the first
  • the fourth signal output pin of the processor connected to the mobile terminal of the mobile terminal is grounded through the resistor R5, and the control pin (switching pin for transmitting the audio analog signal and the audio digital signal) is switched, that is, the tenth pin is connected to the mobile terminal.
  • a first signal output pin of the processor of the terminal a first data output pin, that is, an output end of the third pin is connected to a left channel pin of the earphone hole of the mobile terminal, and a second data output pin is a fifth pin
  • the output terminal is connected to the right channel pin of the earphone hole of the mobile terminal
  • the analog switch U1 further includes a first data input pin, that is, a second pin, a second data input pin, that is, a sixth pin, and a third data.
  • the input pin is the seventh pin and the fourth data input pin is the first pin, and the input of the first data input pin and the input of the second data input pin are used for receiving an audio digital signal or an audio data packet.
  • the third data input pin and the fourth data input pin The input end is used for receiving an audio analog signal. If an audio digital signal or an audio data packet output is required, the audio data packet output of the audio digital signal package using the universal serial bus is taken as an example, and the first data output pin is used.
  • the input end and the input end of the second data output pin are respectively connected to the output end of the first data input pin and the output end of the second data input pin, and if the audio analog signal output is required, the first data output
  • the input end of the pin and the input end of the second data output pin are respectively connected to the output end of the third data input pin and the output end of the fourth data input pin.
  • the processor detects that the third pin of J1, that is, the HS_DET signal is pulled down to a low level by the resistor R1, indicating that the earphone is in position.
  • the ADC network on the right side of R2 is connected to a digital-to-analog converter or a general General Purpose Input Output (GPIO).
  • GPIO General Purpose Input Output
  • the digital-to-analog converter is used to detect the impedance of the ADC network to ground, and by detecting the impedance to identify whether it is a normal earphone such as a mono headset or a two-channel earphone or a multi-channel earphone.
  • the L-channel to ground resistance of a normal earphone is 16 ohms or 32 ohms, and as shown in Fig. 12, U1 is an analog switch, and the third leg is connected to the left leg of the headphone hole of the first leg of J1 in Fig. 11
  • the fifth leg of U1 is connected to the sixth leg of J1, that is, the right channel pin of the earphone hole.
  • the D-pin of a multi-channel earphone transmitted using the USB or SPDIF path, that is, the fifth pin of U1 is infinite before the power is turned off.
  • the multi-channel headphone D-pin that is, the fifth pin of U1 is equivalent to floating, and the ADC network is kept at a high level. That is, the ADC network low level indicates a normal stereo earphone, and the ADC network high level indicates a multi-channel earphone.
  • the GPIO is configured to be in the no pull state so that it does not affect the normal operation of the following circuits.
  • the G1 pin GPIO_MIC_EN of the Q1 is controlled to be a low level through the first signal output pin, and the Q1 is turned on, and the microphone pin of the J1 is connected through the D3 and S2 of the Q1.
  • the fourth signal output pin controls the GPIO_SWITCH_SW of the 10th pin of U1 to be low level, so that the first and seventh legs of U1 are respectively turned on with the third and fifth pins.
  • the grounding pin of the earphone hole is normally used, and the microphone pin is normally used.
  • the audio analog signal transmission path is turned on and the audio analog signal is transmitted.
  • the processor When detecting that the earphone inserted into the earphone hole is a multi-channel earphone, the processor controls the G1 pin GPIO_MIC_EN of the Q1 to be high level through the first signal output pin, the Q1 is disconnected, and the processor is controlled by the second signal output pin.
  • Q2's G1 pin GPIO_USB_5V_EN is low level, Q2 is turned on, USB external power supply 5V is turned on, the microphone pin of the headphone hole is powered by the multi-channel earphone; the processor simultaneously controls the 8th pin of U1 through the third signal control pin.
  • GPIO_SWITCH_EN low, U1 is enabled, and the GPIO_SWITCH_SW of the 10th pin of U1 is controlled to be high by the fourth signal control pin, so that the 2nd and 6th pins of U1 are respectively turned on with the 3rd and 5th pins.
  • the grounding pin of the earphone hole is normally used.
  • the 5 volt voltage of the microphone pin input to the USB powers the multi-channel earphone, and the audio digital signal or the audio data packet transmission path is turned on, and the audio digital signal or the audio data packet is started to be transmitted. data transmission. This enables the transmission and playback of different types of audio files, as well as compatibility with different types of headphones.
  • the first to fourth signal output pins of the processor of the mobile terminal may be the same pin or different pins.
  • the non-gates may be configured on different branches according to the control requirements.
  • the output of the high and low levels is realized on different branches; the branches with the same level can share one output pin according to the needs of the control; or the four signals directly output correspond to the four output pins, which are not limited herein.
  • the present invention has the following advantages:
  • different transmission paths can be used to transmit different types of signals depending on the type of earphones, and audio digital signals can be transmitted for multi-channel headphones, and audio analog signals can be transmitted for non-multi-channel headphones.
  • the mobile terminal can be compatible with different types of earphones, and can be used with different types of earphones to transmit different types of audio files.
  • the normal playback of multi-channel audio files can be realized, so that the multi-channel headphone end outputs multi-channel surround sound.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Circuit For Audible Band Transducer (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Multimedia (AREA)

Abstract

本发明实施例公开了一种传输方法,用于设置有耳机接口的移动终端,其特征在于,所述方法包括:确定连接所述耳机接口的耳机的类型;若所述耳机是多声道耳机,则通过所述耳机接口,向所述耳机传输音频数字信号;若所述耳机不是多声道耳机,通过所述耳机接口,向所述耳机传输音频模拟信号。本发明实施例还公开一种移动终端、多声道耳机及音频播放系统。采用本发明,可使得移动终端能够兼容不同类型的耳机,能配合不同类型耳机传输不同类型的音频文件。

Description

一种传输方法、移动终端、多声道耳机及音频播放系统
本申请要求于2014年4月29日提交中国专利局、申请号为201410177198.0、发明名称为“一种传输方法、移动终端、多声道耳机及音频播放系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及多媒体技术领域,尤其涉及一种传输方法、移动终端、多声道耳机及音频播放系统。
背景技术
随着多媒体技术的不断发展,人们对于影音播放的要求越来越高,人们需要更清晰的画面提升视觉享受,以及多声道的声音提升听觉享受。虽然在电脑设备或家庭影院中播放多声道文件早已实现,但是随着移动终端市场的高速成长,使用移动终端如手机、平板电脑的人群越来越多。当这部分用户需要享受多声道的听觉效果时,难以实现。
在现有技术中,一般采用普通双声道耳机来虚拟多声道的环绕立体声,利用算法编码,将双声道的音频文件根据相位分解为相位、频段等不同的6个音轨,再缩混(DOWN MIX)为一个双声道音频文件。全过程利用移动终端的处理器处理,后端输出为双声道。利用现有的耳机接口即可实现。可以理解为一种处理后的音效。但是由于源文件为双声道音频文件,且输出也为双声道,因此,多声道的效果远远低于真正的多声道音频文件正常播放的效果。
发明内容
本发明实施例所要解决的技术问题在于,提供一种传输方法、移动终端、多声道耳机及音频播放系统。以解决无法在耳机端获取真正的多声道播放效果的问题。
本发明实施例第一方面提供了一种传输方法,用于设置有耳机接口的移动终端,包括:
确定连接所述耳机接口的耳机的类型;
若所述耳机是多声道耳机,则通过所述耳机接口,向所述耳机传输音频数字信号;
若所述耳机不是多声道耳机,通过所述耳机接口,向所述耳机传输音频模拟信号。
在第一方面的第一种可能的实现方式中,还包括:
将待处理的音频文件进行解码得到音频数字信号;
所述向所述耳机传输音频数字信号具体包括:
将所述音频数字信号打包成音频数据包;
将所述音频数据包通过所述耳机接口向所述耳机传输。
结合第一方面的第一种可能的实现方式,在第二种可能的实现方式中,
在将所述音频数字信号打包成音频数据包之前,还包括:对所述音频数字信号进行杜比音效处理或者数字化影院系统音效处理;
所述将所述音频数字信号打包成音频数据包,包括:将进行杜比音效处理或者数字化影院系统音效处理后的音频数字信号,打包成音频数据包。
结合第一方面的第二种可能的实现方式,在第三种可能的实现方式中,
通过所述耳机接口,向所述耳机传输音频数字信号或音频模拟信号时,通 过所述耳机接口的声道脚位进行传输。
结合第一方面或结合第一方面的第一或第二或第三种可能的实现方式,在第四种可能的实现方式中,
所述确定连接所述耳机接口的耳机的类型,包括:
当所述耳机插入所述耳机接口时,检测所述耳机引脚的到地阻抗或者所述耳机引脚上设置的电压检测点的电压值,根据所述到地阻抗或电压值识别所述耳机的类型;或
接收用户输入或所述耳机发送的耳机类型指示信息,根据所述耳机类型指示信息确定所述耳机的类型。
本发明第二方面提供一种传输方法,用于插入移动终端的耳机孔的多声道耳机,包括:
接收所述移动终端通过所述耳机接口传输的音频数字信号;
将所述音频数字信号转换为音频模拟信号;
播放音频模拟信号。
在第二方面的第一种可能的实现方式中,
还包括:
接收移动终端发送的带有所述音频数字信号的音频数据包,
将所述音频数据包解包得到所述音频数字信号,将所述音频数字信号转换为音频模拟信号;
播放音频模拟信号。
结合第二方面的第一种可能的实现方式,在第二种可能的实现方式中,
所述将所述音频数字信号转换为音频模拟信号之前,还包括:对所述音频 数字信号进行杜比音效处理或者数字化影院系统音效处理;
所述将所述音频数字信号转换为音频模拟信号,包括:将杜比音效处理或者数字化影院系统音效处理后的音频数字信号转化为音频模拟信号。
结合第二方面或结合第二方面的第一或第二或第三种可能的实现方式,在第四种可能的实现方式中,
还包括:
接收所述移动终端通过耳机接口发送的音频模拟信号;
播放音频模拟信号。
本发明第三方面提供一种移动终端,所述移动终端包括:
处理器,数模转换器,第一切换电路和耳机接口,
所述第一切换电路连接所述耳机接口;
所述处理器,用于将音频文件进行解码得到音频数字信号,确定连接所述耳机接口的耳机的类型,根据所述耳机的类型生成第一切换指令,并将第一切换指令传输给所述第一切换电路;若所述耳机是多声道耳机,所述第一切换指令携带用于指示所述第一切换电路向所述耳机接口传输音频数字信号的指示信息;若所述耳机不是多声道耳机,所述第一切换指令携带用于指示所述第一切换电路向所述耳机接口传输音频模拟信号的指示信息;
所述数模转换器,用于接收来自所述处理器的音频数字信号,并将所述音频数字信号转换成所述音频模拟信号;
所述第一切换电路,用于接收所述第一切换指令,并根据所述第一切换指令向所述耳机接口传输所述音频数字信号或所述音频模拟信号;
所述耳机接口,用于向所述耳机传输所述音频数字信号,或向所述耳机传 输所述音频模拟信号。
在第三方面的第一种可能的实现方式中,
所述数模转换器连接所述处理器以及所述第一切换电路。
结合第三方面的第一种可能的实现方式,在第二种可能的实现方式中,
所述处理器还用于,将所述音频数字信号打包成音频数据包;将所述音频数据包经过第一切换电路直接发送给所述耳机接口;
所述耳机接口具体用于,向所述耳机传输所述音频数据包。
结合第三方面的第二种可能的实现方式,在第三种可能的实现方式中,
所述处理器还用于在解码得到的所述音频数字信号之后,将所述音频数字信号打包成所述音频数据包之前,对所述音频数字信号进行杜比音效处理或者数字化影院系统音效处理。
结合第三方面或结合第三方面的第一或第二或第三种可能的实现方式,在第四种可能的实现方式中,
所述第一切换电路,用于向所述耳机接口的声道脚位传输所述音频数字信号或所述音频模拟信号。
结合第三方面或结合第三方面的第一或第二或第三或第四种可能的实现方式,在第五种可能的实现方式中,所述移动终端还包括语音处理器、电源、第二切换电路,
所述语音处理器用于处理从所述耳机接口的麦克风脚位接收的声音信息;
所述处理器,还用于根据连接所述耳机接口的耳机的类型,输出第二切换指令给所述第二切换电路;若所述耳机是多声道耳机,所述第二切换指令指示所述第二切换电路连通所述电源与所述耳机接口的麦克风脚位;若所述耳机不 是多声道耳机,所述第二切换指令指示所述第二切换电路连通所述语音处理器与所述耳机接口的麦克风脚位;
所述第二切换电路连接所述耳机接口的麦克风脚位,用于接收所述第二切换指令,根据所述第二切换指令切换所述耳机接口的麦克风脚位与所述语音处理器或所述电源连通。
结合第三方面或结合第三方面的第一或第二或第三或第四或第五种可能的实现方式,在第六种可能的实现方式中,
所述耳机接口为有线连接接口,
所述移动终端还包括耳机识别电路,所述耳机识别电路连接所述处理器,用于当所述耳机插入所述耳机接口时,检测所述耳机接口的引脚的到地阻抗或者所述耳机引脚上设置的电压检测点的电压值,
所述处理器还用于:根据所述地阻抗或者所述电压值,识别所述耳机的类型。
结合第三方面或结合第三方面的第一或第二或第三或第四或第五种可能的实现方式,在第七种可能的实现方式中,
所述耳机接口为无线连接接口,
所述处理器还用于:接收所述耳机发送的耳机类型指示信息,根据所述耳机类型指示信息确定所述耳机的类型。
结合第三方面或结合第三方面的第一或第二或第三或第四或第五种可能的实现方式,在第八种可能的实现方式中,
所述移动终端还包括输入接口,用于接收用户输入的耳机类型指示信息;
所述处理器还用于:获取所述耳机类型指示信息,根据所述耳机类型指示 信息确定所述耳机的类型。
结合第三方面或结合第三方面的第一或第二或第三或第四或第五或第六或第七或第八种可能的实现方式,在第九种可能的实现方式中,
所述处理器在识别所述耳机接口的类型,发出第一切换指令后,将音频文件进行解码得到音频数字信号。
结合第三方面或结合第三方面的第一或第二或第三或第四或第五或第六或第七或第八或第九种可能的实现方式,在第十种可能的实现方式中,
所述耳机接口为3.5mm/2.5mm的耳机孔,所述耳机孔包括左声道脚位、右声道脚位,所述第一切换电路具体包括:
模拟开关,所述模拟开关的电源输入引脚接工作电压,接地引脚接地,切换控制引脚接所述移动终端的处理器的第一信号输出引脚,用于接收所述处理器输出的第一切换指令;所述模拟开关的第一数据输出引脚的输出端接所述移动终端的耳机接口的左声道脚位,第二数据输出引脚的输出端接所述移动终端的耳机接口的右声道脚位,所述模拟开关还包括第一数据输入引脚、第二数据输入引脚、第三数据输入引脚及第四数据输入引脚,所述第一数据输入引脚的输入端和第二数据输入引脚的输入端用于接收所述音频数字信号或所述音频数据包,所述第三数据输入引脚和第四数据输入引脚的输入端用于接收音频模拟信号,若需要进行音频数字信号或音频数据包输出时,所述第一数据输出引脚的输入端和第二数据输出引脚的输入端分别接第一数据输入引脚的输出端和第二数据输入引脚的输出端,若需要进行音频模拟信号输出时,所述第一数据输出引脚的输入端和第二数据输出引脚的输入端分别接第三数据输入引脚的输出端和第四数据输入引脚的输出端。
结合第三方面的第五或第六或第七或第八或第九种可能的实现方式,在第十一种可能的实现方式中,
所述耳机接口为3.5mm/2.5mm的耳机孔,所述第二切换电路具体包括:
第一PMOS管和第二PMOS管,所述第一PMOS管的栅极接所述移动终端的耳机接口的麦克风脚位,所述第一PMOS管的源极接所述语音处理器,所述第一PMOS管的漏极接所述移动终端的处理器的第二信号输出引脚,所述第二信号输出引脚用于输出电平信号以控制所述第一PMOS管导通或关断;所述第二PMOS管的栅极接所述移动终端的耳机接口的麦克风脚位,所述第二PMOS管的源极接所述电源,所述第二PMOS管的漏极接所述移动终端的处理器的第三信号输出引脚,所述第三信号输出引脚用于输出电平信号以控制所述第二PMOS管导通或关断。
本发明第四方面提供了一种多声道耳机,所述多声道耳机包括:耳机插头、数模转换器、扬声器,所述数模转换器连接所述扬声器,
所述耳机插头,用于接收移动终端通过所述耳机接口传输的音频数字信号;
所述数模转换器,用于将所述音频数字信号转换为音频模拟信号;
所述扬声器,用于播放所述音频模拟信号。
在第四方面的第一种可能的实现方式中,
还包括:
第三切换电路,所述第三切换电路连接所述耳机插头,
所述耳机插头还用于接收移动终端通过耳机接口发送的音频模拟信号,
所述第三切换电路,用于连通所述耳机插头和所述扬声器,将所述音频模拟信号发送给所述扬声器,或者连通所述耳机插头和所述数模转换器,将所述 音频数字信号发送给所述数模转换器。
结合第四方面的第一种可能的实现方式,在第四方面的第二种可能的实现方式中,
所述多声道耳机还包括:处理器,所述处理器连接在所述第三切换电路和所述数模转换器之间,
所述耳机插头具体用于接收移动终端发送的带有所述音频数字信号的音频数据包,
所述处理器用于将所述音频数据包解包得到所述音频数字信号,将所述音频数字信号发送给所述数模转换器。
结合第四方面的第一种可能的实现方式,在第三种可能的实现方式中,
所述处理器还用于在将所述音频数字信号发送给所述数模转换器之前,将所述音频数字信号进行杜比音效处理,或者数字化影院系统音效处理;将处理后的音频数字信号发送给数模转换器。
结合第四方面或第四方面的第一或第二或第三种可能的实现方式,在第四种可能的实现方式中,
所述多声道耳机还包括:第四切换电路,麦克风,供电电路,
所述第四切换电路连接所述耳机插头,用于连通所述耳机插头的麦克风脚位与所述麦克风或所述供电电路;
所述麦克风用于接收声音信息;
所述供电电路,用于向多声道耳机传输电量。
结合第四方面或第四方面的第一或第二或第三种可能的实现方式,在第五种可能的实现方式中,
所述多声道耳机还包括:供电电路,电源,
所述供电电路连接所述电源,用于向多声道耳机传输电量;
所述电源用于提供电能。
本发明第五方面提供了一种音频播放系统,包括:
移动终端和多声道耳机,
第一处理器,第一数模转换器,第一切换电路和耳机接口,
所述第一切换电路连接所述耳机接口;
所述第一处理器,用于将音频文件进行解码得到音频数字信号,确定连接所述耳机接口的耳机的类型,根据所述耳机的类型生成第一切换指令,并将第一切换指令传输给所述第一切换电路;若所述耳机是多声道耳机,所述第一切换指令携带用于指示所述第一切换电路向所述耳机接口传输音频数字信号的指示信息;若所述耳机不是多声道耳机,所述第一切换指令携带用于指示所述第一切换电路向所述耳机接口传输音频模拟信号的指示信息;
所述第一数模转换器,用于接收来自所述第一处理器的音频数字信号,并将所述音频数字信号转换成第一音频模拟信号;
所述第一切换电路,用于接收所述第一切换指令,并根据所述第一切换指令向所述耳机接口传输所述音频数字信号或所述第一音频模拟信号;
所述耳机接口,用于向所述耳机传输所述音频数字信号,或向所述耳机传输所述第一音频模拟信号。
所述多声道耳机包括:耳机插头、第二数模转换器、扬声器,所述第二数模转换器连接所述扬声器,
所述耳机插头,用于接收移动终端通过所述耳机接口传输的音频数字信号;
所述第二数模转换器,用于将所述音频数字信号转换为第二音频模拟信号;
所述扬声器,用于播放所述第二音频模拟信号。
在第五方面的第一种可能的实现方式中,
所述第一数模转换器连接所述第一处理器以及所述第一切换电路;
所述多声道耳机还包括:第三切换电路,所述第三切换电路连接所述耳机插头,
所述耳机插头还用于接收移动终端通过耳机接口发送的音频模拟信号,
所述第三切换电路,用于连通所述耳机插头和所述扬声器,将所述第一音频模拟信号发送给所述扬声器,或者连通所述耳机插头和所述第二数模转换器,将所述音频数字信号发送给所述第二数模转换器。
结合第五方面的第一种可能的实现方式,在第二种可能的实现方式中,
所述第一处理器还用于,将所述音频数字信号打包成音频数据包;将所述音频数据包经过第一切换电路直接发送给所述耳机接口;
所述耳机接口具体用于,向所述多声道耳机传输所述音频数据包;
所述多声道耳机还包括:
第二处理器,所述第二处理器连接在所述第三切换电路和所述第二数模转换器之间,
所述耳机插头具体用于接收移动终端发送的带有所述音频数字信号的音频数据包,
所述第二处理器用于将所述音频数据包解包得到所述音频数字信号,将所述音频数字信号发送给所述第二数模转换器。
结合第五方面的第二种可能的实现方式,在第三种可能的实现方式中,
所述第一处理器还用于在解码得到的所述音频数字信号之后,将所述音频数字信号打包成所述音频数据包之前,对所述音频数字信号进行杜比音效处理或者数字化影院系统音效处理;或者
所述第二处理器还用于在将所述音频数字信号发送给所述第二数模转换器之前,将所述音频数字信号进行杜比音效处理,或者数字化影院系统音效处理;将处理后的音频数字信号发送给所述第二数模转换器。
结合第五方面或结合第五方面的第一或第二或第三种可能的实现方式,在第四种可能的实现方式中,
所述第一切换电路,用于向所述耳机接口的声道脚位传输所述音频数字信号或所述音频模拟信号。
结合第五方面或结合第五方面的第一或第二或第三或第四种可能的实现方式,在第五种可能的实现方式中,
所述移动终端还包括:
语音处理器、电源、第二切换电路,
所述语音处理器用于处理从所述耳机接口的麦克风脚位接收的声音信息;
所述第一处理器,还用于根据连接所述耳机接口的耳机的类型,输出第二切换指令给所述第二切换电路;若所述耳机是多声道耳机,所述第二切换指令指示所述第二切换电路连通所述电源与所述耳机接口的麦克风脚位;若所述耳机不是多声道耳机,所述第二切换指令指示所述第二切换电路连通所述语音处理器与所述耳机接口的麦克风脚位;
所述第二切换电路连接所述耳机接口的麦克风脚位,用于接收所述第二切换指令,根据所述第二切换指令切换所述耳机接口的麦克风脚位与所述语音处 理器或所述电源连通;
所述多声道耳机还包括:
第四切换电路,麦克风,供电电路,
所述第四切换电路连接所述耳机接口,用于连通所述耳机接口的麦克风脚位与所述麦克风或所述供电电路;
所述麦克风用于接收声音信息;
所述供电电路,用于向多声道耳机传输电量。
结合第五方面或结合第五方面的第一或第二或第三或第四种可能的实现方式,在第六种可能的实现方式中,
所述多声道耳机还包括:
供电电路,电源,
所述供电电路连接所述电源,用于向多声道耳机传输电量;
所述电源用于提供电能。
结合第五方面或结合第五方面的第一或第二或第三或第四或第五或第六种可能的实现方式,在第七种可能的实现方式中,
所述耳机接口为有线连接接口,
所述移动终端还包括耳机识别电路,所述耳机识别电路连接所述第一处理器,用于当耳机插入所述耳机接口时,检测所述耳机接口的引脚的到地阻抗或者所述耳机引脚上设置的电压检测点的电压值,
所述第一处理器还用于:
根据所述到地阻抗或者所述电压值,识别插入所述耳机接口的耳机的类型。
结合第五方面或结合第五方面的第一或第二或第三或第四或第五或第六 种可能的实现方式,在第八种可能的实现方式中,
所述耳机接口为无线连接接口,
所述第一处理器还用于:
接收与所述耳机接口连接的耳机发送的耳机类型指示信息,根据所述耳机类型指示信息确定所述耳机的类型。
结合第五方面或结合第五方面的第一或第二或第三或第四或第五或第六种可能的实现方式,在第九种可能的实现方式中,
所述移动终端还包括输入接口,用于接收用户输入的耳机类型指示信息;
所述第一处理器还用于:
获取所述耳机类型指示信息,根据所述耳机类型指示信息确定与所述耳机接口连接的耳机的类型。
结合第五方面或结合第五方面的第一或第二或第三或第四或第五或第六或第七或第八或第九种可能的实现方式,在第十种可能的实现方式中,
所述第一处理器在识别所述耳机接口的类型,发出第一切换指令后,将音频文件进行解码得到音频数字信号。
结合第五方面或结合第五方面的第一或第二或第三或第四或第五或第六或第七或第八或第九或第十种可能的实现方式,在第十一种可能的实现方式中,所述耳机接口为3.5mm/2.5mm的耳机孔,所述耳机孔包括左声道脚位、右声道脚位,
所述第一切换电路具体包括:
模拟开关,所述模拟开关的电源输入引脚接工作电压,接地引脚接地,切换控制引脚接所述移动终端的第一处理器的第一信号输出引脚,用于接收所述 第一处理器输出的第一切换指令;所述模拟开关的第一数据输出引脚的输出端接所述移动终端的耳机接口的左声道脚位,第二数据输出引脚的输出端接所述移动终端的耳机接口的右声道脚位,所述模拟开关还包括第一数据输入引脚、第二数据输入引脚、第三数据输入引脚及第四数据输入引脚,所述第一数据输入引脚的输入端和第二数据输入引脚的输入端用于接收所述音频数字信号或所述音频数据包,所述第三数据输入引脚和第四数据输入引脚的输入端用于接收音频模拟信号,若需要进行音频数字信号或音频数据包输出时,所述第一数据输出引脚的输入端和第二数据输出引脚的输入端分别接第一数据输入引脚的输出端和第二数据输入引脚的输出端,若需要进行音频模拟信号输出时,所述第一数据输出引脚的输入端和第二数据输出引脚的输入端分别接第三数据输入引脚的输出端和第四数据输入引脚的输出端。
结合第五方面的第五或第六或第七或第八或第九或第十种可能的实现方式,在第十二种可能的实现方式中,
所述耳机接口为3.5mm/2.5mm的耳机孔,
所述第二切换电路具体包括:
第一PMOS管和第二PMOS管,所述第一PMOS管的栅极接所述移动终端的耳机接口的麦克风脚位,所述第一PMOS管的源极接所述语音处理器,所述第一PMOS管的漏极接所述移动终端的第一处理器的第二信号输出引脚,所述第二信号输出引脚用于输出电平信号以控制所述第一PMOS管导通或关断;所述第二PMOS管的栅极接所述移动终端的耳机接口的麦克风脚位,所述第二PMOS管的源极接所述电源,所述第二PMOS管的漏极接所述移动终端的第一处理器的第三信号输出引脚,所述第三信号输出引脚用于输出电平信 号以控制所述第二PMOS管导通或关断。
实施本发明实施例,通过确定连接耳机接口的耳机类型,可以根据耳机的类型采用不同的传输通路以传输不同类型的信号,对于多声道耳机传输音频数字信号,可以实现耳机侧可以获得真正的多声道的音频,由此实现多声道播放效果。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明传输方法的第一实施例的流程示意图;
图2是本发明传输方法的第二实施例的流程示意图;
图3是本发明传输方法的第三实施例的流程示意图;
图4是本发明传输方法的第四实施例的流程示意图;
图5是本发明移动终端的第一实施例的组成示意图;
图6是本发明移动终端的第二实施例的组成示意图;
图7是本发明多声道耳机的第一实施例的组成示意图;
图8是本发明多声道耳机的第二实施例的组成示意图;
图9是本发明多声道耳机的第三实施例的组成示意图;
图10是本发明实施例音频播放系统的组成示意图;
图11是本发明实施例中移动终端的耳机接口的电路示意图;
图12是是本发明移动终端的第一切换电路的电路示意图;
图13是本发明移动终端的第二切换电路的电路示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
请参照图1,为本发明传输方法的第一实施例的流程示意图,在本实施例中,所述方法用于设置有耳机接口的移动终端,包括以下步骤:
S101,确定连接耳机接口的耳机的类型。
具体地,耳机的类型可以分为多声道耳机、双声道耳机和单声道耳机。由于用户使用不同类型的耳机时,数据或信号的传输方式和通路将有所不同,因此在耳机插入耳机接口时,需要确定耳机的类型。
可选地,确定耳机的类型可以采用如下方式:
当所述耳机插入所述耳机接口时,检测所述耳机引脚的到地阻抗,根据所述到地阻抗识别所述耳机的类型;
或者在所述耳机接口的耳机引脚上设置电压检测点,当所述耳机插入耳机接口时,检测所述电压检测点的电压值,根据电压值识别所述耳机的类型,设置电压检测点的耳机引脚可以是左声道脚位、右声道脚位或麦克风脚位;
或者接收用户输入的耳机类型指示信息,当所述耳机插入所述耳机接口时,根据所述耳机类型指示信息确定所述耳机的类型;
或者接收耳机发送的耳机类型指示信息,根据所述耳机类型指示信息确定所述耳机的类型。
其中,当采用检测引脚的到地阻抗时,检测的耳机引脚可以是左声道脚位、右声道脚位或麦克风脚位。如果采用接收用户输入的耳机类型指示信息来确定耳机类型时,可以由用户在移动终端先输入耳机类型指示信息,再插入耳机来实现;也可以由用户先插入耳机,再由移动终端提示用户输入耳机类型指示信息来实现。
S102,若所述耳机是多声道耳机,则通过所述耳机接口,向所述耳机传输音频数字信号。
待处理的音频文件可以是4.1声道音频文件、5.1声道音频文件、6.1声道音频文件、7.1声道音频文件或者后续可能出现的更多声道的音频文件,此处不作限定。
由于现有移动终端如手机或平板电脑的耳机接口最多只有4个脚位即左声道脚位、右声道脚位、接地脚位和麦克风脚位,且接地脚位一般用于接地而不用于传输数据,因此若是按照常规的多声道音频传输方式,即每个引脚传输一路音频信号,则耳机接口的4个脚位无法直接传输多声道音频文件解码后的多路音频数字信号,例如,5.1声道的音频文件解码后存在6路独立的音频信号,4个脚位无法满足传输需求,因此可以在移动终端额外配置切换电路或者直接改造移动终端的耳机接口,将切换电路与耳机接口的电路集成设置,然后将音频传输通路切换为所述切换电路对应数据接口与耳机接口的通路,且传输的信号为音频数字信号,对于多路的音频数字信号,可以打包后传输。
可选地,在传输音频数据包到耳机接口时,可以使用通用串行总线 (Universal Serial Bus,简称USB)或索尼/菲利普斯数字音频接口(Sony/Philips Digital Interface Format,简称SPDIF)来进行,当然,其他可用的接口同样可以采用,本发明不作任何限定。
例如,采用USB传输5.1声道的音频文件时,可以先将5.1声道音频文件解码为6路音频数字信号,再将6路音频数字信号打包得到音频数据包,可选地,打包的数量可以为1个或者更多个,然后利用USB进行传输,根据USB传输协议,需要同时使用2个数据传输脚位、1个接地脚位和1个供电脚位,因此需要同时占用耳机接口的4个脚位,当然,采用其他接口传输时,占用的脚位数量也可能不同,只需要确保占用脚位的数量少于或等于4个即可,然后,再将音频数据包由耳机接口传输至耳机,若打包的数量大于1个,则保持传输通路不变进行连续多次传输即可,这样,便实现了将多声道音频文件解码打包后的数据包传输到耳机侧的目的。
需要说明的是,当音频文件解码后音频数字信号数量少于或等于当前传输线路的数量时,则可以直接传输解码后的音频数字信号给耳机端而无需打包。
S103,若所述耳机不是多声道耳机,则通过所述耳机接口,向所述耳机传输音频模拟信号。
具体地,当确认插入耳机接口的耳机不是多声道耳机时,如单声道耳机或双声道耳机,此时,只需要按照正常的处理流程如解码后对音频数字信号进行数模转换处理得到1路或2路的音频模拟信号,并利用现有耳机接口4个脚位中的对应脚位完成音频模拟信号的传输即可。
需要说明的是,在本实施例中,为了使用的便利性以及减少对现有设备的改造,所述耳机接口可以是3.5毫米耳机孔、2.5毫米耳机孔或USB耳机孔, 甚至还可以是通过无线连接的蓝牙耳机或WiFi耳机。同时将耳机插头设置成与移动终端上的相应接口匹配即可。
例如,当耳机接口为2.5毫米耳机孔时,其内部电路与常见的3.5毫米耳机孔基本一致,因此可以在移动终端内配置与3.5毫米耳机孔一样的切换电路或直接将切换电路与2.5毫米耳机孔的电路集成设置,同时将耳机插头的尺寸设置为2.5毫米;USB口的处理方式类似,此处不再赘述。
而对于无线连接的如蓝牙耳机,同样可以在移动终端内部将音频数据包发送到无线发射模块,再由无线发射模块将音频数据包发送至蓝牙耳机的无线接收模块即可。后续由蓝牙耳机完成解包、播放等流程。
在本实施例中,通过确定插入耳机接口的耳机类型,可以根据耳机的类型采用不同的传输通路以传输不同类型的信号,对于多声道耳机传输音频数字信号,对于非多声道耳机,传输音频模拟信号,从而实现移动终端可以兼容不同类型的耳机,并配合不同类型耳机传输不同类型音频文件的效果。可实现多声道音频文件的正常播放,使得多声道耳机端输出多声道的环绕立体声。
请参照图2,为本发明传输方法的第二实施例的流程示意图,在本实施例中,所述方法包括以下步骤:
S201,确定连接耳机接口的耳机的类型。
具体地,耳机的类型可以分为多声道耳机、双声道耳机和单声道耳机。由于用户使用不同类型的耳机时,数据或信号的传输方式和通路将有所不同,因此在耳机插入耳机接口时,需要确定耳机的类型。
可选地,确定耳机的类型可以采用如下方式:
当所述耳机插入所述耳机接口时,检测所述耳机引脚的到地阻抗,根据所 述到地阻抗识别所述耳机的类型;
或者在所述耳机接口的耳机引脚上设置电压检测点,当所述耳机插入耳机接口时,检测所述电压检测点的电压值,根据电压值识别所述耳机的类型,设置电压检测点的耳机引脚可以是左声道脚位、右声道脚位或麦克风脚位;
或者接收用户输入的耳机类型指示信息,当所述耳机插入所述耳机接口时,根据所述耳机类型指示信息确定所述耳机的类型;
或者接收耳机发送的耳机类型指示信息,根据所述耳机类型指示信息确定所述耳机的类型。
其中,当采用检测引脚的到地阻抗时,检测的耳机引脚可以是左声道脚位、右声道脚位或麦克风脚位。如果采用接收用户输入的耳机类型指示信息来确定耳机类型时,可以由用户在移动终端先输入耳机类型指示信息,再插入耳机来实现;也可以由用户先插入耳机,再由移动终端提示用户输入耳机类型指示信息来实现。
S202,若所述耳机是多声道耳机,将待处理的音频文件进行解码得到音频数字信号。
可选地,所述音频文件可以是移动终端上存储的文件,也可以是从网络获取的在线文件或其他设备向该移动终端传输中的文件。
对于现有的多声道音频文件如5.1声道音频文件、7.1声道音频文件等n.1声道文件,其中n大于或等于3,解码后将得到(n+1)路的音频数字信号,例如5.1声道音频文件解码后将得到6路音频数字信号,7.1声道音频文件解码后将得到8路音频数字信号。
S203,将所述音频数字信号打包成音频数据包。
可选地,在打包时,可以将音频数字信号打包成一个音频数据包进行一次传输即可,也可以根据传输速率或传输带宽的要求,将音频数字信号打包成1个以上的音频数据包进行相应次数的传输即可。
可选地,在将所述音频数字信号打包成音频数据包之前,还可以对所述音频数字信号进行杜比音效处理,然后将杜比音效处理后的音频数字信号,打包成音频数据包;或者
可选地,在将所述音频数字信号打包成音频数据包之前,对所述音频数字信号进行数字化影院系统音效处理;然后将数字化影音系统音效处理后的音频数字信号,打包成音频数据包。
S204,将所述音频数据包通过所述耳机接口向所述耳机传输。
可选地,所述耳机接口包括左声道脚位、右声道脚位、接地脚位或麦克风脚位;
所述将所述音频数据包通过所述耳机接口向所述耳机传输,包括:
通过所述耳机接口的左声道脚位或右声道脚位中的至少一个,向所述耳机传输所述音频数据包。当然,对于一些无需接地脚位或无需移动终端为其供电的多声道耳机,也可以用接地脚位或麦克风脚位来传输所述音频数据包。
例如,采用USB传输5.1声道的音频文件时,可以先将5.1声道音频文件解码为6路音频数字信号,再将6路音频数字信号打包得到音频数据包,然后利用USB进行传输,根据USB传输协议,需要同时使用耳机接口的4个脚位,具体地,可以由所述耳机接口的接地脚位用作USB的接地脚位,所述耳机接口的麦克风脚位用作USB的供电脚位,所述耳机接口的左、右声道脚位分别用作USB的两个数据传输脚位。
当然,采用除USB之外的其他接口传输时,占用的脚位数量也可能不同,功能也可能不同,只需要确保占用脚位的数量少于或等于4个即可。
可选地,所述方法还可以包括:
根据连接所述耳机接口的耳机的类型,输出切换指令;若所述耳机是多声道耳机,则连通移动终端的电源与所述耳机接口的麦克风脚位;若所述耳机不是多声道耳机,则连通语音处理器与所述耳机接口的麦克风脚位,所述语音处理器用于处理从麦克风脚位接收的声音信息。从而实现移动终端对耳机的供电或正常处理麦克风接收的信号的切换。
请参照图3,为本发明传输方法的第三实施例的流程示意图;在本实施例中,所述方法包括以下步骤:
S301,确定连接耳机接口的耳机的类型。
S302,若所述耳机不是多声道耳机,将待处理的音频文件进行解码得到对应路数的音频数字信号。
此处待处理的音频文件为单声道音频文件或双声道音频文件。
例如,单声道音频文件解码可得到1路音频数字信号,2.0声道音频文件解码可得到2路音频数字信号,2.1声道音频文件解码可得到3路音频数字信号,然后对解码得到的音频数字信号进行相应的数模转换即可以通过现有耳机接口的4个脚位中的对应脚位进行传输。
S303,将所述音频数字信号转换为音频模拟信号。
S304,通过所述耳机接口向所述耳机传输音频模拟信号。
为了配合耳机的类型,可以将数模转换后的音频模拟信号进行分路或者合并,以便耳机的每个声道都有声音。比如音频文件为单声道音频文件,耳机为 双声道耳机,则将模数转换后的一路音频模拟信号分路为两路音频模拟信号,发送到耳机的左右声道中;如果音频文件为2.0声道音频文件,耳机为单声道耳机,则可将数模转换后得到的两路音频模拟信号合并,传入单声道耳机中。也可以不分路或者合并,比如单声道音频文件经解码以及数模转换得到单声道音频模拟信号后,可以只传入双声道耳机的左声道或者右声道;2.0声道音频文件经解码以及数模转换得到2路音频模拟信号后,可以选择其中一路音频模拟信号传输到单声道耳机中。
请参照图4,为本发明传输方法的第四实施例的流程示意图;在本实施例中,所述方法包括以下步骤:
S401,接收移动终端通过所述耳机接口传输的音频数字信号。
S402,将所述音频数字信号转换为音频模拟信号。
可选地,多声道耳机的耳机插头与负责解包的功能模块之间的通信可使用USB或SPDIF来进行。
可选地,在将所述音频数字信号转换为音频模拟信号之前,可以对所述数字音频信号进行杜比音效处理,然后将杜比音效处理后的音频数字信号转化为音频模拟信号;或者
还可以对所述数字音频信号进行数字化影院系统音效处理,然后将数字化影院系统音效处理后的音频数字信号转化为音频模拟信号。
可选地,若所述移动终端发送的为带有所述音频数字信号的音频数据包,则所述方法还可以包括以下步骤:
接收移动终端发送的带有所述音频数字信号的音频数据包,
将所述音频数据包解包得到所述音频数字信号。然后对解包的所述音频数 字信号进行数模转换即可。
S403,播放所述音频模拟信号。
配合耳机的声道数,可以将多路的音频模拟信号进行分路或者合并,得到对应耳机的声道数的音频模拟信号进行播放。比如音频文件是5.1声道的音频文件,而耳机是4声道耳机,则多声道耳机可以将接收到5.1声道音频数据包解包并转换成6路音频模拟信号,将6路音频模拟信号中的4路音频模拟信号合并成2路音频模拟信号,与剩下的2路音频模拟信号分别通过4个声道播放出来;或者音频文件是5.1声道的音频文件,而耳机是8声道耳机,则多声道耳机可以将接收到5.1声道音频数据包解包并转换成6路音频模拟信号,将6路音频模拟信号中的2路音频模拟信号分路成4路音频模拟信号,与剩下的4路音频模拟信号分别通过8个声道播放出来。
可选地,当所述移动终端播放的为单声道音频文件或双声道音频文件时,所述移动终端可按照常规播放方式向多声道耳机输出单声道或双声道音频模拟信号,所述多声道耳机可接收所述移动终端通过所述耳机接口传输的单声道或双声道音频模拟信号;直接播放所述单声道或双声道音频模拟信号。
请参照图5,为本发明实施例移动终端的第一实施例的组成示意图,在本实施例中,所述移动终端设置有耳机孔,所述移动终端包括:
处理器110,数模转换器120,第一切换电路130和耳机接口140,
所述处理器110连接所述第一切换电路130,所述数模转换器120连接所述第一切换电路130,所述第一切换电路130连接所述耳机接口140;
所述处理器110,用于将音频文件进行解码得到音频数字信号,确定连接所述耳机接口的耳机的类型,根据所述耳机的类型生成第一切换指令,并将第 一切换指令传输给所述第一切换电路130;
若所述耳机是多声道耳机,所述第一切换指令携带用于指示所述第一切换电路130向所述耳机接口140传输音频数字信号的指示信息;
若所述耳机不是多声道耳机,所述第一切换指令携带用于指示所述第一切换电路130向所述耳机接口140传输音频模拟信号的指示信息;
所述数模转换器120,用于接收来自所述处理器110的音频数字信号,并将所述音频数字信号转换成所述音频模拟信号;
所述第一切换电路130,用于接收所述第一切换指令,并根据所述第一切换指令向所述耳机接口140传输所述音频数字信号或所述音频模拟信号;
所述耳机接口140,用于向所述耳机传输所述音频数字信号,或向所述耳机传输所述音频模拟信号。
可选地,所述数模转换器120连接所述处理器110以及所述第一切换电路130。
具体地,所述数模转换器120与处理器110电连接,并同时与所述第一切换电路130电连接,所述第一切换电路130再与所述耳机接口电连接,当连接所述耳机接口140的耳机为多声道耳机时,此时需要传输音频数字信号,所述处理器发送第一切换指令至所述第一切换电路130,并将解码得到的音频数字信号通过所述第一切换电路130发送至所述耳机接口140,而当连接所述耳机接口140的耳机不是多声道耳机时,所述处理器发送第一切换指令至所述第一切换电路130,并将解码得到的音频数字信号发给数模转换器120进行数模转换后得到音频模拟信号,所述第一切换电路130再从所述数模转换器120接收所述音频模拟信号并将其传输至所述耳机接口140。
其中,所述第一切换电路130可以包括一个控制端,所述处理器110可以通过独立的指令传输线路向所述第一切换电路130的控制端传输第一切换指令,以控制指示所述第一切换电路130的工作状态,当然,也可以将指令传输线路与所述处理器110和所述第一切换电路130之间的音频数字信号传输线路进行复用,确保所述处理器110对所述第一切换电路130的控制即可,此处不作任何限定。
可选地,所述处理器110还用于,将所述音频数字信号打包成音频数据包;将所述音频数据包经过第一切换电路130直接发送给所述耳机接口140;
所述耳机接口140具体用于,向所述耳机传输所述音频数据包。
对应地,在耳机侧,只需要将得到音频数据包进行解包和数模转换后即可播放。
待处理的音频文件可以是4.1声道音频文件、5.1声道音频文件、6.1声道音频文件、7.1声道音频文件或者后续可能出现的更多声道的音频文件,此处不作限定。
由于现有移动终端如手机或平板电脑的耳机接口最多只有4个脚位即左声道脚位、右声道脚位、接地脚位和麦克风脚位,且接地脚位一般用于接地而不用于传输数据,因此若是按照常规的多声道音频传输方式,即每个引脚传输一路音频信号,则耳机接口的4个脚位无法直接传输多声道音频文件解码后的多路音频数字信号,例如,5.1声道的音频文件解码后存在6路独立的音频信号,4个脚位无法满足传输需求,因此可以在移动终端额外配置切换电路或者直接改造移动终端的耳机接口,将切换电路与耳机接口的电路集成设置,然后将音频传输通路切换为所述切换电路对应数据接口与耳机接口的通路,且传输 的信号为音频数字信号,对于多路的音频数字信号,可以打包后传输。
可选地,在传输音频数据包到耳机接口时,可以使用通用串行总线(Universal Serial Bus,简称USB)或索尼/菲利普斯数字音频接口(Sony/Philips Digital Interface Format,简称SPDIF)来进行,当然,其他可用的接口同样可以采用,本发明不作任何限定。
例如,采用USB传输5.1声道的音频文件时,可以先将5.1声道音频文件解码为6路音频数字信号,再将6路音频数字信号打包得到音频数据包,可选地,打包的数量可以为1个或者更多个,然后利用USB进行传输,根据USB传输协议,需要同时使用2个数据传输脚位、1个接地脚位和1个供电脚位,因此需要同时占用耳机接口的4个脚位,当然,采用其他接口传输时,占用的脚位数量也可能不同,只需要确保占用脚位的数量少于或等于4个即可,然后,再将音频数据包由耳机接口传输至耳机,若打包的数量大于1个,则保持传输通路不变进行连续多次传输即可,这样,便实现了将多声道音频文件解码打包后的数据包传输到耳机侧的目的。
可选地,所述处理器110还用于在解码得到的所述音频数字信号之后,将所述音频数字信号打包成所述音频数据包之前,对所述音频数字信号进行杜比音效处理或者数字化影院系统音效处理。
可选地,所述第一切换电路130,用于向所述耳机接口的声道脚位传输所述音频数字信号或所述音频模拟信号,当然,还可以是音频数字信号打包的音频数据包。
具体地,所述耳机接口140可包括左声道脚位、右声道脚位、接地脚位或麦克风脚位;
所述耳机接口140,具体用于通过所述左声道脚位或右声道脚位中的至少一个,向所述耳机传输所述音频数字信号或所述音频模拟信号或所述音频数字信号打包得到的音频数据包。
例如,播放5.1声道音频文件时,可将解码的多路音频数字信号打包后通过所述耳机接口140的左声道脚位和右声道脚位向所述耳机传输;播放2.0声道音频文件时,可将解码后的两路音频数字信号转换为音频模拟信号后再经过所述耳机接口140的左声道脚位和右声道脚位向所述耳机传输;播放单声道音频文件时,可将解码后的一路音频数字信号转换为音频模拟信号后再经过所述耳机接口140的左声道脚位或右声道脚位向所述耳机传输。
当然,所述麦克风脚位也可以用于传输音频数字信号或音频模拟信号或音频数据包,过程类似,此处不再赘述。
可选地,在如图6所示的本发明移动终端的第二实施例中,所述移动终端还包括语音处理器150、电源160、第二切换电路170,
所述语音处理器150用于处理从所述耳机接口的麦克风脚位接收的声音信息;
所述处理器110,还用于根据连接所述耳机接口140的耳机的类型,输出第二切换指令给所述第二切换电路170;
若所述耳机是多声道耳机,所述第二切换指令指示所述第二切换电路170连通所述电源与所述耳机接口140的麦克风脚位;
若所述耳机不是多声道耳机,所述第二切换指令指示所述第二切换电路170连通所述语音处理器150与所述耳机接口140的麦克风脚位;
所述第二切换电路170连接所述耳机接口140的麦克风脚位,用于接收所 述第二切换指令,根据所述第二切换指令切换所述耳机接口140的麦克风脚位与所述语音处理器150或所述电源160连通。
其中,所述第一切换电路130和第二切换电路170可组合成为一个逻辑接口电路,逻辑接口电路与所述处理器110可通过通用串行总线,或通过索尼/菲利普斯数字音频接口通信。即所述逻辑接口电路可以包括USB或SPDIF的线路接口。
针对不同的耳机接口类型,处理器110可根据不同的方式来确定与所述耳机接口140连接的耳机的类型。
当所述耳机插入所述耳机接口时,检测所述耳机引脚的到地阻抗,根据所述到地阻抗识别所述耳机的类型;
或者在所述耳机接口的耳机引脚上设置电压检测点,当所述耳机插入耳机接口时,检测所述电压检测点的电压值,根据电压值识别所述耳机的类型,设置电压检测点的耳机引脚可以是左声道脚位、右声道脚位或麦克风脚位;
或者接收用户输入的耳机类型指示信息,当所述耳机插入所述耳机接口时,根据所述耳机类型指示信息确定所述耳机的类型;
或者接收耳机发送的耳机类型指示信息,根据所述耳机类型指示信息确定所述耳机的类型。
其中,当采用检测引脚的到地阻抗时,检测的耳机引脚可以是左声道脚位、右声道脚位或麦克风脚位。如果采用接收用户输入的耳机类型指示信息来确定耳机类型时,可以由用户在移动终端先输入耳机类型指示信息,再插入耳机来实现;也可以由用户先插入耳机,再由移动终端提示用户输入耳机类型指示信息来实现。
可选地,所述耳机接口140为有线连接接口,
所述移动终端还包括:
耳机识别电路,所述耳机识别电路连接所述处理器110以及耳机接口140,用于当所述耳机插入所述耳机接口140时,检测所述耳机接口140的引脚的到地阻抗或者所述耳机引脚上设置的电压检测点的电压值,
所述处理器110还用于:根据所述到地阻抗或者所述电压值,识别所述耳机的类型。
或者,所述耳机接口140为无线连接接口,
所述处理器110还用于:
接收所述耳机发送的耳机类型指示信息,根据所述耳机类型指示信息确定所述耳机的类型。
所述移动终端还包括:
输入接口,用于接收用户输入的耳机类型指示信息;
所述处理器110还用于:
获取所述耳机类型指示信息,根据所述耳机类型指示信息确定所述耳机的类型。
其中,所述处理器110在识别所述耳机接口的类型,发出第一切换指令后,将音频文件进行解码得到音频数字信号。
可选地,所述耳机接口为3.5mm/2.5mm的耳机孔,具有左右声道脚位,以及接地脚位,麦克风脚位,另请一并参见图12,为本发明移动终端的第一切换电路的电路示意图,所述第一切换电路130具体包括:
模拟开关,所述模拟开关的电源输入引脚接工作电压,接地引脚接地,切 换控制引脚接所述移动终端的处理器的第一信号输出引脚,用于接收所述处理器输出的第一切换指令;所述模拟开关的第一数据输出引脚的输出端接所述移动终端的耳机接口的左声道脚位,第二数据输出引脚的输出端接所述移动终端的耳机接口的右声道脚位,所述模拟开关还包括第一数据输入引脚、第二数据输入引脚、第三数据输入引脚及第四数据输入引脚,所述第一数据输入引脚的输入端和第二数据输入引脚的输入端用于接收所述音频数字信号或所述音频数据包,所述第三数据输入引脚和第四数据输入引脚的输入端用于接收音频模拟信号,若需要进行音频数字信号或音频数据包输出时,所述第一数据输出引脚的输入端和第二数据输出引脚的输入端分别接第一数据输入引脚的输出端和第二数据输入引脚的输出端,若需要进行音频模拟信号输出时,所述第一数据输出引脚的输入端和第二数据输出引脚的输入端分别接第三数据输入引脚的输出端和第四数据输入引脚的输出端。
可选地,所述耳机接口为3.5mm/2.5mm的耳机孔,另请一并参见图13,为本发明移动终端的第二切换电路的电路示意图,所述第二切换电路具体包括:
第一PMOS管和第二PMOS管,所述第一PMOS管的栅极接所述移动终端的耳机接口的麦克风脚位,所述第一PMOS管的源极接所述语音处理器,所述第一PMOS管的漏极接所述移动终端的处理器的第二信号输出引脚,所述第二信号输出引脚用于输出电平信号以控制所述第一PMOS管导通或关断;所述第二PMOS管的栅极接所述移动终端的耳机接口的麦克风脚位,所述第二PMOS管的源极接所述电源,所述第二PMOS管的漏极接所述移动终端的处理器的第三信号输出引脚,所述第三信号输出引脚用于输出电平信号以控制所述第二PMOS管导通或关断。
需要说明的是,以上移动终端的处理器在功能上可以分为解码模块、识别模块和控制模块,进一步地可以包括音效处理模块和打包模块,解码模块用于将音频文件进行解码得到音频数字信号,识别模块用于识别与所述耳机接口连接的耳机类型,控制模块用于根据所述耳机的类型生成第一切换指令,并将第一切换指令传输给所述第一切换电路以控制所述第一切换电路的工作状态,若所述耳机是多声道耳机,所述第一切换指令携带用于指示所述第一切换电路向所述耳机接口传输音频数字信号的指示信息;若所述耳机不是多声道耳机,所述第一切换指令携带用于指示所述第一切换电路向所述耳机接口传输音频模拟信号的指示信息;而音效处理器则用于在解码得到的所述音频数字信号之后,将所述音频数字信号打包成所述音频数据包之前,对所述音频数字信号进行杜比音效处理或者数字化影院系统音效处理;打包模块用于对音频数字信号进行打包。
在硬件实现上,解码模块、识别模块控制模块和音效处理模块可以集合设置,也可以独立存在,当然,数模转换器也可以和处理器集成设置或单独设置。
请参照图7,为本发明多声道耳机的第一实施例的组成示意图,在本实施例中,所述多声道耳机包括:
耳机插头210、数模转换器220、扬声器230,所述数模转换器220连接所述扬声器230,
所述耳机插头210,用于接收移动终端通过所述耳机接口传输的音频数字信号;
所述数模转换器220,用于将所述音频数字信号转换为音频模拟信号;
所述扬声器230,用于播放所述音频模拟信号。
可选地,在如图8所示的实施例中,所述多声道耳机还包括:
第三切换电路240,所述第三切换电路240连接所述耳机插头210,
所述耳机插头210还用于:
接收移动终端通过耳机接口发送的音频模拟信号,
所述第三切换电路240,用于连通所述耳机插头210和所述扬声器230,将所述音频模拟信号发送给所述扬声器230,或者连通所述耳机插头210和所述数模转换器220,将所述音频数字信号发送给所述数模转换器220。
其中,所述第三切换电路240可接收移动终端的指示来进行工作状态(即传输数据类型)的切换。
具体地,当移动终端确定与耳机接口连接的耳机为多声道耳机时,则发出第一切换指令控制第一切换电路,在发出第一切换指令的同时或之后的一定时间内,发送第三切换指令给所述第三切换电路240,以控制第三切换电路240的工作状态;当然,所述第三切换电路240也可以自己判断所述耳机插头210接收到的数据类型,所述数据类型可以是音频数字信号、音频模拟信号或音频数据包。
此外,还可以在所述多声道耳机上设置物理开关来对所述第三切换电路240的工作状态进行切换,此处不作任何限定。
可选地,在如图9所示的实施例中,所述多声道耳机还可以包括:
处理器250,所述处理器250连接在所述第三切换电路240和所述数模转换器220之间,
所述耳机插头210具体用于接收移动终端发送的带有所述音频数字信号 的音频数据包,
所述处理器250用于将所述音频数据包解包得到所述音频数字信号,将所述音频数字信号发送给所述数模转换器220。
所述处理器250还用于在将所述音频数字信号发送给所述数模转换器220之前,将所述音频数字信号进行杜比音效处理,或者数字化影院系统音效处理;将处理后的音频数字信号发送给数模转换器220。
这样,对于一些性能较低、不具备音效处理的移动终端,仍可以使得用户感受到多声道音频文件的多声道效果。
可选地,所述多声道耳机还包括:
第四切换电路260,麦克风270,供电电路280,
所述第四切换电路260连接所述耳机接口,用于连通所述耳机接口的麦克风脚位与所述麦克风270或所述供电电路280;
所述麦克风270用于接收声音信息;
所述供电电路280,用于向多声道耳机传输电量。
或者,所述多声道耳机还包括:
供电电路,电源,
所述供电电路连接所述电源,用于向多声道耳机传输电量;具体地可以是供电线路;或者是由电阻等电器元件组成的电路,可以实现分压或者升压。
所述电源用于提供电能。
其中,所述多声道耳机可包括一个电源管理模块,与所述供电电路连接,用于接收电源的电能,为多声道耳机的用电元件如扬声器等供电,所述多声道耳机也可内置可充电电池进行供电,电源管理模块通过供电电路接收电源的电 能,对充电电池的充放电进行管理;所述多声道耳机也可以由外部电源如移动终端内的电源进行供电,电源管理模块通过供电电路与移动终端内的电源连接即可。
可选地,由所述第三切换电路和第四切换电路可组合成为一个逻辑接口电路,所述逻辑接口电路与所述处理器可通过通用串行总线,或通过索尼/菲利普斯数字音频接口通信。
所述第三切换电路240可以默认地直接连通所述耳机插头210和所述多声道耳机的扬声器230,用于传输音频模拟信号;
当耳机插入移动终端,根据移动终端的指示或者根据自身判断,所述第三切换电路240切换耳机插头210和扬声器230之间的传输线路以便处理器和数模转换器处理音频数字信号或音频数据包。
所述耳机插头210用于接收所述移动终端通过所述耳机接口传输的音频模拟信号或者音频数字信号或音频数据包;
所述扬声器230用于播放音频模拟信号。
通过增加所述第三切换电路,在移动终端播放多声道音频文件时,将所述耳机插头210接收的音频数据包传输至所述处理器250、数模转换器250进行处理后再发送至所述扬声器230播放;而当移动终端播放单声道或双声道音频文件时,将所述耳机插头210接收到的单声道或双声道的音频模拟信号直接传输至所述扬声器230播放,这样便实现了多声道耳机对移动终端播放单声道或双声道音频文件的兼容。
需要说明的是,以上耳机的处理器在功能可以分为解包模块,进一步地可以包括音效处理模块,且解包模块和音效处理模块在硬件上可以集合设置,也 可以独立存在,例如,解包模块可以为一个单独的微控制单元(Micro Control Unit,简称MCU)存在,用于解包;音效处理模块以一个单独的数字信号处理器(Digital Signal Processor,简称DSP)存在,用于多声道的音效处理如杜比音效等;数模转换器也可以和处理器集成设置或单独设置。
请参照图10,为本发明实施例音频播放系统的组成示意图,在本实施例中,所述系统包括:
第一处理器110,第一数模转换器120,第一切换电路130和耳机接口140,
所述第一切换电路130连接所述耳机接口140;
所述第一处理器110,用于将音频文件进行解码得到音频数字信号,确定连接所述耳机接口140的耳机的类型,根据所述耳机的类型生成第一切换指令,并将第一切换指令传输给所述第一切换电路130;
若所述耳机是多声道耳机,所述第一切换指令携带用于指示所述第一切换电路130向所述耳机接口140传输音频数字信号的指示信息;
若所述耳机不是多声道耳机,所述第一切换指令携带用于指示所述第一切换电路130向所述耳机接口140传输音频模拟信号的指示信息;
所述第一数模转换器120,用于接收来自所述第一处理器110的音频数字信号,并将所述音频数字信号转换成第一音频模拟信号;
所述第一切换电路130,用于接收所述第一切换指令,并根据所述第一切换指令向所述耳机接口140传输所述音频数字信号或所述第一音频模拟信号;
所述耳机接口140,用于向所述耳机传输所述音频数字信号,或向所述耳机传输所述第一音频模拟信号。
所述多声道耳机包括:
耳机插头210、第二数模转换器220、扬声器230,所述第二数模转换器220连接所述扬声器230,
所述耳机插头210,用于接收移动终端通过所述耳机接口140传输的音频数字信号;
所述第二数模转换器220,用于将所述音频数字信号转换为第二音频模拟信号;
所述扬声器230,用于播放所述第二音频模拟信号。
可选地,所述第一数模转换器120连接所述第一处理器110以及所述第一切换电路130;
所述多声道耳机还包括:
第三切换电路240,所述第三切换电路240连接所述耳机插头210,
所述耳机插头210还用于接收移动终端通过耳机接口140发送的音频模拟信号,
所述第三切换电路240,用于连通所述耳机插头210和所述扬声器230,将所述第一音频模拟信号发送给所述扬声器230,或者连通所述耳机插头210和所述第二数模转换器220,将所述音频数字信号发送给所述第二数模转换器220。
可选地,所述第一处理器110还用于,
将所述音频数字信号打包成音频数据包;
将所述音频数据包经过第一切换电路130直接发送给所述耳机接口140;
所述耳机接口140具体用于,
向所述多声道耳机传输所述音频数据包;
所述多声道耳机还包括:
第二处理器250,所述第二处理器250连接在所述第三切换电路240和所述第二数模转换器220之间,
所述耳机插头210具体用于接收移动终端发送的带有所述音频数字信号的音频数据包,
所述第二处理器250用于将所述音频数据包解包得到所述音频数字信号,将所述音频数字信号发送给所述第二数模转换器220。
可选地,所述第一处理器110还用于:
在解码得到的所述音频数字信号之后,将所述音频数字信号打包成所述音频数据包之前,对所述音频数字信号进行杜比音效处理或者数字化影院系统音效处理;或者
所述第二处理器250还用于:
在将所述音频数字信号发送给所述第二数模转换器220之前,将所述音频数字信号进行杜比音效处理,或者数字化影院系统音效处理;将处理后的音频数字信号发送给所述第二数模转换器220。
可选地,所述第一切换电路130,用于向所述耳机接140口的声道脚位传输所述音频数字信号或所述音频模拟信号。
可选地,所述移动终端还包括:
语音处理器150、电源160、第二切换电路170,
所述第一处理器110,还用于根据连接所述耳机接口140的耳机的类型,输出第二切换指令给所述第二切换电路170;
若所述耳机是多声道耳机,所述第二切换指令指示所述第二切换电路170 连通所述电源160与所述耳机接口140的麦克风脚位;
若所述耳机不是多声道耳机,所述第二切换指令指示所述第二切换电路170连通所述语音处理器150与所述耳机接口140的麦克风脚位;
所述第二切换电路170连接所述耳机接口140的麦克风脚位,用于接收所述第二切换指令,根据所述第二切换指令切换所述耳机接口140的麦克风脚位与所述语音处理器150或所述电源160连通;
所述多声道耳机还包括:
第四切换电路260,麦克风270,供电电路280,
所述第四切换电路260连接所述耳机插头210,用于连通所述耳机插头210的麦克风脚位与所述麦克风270或所述供电电路280;
所述麦克风270用于接收声音信息;
所述供电电路280,用于向多声道耳机传输电量。
或者,所述多声道耳机还包括:供电电路,电源,
所述供电电路连接所述电源,用于向多声道耳机传输电量;
所述电源用于提供电能。
其中,所述耳机接口140为有线连接接口,
所述移动终端还包括:
耳机识别电路,所述耳机识别电路连接所述第一处理器110,用于当耳机插入所述耳机接口140时,检测所述耳机接口140的引脚的到地阻抗或者所述耳机引脚上设置的电压检测点的电压值,
所述第一处理器110还用于:
根据所述到地阻抗或者所述电压值,识别插入所述耳机接口140的耳机的 类型。
或者,所述耳机接口140为无线连接接口,
所述第一处理器110还用于:
接收与所述耳机接口140连接的耳机发送的耳机类型指示信息,根据所述耳机类型指示信息确定所述耳机的类型。
或者,所述移动终端还包括:
输入接口,用于接收用户输入的耳机类型指示信息;
所述第一处理器110还用于:
获取所述耳机类型指示信息,根据所述耳机类型指示信息确定与所述耳机接口140连接的耳机的类型。
所述第一处理器110在识别所述耳机接口的类型,发出第一切换指令后,将音频文件进行解码得到音频数字信号。
所述耳机接口140为3.5mm/2.5mm的耳机孔,所述耳机孔包括左声道脚位、右声道脚位,所述第一切换电路110可具体包括:
模拟开关,所述模拟开关的电源输入引脚接工作电压,接地引脚接地,切换控制引脚接所述移动终端的第一处理器110的第一信号输出引脚,用于接收所述第一处理器110输出的第一切换指令;所述模拟开关的第一数据输出引脚的输出端接所述移动终端的耳机接口140的左声道脚位,第二数据输出引脚的输出端接所述移动终端的耳机接口140的右声道脚位,所述模拟开关还包括第一数据输入引脚、第二数据输入引脚、第三数据输入引脚及第四数据输入引脚,所述第一数据输入引脚的输入端和第二数据输入引脚的输入端用于接收所述音频数字信号或所述音频数据包,所述第三数据输入引脚和第四数据输入引脚 的输入端用于接收音频模拟信号,若需要进行音频数字信号或音频数据包输出时,所述第一数据输出引脚的输入端和第二数据输出引脚的输入端分别接第一数据输入引脚的输出端和第二数据输入引脚的输出端,若需要进行音频模拟信号输出时,所述第一数据输出引脚的输入端和第二数据输出引脚的输入端分别接第三数据输入引脚的输出端和第四数据输入引脚的输出端。
所述耳机接口140为3.5mm/2.5mm的耳机孔,所述第二切换电路170可具体包括:
第一PMOS管和第二PMOS管,所述第一PMOS管的栅极接所述移动终端的耳机接口140的麦克风脚位,所述第一PMOS管的源极接所述语音处理器150,所述第一PMOS管的漏极接所述移动终端的第一处理器110的第二信号输出引脚,所述第二信号输出引脚用于输出电平信号以控制所述第一PMOS管导通或关断;所述第二PMOS管的栅极接所述移动终端的耳机接口140的麦克风脚位,所述第二PMOS管的源极接所述电源160,所述第二PMOS管的漏极接所述移动终端的第一处理器110的第三信号输出引脚,所述第三信号输出引脚用于输出电平信号以控制所述第二PMOS管导通或关断。
当多声道耳机插入耳机接口140时,第一处理器110从用户输入的耳机类型指示信息或检测到的耳机引脚的对地阻抗或电压值确定插入的耳机为多声道耳机,移动终端发送第一切换指令指示第一切换电路130切换传输通路,第一处理器110对音频文件解码后打包得到音频数据包,通过USB或SPDIF传输至耳机接口140,由耳机接口140传输至耳机插头210,耳机插头210再将音频数据包发送给多声道耳机的第二处理器250进行解包得到多路的音频数字信号,再由第二处理器250对音频数字信号进行音效处理输出至多声道耳机 的第二数模转换器220进行数模转换得到音频模拟信号,由扬声器230进行播放。当然,如果移动终端的第一处理器110具备音效处理功能,也可以对解码后的音频文件进行音效处理后打包传输,第二处理器250可以直接将解包的音频数字信号输出至多声道耳机的第二数模转换器220。
而当插入的耳机不是多声道耳机时,第一处理器110解码后的音频数字信号可以直接输出至移动终端内的第一数模转换器120进行数模转换后将音频模拟信号输出至普通耳机播放即可。
上述音效处理的过程可以置在移动终端中进行,也可以在多声道耳机中进行。
需要说明的是,此处的电源可以是通用串行总线的5V供电电源,也可以是其他线路接口的供电电源。
请一并参照图11、12和13,其中,图11是本发明实施例中移动终端的耳机接口的电路示意图,为3.5mm或2.5mm耳机孔。图12是本发明移动终端的第一切换电路的电路示意图。图13是本发明移动终端的第二切换电路的电路示意图。如图11所示,J1是耳机座,其中空部分即为耳机孔,第5脚为接地脚位,第1脚为左声道脚位,通过电阻R2接模数转换(ADC)网络,第2脚悬空,第3脚通过电阻R1接地,同时接移动终端的处理器,用于检测是否有耳机插入。第4脚为麦克风脚位,接如图13所示的第一PMOS管Q1和第二PMOS管Q2的栅极即D3脚,J1的第6脚为右声道脚位。如图13所示,所述第二切换电路包括第一PMOS管Q1和第二PMOS管Q2,所述第一PMOS管Q1的栅极接所述移动终端的耳机接口的麦克风脚位,所述第一PMOS管Q1的源极接所述语音处理器,所述第一PMOS管Q1的漏极接所述移动终端 的处理器的第二信号输出引脚,所述第二信号输出引脚用于输出电平信号以控制所述第一PMOS管导通或关断;所述第二PMOS管Q1的栅极接所述移动终端的耳机接口的麦克风脚位,所述第二PMOS管的源极接所述电源,此处以通用串行总线为例则接通用串行总线的5V电压源,所述第二PMOS管的漏极接所述移动终端的处理器的第三信号输出引脚。如图12所示,所述第一切换电路包括模拟开关U1,所述模拟开关U1的电源输入引脚即第9脚接工作电压,接地引脚即第4脚接地,使能引脚即第8脚接所述移动终端的处理器的第四信号输出引脚,可通过电阻R5接地,切换控制引脚(传输音频模拟信号和音频数字信号的切换引脚)即第10脚接所述移动终端的处理器的第一信号输出引脚,第一数据输出引脚即第3脚的输出端接所述移动终端的耳机孔的左声道脚位,第二数据输出引脚即第5脚的输出端接所述移动终端的耳机孔的右声道脚位,所述模拟开关U1还包括第一数据输入引脚即第2脚、第二数据输入引脚即第6脚、第三数据输入引脚即第7脚及第四数据输入引脚即第1脚,所述第一数据输入引脚的输入端和第二数据输入引脚的输入端用于接收音频数字信号或音频数据包,所述第三数据输入引脚和第四数据输入引脚的输入端用于接收音频模拟信号,若需要进行音频数字信号或音频数据包输出时,此处以利用通用串行总线进行音频数字信号打包的音频数据包输出为例,所述第一数据输出引脚的输入端和第二数据输出引脚的输入端分别接第一数据输入引脚的输出端和第二数据输入引脚的输出端,若需要进行音频模拟信号输出时,所述第一数据输出引脚的输入端和第二数据输出引脚的输入端分别接第三数据输入引脚的输出端和第四数据输入引脚的输出端。
请再一并参见图11、12和13,耳机未插入时,J1的第3脚和第4脚短接 在一起,Q1的D3脚为低电平,Q1的G1脚即GPIO_MIC_EN为低电平,Q1导通,Q1的S2脚位接语音处理器,当Q1导通时,移动终端的处理器检测到J1的第3脚即HS_DET为高电平,表示耳机不在位。当耳机插入时,J1的第3脚和第4脚分开,处理器检测到J1的第3脚即HS_DET信号被电阻R1下拉为低电平,表示耳机在位。R2右侧的ADC网络连接至数模转换器或者普通的通用输入/输出(General Purpose Input Output,简称GPIO)。当使用数模转换器方案时,数模转换器用于检测ADC网络的到地阻抗,通过检测阻抗来识别是普通耳机如单声道耳机或双声道耳机还是多声道耳机。普通耳机的L声道到地电阻是16欧姆或者32欧姆,而如图12所示,U1是模拟开关,其第3脚接图11中J1的第1脚即耳机孔的左声道脚位,U1的第5脚接J1的第6脚即耳机孔的右声道脚位。利用USB或SPDIF通路传输的多声道耳机的D-脚位即U1的第5脚在不上电之前的到地阻抗是无穷大。当使用GPIO来检测时,首先配置GPIO为上拉,普通耳机L声道16欧姆电阻下拉到地,ADC网络变成低电平。多声道耳机D-脚位即U1的第5脚相当于悬空,ADC网络保持为高电平。即ADC网络低电平表示普通立体声耳机,ADC网络高电平表示多声道耳机。识别成功后把该GPIO配置为no pull状态,使其不影响后面电路的正常工作。
当移动终端的处理器检测插入耳机孔的为普通耳机时,通过第一信号输出引脚控制Q1的G1脚GPIO_MIC_EN为低电平,Q1导通,J1的麦克风脚位通过Q1的D3、S2接语音处理器;同时处理器通过第二信号输出引脚控制Q2的G1脚GPIO_USB_5V_EN为高电平,Q2断开;处理器再同时通过第三信号输出引脚控制U1的第8脚GPIO_SWITCH_EN为低电平,U1使能。并通过 第四信号输出引脚控制U1的第10脚GPIO_SWITCH_SW为低电平,使得U1的第1、7脚分别和第3、5脚导通,此时,耳机孔的接地脚正常使用,麦克风脚位连接至语音处理器,音频模拟信号传输通路导通,开始传输音频模拟信号。
当检测到插入耳机孔的耳机为多声道耳机时,处理器通过第一信号输出引脚控制Q1的G1脚GPIO_MIC_EN为高电平,Q1断开,同时处理器通过第二信号输出引脚控制Q2的G1脚GPIO_USB_5V_EN为低电平,Q2导通,USB对外供电5V打开,通过耳机孔的麦克风脚位为多声道耳机供电;处理器同时通过第三信号控制引脚控制U1的第8脚GPIO_SWITCH_EN为低电平,U1使能,并通过第四信号控制引脚控制U1的第10脚GPIO_SWITCH_SW为高电平,使得U1的第2、6脚分别和第3、5脚导通,此时,耳机孔的接地脚正常使用,麦克风脚位输入USB的5伏电压为多声道耳机供电,音频数字信号或音频数据包传输通路导通,开始传输音频数字信号或音频数据包即进行USB的数据传输。这样便实现了不同类型音频文件的传输和播放,以及对不同类型耳机的兼容。其中,移动终端的处理器的第一至第四信号输出引脚可以为同一个引脚,也可以为不同的引脚,具体在配置时,可根据控制的需要在不同支路上配置非门以实现不同支路上分别输出高低电平;也可以根据控制的需要将电平相同的支路共用一个输出引脚;或者直接输出的4路信号对应4个输出引脚,此处不作任何限定。
需要说明的是,本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
通过上述实施例的描述,本发明具有以下优点:
通过确定插入耳机接口的耳机类型,可以根据耳机的类型采用不同的传输通路以传输不同类型的信号,对于多声道耳机传输音频数字信号,对于非多声道耳机,传输音频模拟信号,从而实现移动终端可以兼容不同类型的耳机,并配合不同类型耳机传输不同类型音频文件的效果。可实现多声道音频文件的正常播放,使得多声道耳机端输出多声道的环绕立体声。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,简称ROM)或随机存储记忆体(Random Access Memory,简称RAM)等。
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。

Claims (40)

  1. 一种传输方法,用于设置有耳机接口的移动终端,其特征在于,所述方法包括:
    确定连接所述耳机接口的耳机的类型;
    若所述耳机是多声道耳机,则通过所述耳机接口,向所述耳机传输音频数字信号;
    若所述耳机不是多声道耳机,通过所述耳机接口,向所述耳机传输音频模拟信号。
  2. 如权利要求1所述的方法,其特征在于,还包括:
    将待处理的音频文件进行解码得到音频数字信号;
    所述向所述耳机传输音频数字信号具体包括:
    将所述音频数字信号打包成音频数据包;
    将所述音频数据包通过所述耳机接口向所述耳机传输。
  3. 如权利要求2所述的方法,其特征在于,在将所述音频数字信号打包成音频数据包之前,还包括:对所述音频数字信号进行杜比音效处理或者数字化影院系统音效处理;
    所述将所述音频数字信号打包成音频数据包,包括:将进行杜比音效处理或者数字化影院系统音效处理后的音频数字信号,打包成音频数据包。
  4. 如权利要求1或3所述的方法,其特征在于,通过所述耳机接口,向所 述耳机传输音频数字信号或音频模拟信号时,通过所述耳机接口的声道脚位进行传输。
  5. 如权利要求1至4任一项所述的方法,其特征在于,所述确定连接所述耳机接口的耳机的类型,包括:
    当所述耳机插入所述耳机接口时,检测所述耳机引脚的到地阻抗或者所述耳机引脚上设置的电压检测点的电压值,根据所述到地阻抗或电压值识别所述耳机的类型;或
    接收用户输入或所述耳机发送的耳机类型指示信息,根据所述耳机类型指示信息确定所述耳机的类型。
  6. 一种传输方法,用于插入移动终端的耳机接口的多声道耳机,其特征在于,所述方法包括:
    接收所述移动终端通过所述耳机接口传输的音频数字信号;
    将所述音频数字信号转换为音频模拟信号;
    播放音频模拟信号。
  7. 如权利要求6所述的方法,其特征在于,还包括:
    接收移动终端发送的带有所述音频数字信号的音频数据包,
    将所述音频数据包解包得到所述音频数字信号,将所述音频数字信号转换为音频模拟信号;
    播放音频模拟信号。
  8. 如权利要求7所述的方法,其特征在于,所述将所述音频数字信号转换为音频模拟信号之前,还包括:对所述音频数字信号进行杜比音效处理或者数字化影院系统音效处理;
    所述将所述音频数字信号转换为音频模拟信号,包括:将杜比音效处理或者数字化影院系统音效处理后的音频数字信号转化为音频模拟信号。
  9. 如权利要求6-8任一项所述的方法,其特征在于,还包括:
    接收所述移动终端通过耳机接口发送的音频模拟信号;
    播放音频模拟信号。
  10. 一种移动终端,其特征在于,所述移动终端包括:
    处理器,数模转换器,第一切换电路和耳机接口,
    所述第一切换电路连接所述耳机接口;
    所述处理器,用于将音频文件进行解码得到音频数字信号,确定连接所述耳机接口的耳机的类型,根据所述耳机的类型生成第一切换指令,并将第一切换指令传输给所述第一切换电路;若所述耳机是多声道耳机,所述第一切换指令携带用于指示所述第一切换电路向所述耳机接口传输音频数字信号的指示信息;若所述耳机不是多声道耳机,所述第一切换指令携带用于指示所述第一切换电路向所述耳机接口传输音频模拟信号的指示信息;
    所述数模转换器,用于接收来自所述处理器的音频数字信号,并将所述音频数字信号转换成所述音频模拟信号;
    所述第一切换电路,用于接收所述第一切换指令,并根据所述第一切换指令向所述耳机接口传输所述音频数字信号或所述音频模拟信号;
    所述耳机接口,用于向所述耳机传输所述音频数字信号,或向所述耳机传输所述音频模拟信号。
  11. 如权利要求10所述的移动终端,其特征在于,所述数模转换器连接所述处理器以及所述第一切换电路。
  12. 如权利要求11所述的移动终端,其特征在于,所述处理器还用于,将所述音频数字信号打包成音频数据包;将所述音频数据包经过第一切换电路直接发送给所述耳机接口;
    所述耳机接口具体用于,向所述耳机传输所述音频数据包。
  13. 如权利要求12所述的移动终端,其特征在于,所述处理器还用于在解码得到的所述音频数字信号之后,将所述音频数字信号打包成所述音频数据包之前,对所述音频数字信号进行杜比音效处理或者数字化影院系统音效处理。
  14. 如权利要求10-13任一项所述的移动终端,其特征在于,所述第一切换电路,用于向所述耳机接口的声道脚位传输所述音频数字信号或所述音频模拟信号。
  15. 如权利要求10-14任一项所述的移动终端,其特征在于,所述移动终 端还包括语音处理器、电源、第二切换电路,
    所述语音处理器用于处理从所述耳机接口的麦克风脚位接收的声音信息;
    所述处理器,还用于根据连接所述耳机接口的耳机的类型,输出第二切换指令给所述第二切换电路;若所述耳机是多声道耳机,所述第二切换指令指示所述第二切换电路连通所述电源与所述耳机接口的麦克风脚位;若所述耳机不是多声道耳机,所述第二切换指令指示所述第二切换电路连通所述语音处理器与所述耳机接口的麦克风脚位;
    所述第二切换电路连接所述耳机接口的麦克风脚位,用于接收所述第二切换指令,根据所述第二切换指令切换所述耳机接口的麦克风脚位与所述语音处理器或所述电源连通。
  16. 如权利要求10-15任一项所述的移动终端,其特征在于,所述耳机接口为有线连接接口,
    所述移动终端还包括耳机识别电路,所述耳机识别电路连接所述处理器,用于当所述耳机插入所述耳机接口时,检测所述耳机接口的引脚的到地阻抗或者所述耳机引脚上设置的电压检测点的电压值,
    所述处理器还用于:根据所述地阻抗或者所述电压值,识别所述耳机的类型。
  17. 如权利要求10-15任一项所述的移动终端,其特征在于,所述耳机接口为无线连接接口,
    所述处理器还用于:接收所述耳机发送的耳机类型指示信息,根据所述耳 机类型指示信息确定所述耳机的类型。
  18. 如权利要求10-15任一项所述的移动终端,其特征在于,所述移动终端还包括输入接口,用于接收用户输入的耳机类型指示信息;
    所述处理器还用于:获取所述耳机类型指示信息,根据所述耳机类型指示信息确定所述耳机的类型。
  19. 如权利要求10-18任一项所述的移动终端,其特征在于,所述处理器在识别所述耳机接口的类型,发出第一切换指令后,将音频文件进行解码得到音频数字信号。
  20. 所述权利要求10-19任一项所述的移动终端,其特征在于,所述耳机接口为3.5mm/2.5mm的耳机孔,所述耳机孔包括左声道脚位、右声道脚位,所述第一切换电路具体包括:
    模拟开关,所述模拟开关的电源输入引脚接工作电压,接地引脚接地,切换控制引脚接所述移动终端的处理器的第一信号输出引脚,用于接收所述处理器输出的第一切换指令;所述模拟开关的第一数据输出引脚的输出端接所述移动终端的耳机接口的左声道脚位,第二数据输出引脚的输出端接所述移动终端的耳机接口的右声道脚位,所述模拟开关还包括第一数据输入引脚、第二数据输入引脚、第三数据输入引脚及第四数据输入引脚,所述第一数据输入引脚的输入端和第二数据输入引脚的输入端用于接收所述音频数字信号或所述音频数据包,所述第三数据输入引脚和第四数据输入引脚的输入端用于接收音频模 拟信号,若需要进行音频数字信号或音频数据包输出时,所述第一数据输出引脚的输入端和第二数据输出引脚的输入端分别接第一数据输入引脚的输出端和第二数据输入引脚的输出端,若需要进行音频模拟信号输出时,所述第一数据输出引脚的输入端和第二数据输出引脚的输入端分别接第三数据输入引脚的输出端和第四数据输入引脚的输出端。
  21. 所述权利要求15-19任一项所述的移动终端,其特征在于,所述耳机接口为3.5mm/2.5mm的耳机孔,所述第二切换电路具体包括:
    第一PMOS管和第二PMOS管,所述第一PMOS管的栅极接所述移动终端的耳机接口的麦克风脚位,所述第一PMOS管的源极接所述语音处理器,所述第一PMOS管的漏极接所述移动终端的处理器的第二信号输出引脚,所述第二信号输出引脚用于输出电平信号以控制所述第一PMOS管导通或关断;所述第二PMOS管的栅极接所述移动终端的耳机接口的麦克风脚位,所述第二PMOS管的源极接所述电源,所述第二PMOS管的漏极接所述移动终端的处理器的第三信号输出引脚,所述第三信号输出引脚用于输出电平信号以控制所述第二PMOS管导通或关断。
  22. 一种多声道耳机,其特征在于,所述多声道耳机包括:耳机插头、数模转换器、扬声器,所述数模转换器连接所述扬声器,
    所述耳机插头,用于接收移动终端通过所述耳机接口传输的音频数字信号;
    所述数模转换器,用于将所述音频数字信号转换为音频模拟信号;
    所述扬声器,用于播放所述音频模拟信号。
  23. 如权利要求22所述的多声道耳机,其特征在于,还包括:第三切换电路,所述第三切换电路连接所述耳机插头,
    所述耳机插头还用于接收移动终端通过耳机接口发送的音频模拟信号,
    所述第三切换电路,用于连通所述耳机插头和所述扬声器,将所述音频模拟信号发送给所述扬声器,或者连通所述耳机插头和所述数模转换器,将所述音频数字信号发送给所述数模转换器。
  24. 如权利要求23所述的多声道耳机,其特征在于,所述多声道耳机还包括:处理器,所述处理器连接在所述第三切换电路和所述数模转换器之间,
    所述耳机插头具体用于接收移动终端发送的带有所述音频数字信号的音频数据包,
    所述处理器用于将所述音频数据包解包得到所述音频数字信号,将所述音频数字信号发送给所述数模转换器。
  25. 如权利要求23所述的多声道耳机,其特征在于,
    所述处理器还用于在将所述音频数字信号发送给所述数模转换器之前,将所述音频数字信号进行杜比音效处理,或者数字化影院系统音效处理;将处理后的音频数字信号发送给数模转换器。
  26. 如权利要求22-25所述的多声道耳机,其特征在于,所述多声道耳机还包括:第四切换电路,麦克风,供电电路,
    所述第四切换电路连接所述耳机插头,用于连通所述耳机插头的麦克风脚位与所述麦克风或所述供电电路;
    所述麦克风用于接收声音信息;
    所述供电电路,用于向多声道耳机传输电量。
  27. 如权利要求22-25所述的多声道耳机,其特征在于,所述多声道耳机还包括:供电电路,电源,
    所述供电电路连接所述电源,用于向多声道耳机传输电量;
    所述电源用于提供电能。
  28. 一种音频播放系统,其特征在于,包括移动终端和多声道耳机,
    第一处理器,第一数模转换器,第一切换电路和耳机接口,
    所述第一切换电路连接所述耳机接口;
    所述第一处理器,用于将音频文件进行解码得到音频数字信号,确定连接所述耳机接口的耳机的类型,根据所述耳机的类型生成第一切换指令,并将第一切换指令传输给所述第一切换电路;若所述耳机是多声道耳机,所述第一切换指令携带用于指示所述第一切换电路向所述耳机接口传输音频数字信号的指示信息;若所述耳机不是多声道耳机,所述第一切换指令携带用于指示所述第一切换电路向所述耳机接口传输音频模拟信号的指示信息;
    所述第一数模转换器,用于接收来自所述第一处理器的音频数字信号,并将所述音频数字信号转换成第一音频模拟信号;
    所述第一切换电路,用于接收所述第一切换指令,并根据所述第一切换指 令向所述耳机接口传输所述音频数字信号或所述第一音频模拟信号;
    所述耳机接口,用于向所述耳机传输所述音频数字信号,或向所述耳机传输所述第一音频模拟信号。
    所述多声道耳机包括:耳机插头、第二数模转换器、扬声器,所述第二数模转换器连接所述扬声器,
    所述耳机插头,用于接收移动终端通过所述耳机接口传输的音频数字信号;
    所述第二数模转换器,用于将所述音频数字信号转换为第二音频模拟信号;
    所述扬声器,用于播放所述第二音频模拟信号。
  29. 如权利要求28所述的音频播放系统,其特征在于,所述第一数模转换器连接所述第一处理器以及所述第一切换电路;
    所述多声道耳机还包括:第三切换电路,所述第三切换电路连接所述耳机插头,
    所述耳机插头还用于接收移动终端通过耳机接口发送的音频模拟信号,
    所述第三切换电路,用于连通所述耳机插头和所述扬声器,将所述第一音频模拟信号发送给所述扬声器,或者连通所述耳机插头和所述第二数模转换器,将所述音频数字信号发送给所述第二数模转换器。
  30. 如权利要求29所述的音频播放系统,其特征在于,所述第一处理器还用于,将所述音频数字信号打包成音频数据包;将所述音频数据包经过第一切换电路直接发送给所述耳机接口;
    所述耳机接口具体用于,向所述多声道耳机传输所述音频数据包;
    所述多声道耳机还包括:第二处理器,所述第二处理器连接在所述第三切换电路和所述第二数模转换器之间,
    所述耳机插头具体用于接收移动终端发送的带有所述音频数字信号的音频数据包,
    所述第二处理器用于将所述音频数据包解包得到所述音频数字信号,将所述音频数字信号发送给所述第二数模转换器。
  31. 如权利要求30所述的音频播放系统,其特征在于,
    所述第一处理器还用于在解码得到的所述音频数字信号之后,将所述音频数字信号打包成所述音频数据包之前,对所述音频数字信号进行杜比音效处理或者数字化影院系统音效处理;或者
    所述第二处理器还用于在将所述音频数字信号发送给所述第二数模转换器之前,将所述音频数字信号进行杜比音效处理,或者数字化影院系统音效处理;将处理后的音频数字信号发送给所述第二数模转换器。
  32. 如权利要求28-31所述的音频播放系统,其特征在于,
    所述第一切换电路,用于向所述耳机接口的声道脚位传输所述音频数字信号或所述音频模拟信号。
  33. 如权利要求28-32所述的音频播放系统,其特征在于,
    所述移动终端还包括语音处理器、电源、第二切换电路,
    所述语音处理器用于处理从所述耳机接口的麦克风脚位接收的声音信息;
    所述第一处理器,还用于根据连接所述耳机接口的耳机的类型,输出第二切换指令给所述第二切换电路;若所述耳机是多声道耳机,所述第二切换指令指示所述第二切换电路连通所述电源与所述耳机接口的麦克风脚位;若所述耳机不是多声道耳机,所述第二切换指令指示所述第二切换电路连通所述语音处理器与所述耳机接口的麦克风脚位;
    所述第二切换电路连接所述耳机接口的麦克风脚位,用于接收所述第二切换指令,根据所述第二切换指令切换所述耳机接口的麦克风脚位与所述语音处理器或所述电源连通;
    所述多声道耳机还包括:第四切换电路,麦克风,供电电路,
    所述第四切换电路连接所述耳机接口,用于连通所述耳机接口的麦克风脚位与所述麦克风或所述供电电路;
    所述麦克风用于接收声音信息;
    所述供电电路,用于向多声道耳机传输电量。
  34. 如权利要求28-32所述的音频播放系统,其特征在于,所述多声道耳机还包括:供电电路,电源,
    所述供电电路连接所述电源,用于向多声道耳机传输电量;
    所述电源用于提供电能。
  35. 如权利要求28-34所述的音频播放系统,其特征在于,
    所述耳机接口为有线连接接口,
    所述移动终端还包括耳机识别电路,所述耳机识别电路连接所述第一处理 器,用于当耳机插入所述耳机接口时,检测所述耳机接口的引脚的到地阻抗或者所述耳机引脚上设置的电压检测点的电压值,
    所述第一处理器还用于:根据所述到地阻抗或者所述电压值,识别插入所述耳机接口的耳机的类型。
  36. 如权利要求28-34所述的音频播放系统,其特征在于,
    所述耳机接口为无线连接接口,
    所述第一处理器还用于:接收与所述耳机接口连接的耳机发送的耳机类型指示信息,根据所述耳机类型指示信息确定所述耳机的类型。
  37. 如权利要求28-34所述的音频播放系统,其特征在于,所述移动终端还包括输入接口,用于接收用户输入的耳机类型指示信息;
    所述第一处理器还用于:获取所述耳机类型指示信息,根据所述耳机类型指示信息确定与所述耳机接口连接的耳机的类型。
  38. 如权利要求28-37所述的音频播放系统,其特征在于,所述第一处理器在识别所述耳机接口的类型,发出第一切换指令后,将音频文件进行解码得到音频数字信号。
  39. 如权利要求28-38所述的音频播放系统,其特征在于,所述耳机接口为3.5mm/2.5mm的耳机孔,所述耳机孔包括左声道脚位、右声道脚位,所述第一切换电路具体包括:
    模拟开关,所述模拟开关的电源输入引脚接工作电压,接地引脚接地,切换控制引脚接所述移动终端的第一处理器的第一信号输出引脚,用于接收所述第一处理器输出的第一切换指令;所述模拟开关的第一数据输出引脚的输出端接所述移动终端的耳机接口的左声道脚位,第二数据输出引脚的输出端接所述移动终端的耳机接口的右声道脚位,所述模拟开关还包括第一数据输入引脚、第二数据输入引脚、第三数据输入引脚及第四数据输入引脚,所述第一数据输入引脚的输入端和第二数据输入引脚的输入端用于接收所述音频数字信号或所述音频数据包,所述第三数据输入引脚和第四数据输入引脚的输入端用于接收音频模拟信号,若需要进行音频数字信号或音频数据包输出时,所述第一数据输出引脚的输入端和第二数据输出引脚的输入端分别接第一数据输入引脚的输出端和第二数据输入引脚的输出端,若需要进行音频模拟信号输出时,所述第一数据输出引脚的输入端和第二数据输出引脚的输入端分别接第三数据输入引脚的输出端和第四数据输入引脚的输出端。
  40. 如权利要求33-38所述的音频播放系统,其特征在于,所述耳机接口为3.5mm/2.5mm的耳机孔,所述第二切换电路具体包括:
    第一PMOS管和第二PMOS管,所述第一PMOS管的栅极接所述移动终端的耳机接口的麦克风脚位,所述第一PMOS管的源极接所述语音处理器,所述第一PMOS管的漏极接所述移动终端的第一处理器的第二信号输出引脚,所述第二信号输出引脚用于输出电平信号以控制所述第一PMOS管导通或关断;所述第二PMOS管的栅极接所述移动终端的耳机接口的麦克风脚位,所述第二PMOS管的源极接所述电源,所述第二PMOS管的漏极接所述移动终端的第一 处理器的第三信号输出引脚,所述第三信号输出引脚用于输出电平信号以控制所述第二PMOS管导通或关断。
PCT/CN2015/077094 2014-04-29 2015-04-21 一种传输方法、移动终端、多声道耳机及音频播放系统 WO2015165345A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US14/904,467 US9788096B2 (en) 2014-04-29 2015-04-21 Transmission method, mobile terminal, multi-channel headset, and audio play system
EP15786601.3A EP3007464A4 (en) 2014-04-29 2015-04-21 TRANSMITTING METHOD, MOBILE TERMINAL, MULTI-CHANNEL HEADER, AND AUDIO PLAY SYSTEM

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410177198.0 2014-04-29
CN201410177198.0A CN103945310B (zh) 2014-04-29 2014-04-29 一种传输方法、移动终端、多声道耳机及音频播放系统

Publications (1)

Publication Number Publication Date
WO2015165345A1 true WO2015165345A1 (zh) 2015-11-05

Family

ID=51192750

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/077094 WO2015165345A1 (zh) 2014-04-29 2015-04-21 一种传输方法、移动终端、多声道耳机及音频播放系统

Country Status (4)

Country Link
US (1) US9788096B2 (zh)
EP (1) EP3007464A4 (zh)
CN (1) CN103945310B (zh)
WO (1) WO2015165345A1 (zh)

Families Citing this family (40)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8971546B2 (en) 2011-10-14 2015-03-03 Sonos, Inc. Systems, methods, apparatus, and articles of manufacture to control audio playback devices
KR20150096915A (ko) * 2014-02-17 2015-08-26 삼성전자주식회사 멀티미디어 콘텐츠 공유 재생 방법 및 이를 구현하는 전자 장치
CN103945310B (zh) * 2014-04-29 2017-01-11 华为终端有限公司 一种传输方法、移动终端、多声道耳机及音频播放系统
US9658818B2 (en) * 2014-08-11 2017-05-23 Princeton Audio, LLC Adaptable audio systems
JP6341047B2 (ja) * 2014-10-03 2018-06-13 ティアック株式会社 オーディオ装置
CN105635902A (zh) * 2014-11-04 2016-06-01 中兴通讯股份有限公司 一种兼容数字音频设备的音频接口及实现方法
HK1210911A2 (zh) * 2015-03-12 2016-05-06 Wbd101 Ltd 插頭
CN106303877B (zh) * 2015-05-21 2020-10-16 广西三创科技有限公司 一种Windows平板电脑的音频测试方法及系统
CN104899001A (zh) * 2015-05-27 2015-09-09 深圳市金立通信设备有限公司 一种线控耳机兼容方法及终端
CN106302971A (zh) * 2015-06-04 2017-01-04 中兴通讯股份有限公司 一种识别耳机的方法和装置
CN106714030B (zh) * 2015-07-23 2022-03-08 杭州纳雄科技有限公司 耳机电路
US10028059B2 (en) * 2015-08-24 2018-07-17 Microsoft Technology Licensing, Llc Headphone and associated host apparatus supporting both digital and analog audio connectivity
US20170238114A1 (en) * 2016-02-16 2017-08-17 Sony Corporation Wireless speaker system
US9924291B2 (en) 2016-02-16 2018-03-20 Sony Corporation Distributed wireless speaker system
US9826330B2 (en) 2016-03-14 2017-11-21 Sony Corporation Gimbal-mounted linear ultrasonic speaker assembly
US9977755B2 (en) * 2016-03-24 2018-05-22 Qualcomm Incorporated Mobile device with multiple communication capabilities
CN105933824A (zh) * 2016-04-20 2016-09-07 乐视控股(北京)有限公司 终端的音频切换方法和装置
CN105872902A (zh) * 2016-04-20 2016-08-17 乐视控股(北京)有限公司 切换装置和切换系统
CN105872903A (zh) * 2016-04-20 2016-08-17 乐视控股(北京)有限公司 切换装置
CN105872900A (zh) * 2016-04-20 2016-08-17 乐视控股(北京)有限公司 切换装置
CN105828272A (zh) * 2016-04-28 2016-08-03 乐视控股(北京)有限公司 音频信号处理方法和装置
CN105872883A (zh) * 2016-04-29 2016-08-17 乐视控股(北京)有限公司 一种耳机模式控制方法、客户端及耳机
CN105979467A (zh) * 2016-04-29 2016-09-28 乐视控股(北京)有限公司 在高通平台中集成多种音频信号后处理算法的方法和装置
CN106610912A (zh) * 2016-12-23 2017-05-03 努比亚技术有限公司 一种信号生成方法和设备
GB201704067D0 (en) * 2017-03-14 2017-04-26 Soundchip Sa Earphone connection apparatus
CN107341122B (zh) * 2017-07-25 2019-08-27 Oppo广东移动通信有限公司 设备接入处理方法、设备接入处理装置及移动终端
CN107908387B (zh) * 2017-09-26 2021-01-08 捷开通讯(深圳)有限公司 信号传输电路、信号传输系统、信号传输方法及智能终端
CN108182160A (zh) * 2017-12-28 2018-06-19 北京守朴科技有限公司 通用接口输入信号自动识别方法、装置和信号处理设备
TWI660636B (zh) * 2017-12-29 2019-05-21 美律實業股份有限公司 省電耳機
CN108242938B (zh) * 2018-01-11 2020-08-07 上海展扬通信技术有限公司 移动终端
CN108093329B (zh) * 2018-01-17 2024-01-30 歌尔科技有限公司 基于共用接口的外设类型检测电路及移动终端
CN108521873B (zh) * 2018-04-12 2021-03-19 深圳市汇顶科技股份有限公司 耳机的控制装置和有线耳机
CN110446101A (zh) * 2018-05-04 2019-11-12 青岛海尔多媒体有限公司 声音输出的方法、装置及计算机可读存储介质
CN108847248B (zh) * 2018-06-15 2020-12-15 珠海市杰理科技股份有限公司 蓝牙设备音频处理方法、系统、可读存储介质和蓝牙设备
CN112118031B (zh) * 2019-06-20 2021-12-21 傲基科技股份有限公司 语音交互装置及其控制方法、设备和计算机存储介质
WO2021004047A1 (zh) * 2019-07-09 2021-01-14 海信视像科技股份有限公司 显示装置、音频播放方法
US11443737B2 (en) 2020-01-14 2022-09-13 Sony Corporation Audio video translation into multiple languages for respective listeners
WO2021183136A1 (en) * 2020-03-13 2021-09-16 Hewlett-Packard Development Company, L.P. Disabling spatial audio processing
CN111698614B (zh) * 2020-05-25 2021-10-26 歌尔光学科技有限公司 音频输出电路及电子设备
JP2022156199A (ja) * 2021-03-31 2022-10-14 セイコーエプソン株式会社 音出力装置、音出力システム、及び制御方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179871A (zh) * 2006-11-10 2008-05-14 鸿富锦精密工业(深圳)有限公司 耳机及音频播放装置
CN201290180Y (zh) * 2008-07-15 2009-08-12 固昌通讯股份有限公司 具有多声道音源格式判读功能的数字解码盒与耳机
CN102111699A (zh) * 2011-03-11 2011-06-29 华为终端有限公司 终端及其兼容对讲耳机和立体声耳机的方法
CN103945310A (zh) * 2014-04-29 2014-07-23 华为终端有限公司 一种传输方法、移动终端、多声道耳机及音频播放系统

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7937118B2 (en) * 2001-10-30 2011-05-03 Unwired Technology Llc Wireless audio distribution system with range based slow muting
CN1496166B (zh) 2002-09-19 2011-06-15 Lg电子株式会社 使用移动通信终端耳机插孔的usb通信设备及其方法
WO2006026054A1 (en) * 2004-08-27 2006-03-09 Thomson Licensing Apparatus and method for enabling digital and analog data communication over a data bus
KR100598463B1 (ko) * 2005-05-16 2006-07-10 엘지전자 주식회사 이동통신 단말기의 tty 터미널 및 ctm 컨버터자동인식 장치 및 방법
US9031267B2 (en) * 2007-08-29 2015-05-12 Microsoft Technology Licensing, Llc Loudspeaker array providing direct and indirect radiation from same set of drivers
CN201328181Y (zh) * 2008-09-12 2009-10-14 固昌通讯股份有限公司 多声道数字音场无线耳机装置
CN201504299U (zh) * 2009-09-18 2010-06-09 中山市豪骏数码科技有限公司 一种音频转换器
US8223986B2 (en) 2009-11-19 2012-07-17 Apple Inc. Electronic device and external equipment with digital noise cancellation and digital audio path
CN105898641A (zh) * 2010-10-02 2016-08-24 张沈平 一种耳机、相应的音源设备以及控制方法
US8683087B2 (en) * 2011-04-11 2014-03-25 Fairchild Semiconductor Corporation Mobile device auto detection apparatus and method
WO2012097615A2 (zh) * 2011-10-20 2012-07-26 华为终端有限公司 将耳机接口复用为高清视音频接口的多用途连接器及手持电子设备
EP2654168B1 (en) * 2012-04-19 2020-12-30 ams AG Electrical power transmitting controller device and electrical power receiving controller device for using in a communication system
CN103139512A (zh) * 2013-01-16 2013-06-05 深圳创维-Rgb电子有限公司 音频双输出的装置和方法及显示设备
US10045135B2 (en) * 2013-10-24 2018-08-07 Staton Techiya, Llc Method and device for recognition and arbitration of an input connection

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179871A (zh) * 2006-11-10 2008-05-14 鸿富锦精密工业(深圳)有限公司 耳机及音频播放装置
CN201290180Y (zh) * 2008-07-15 2009-08-12 固昌通讯股份有限公司 具有多声道音源格式判读功能的数字解码盒与耳机
CN102111699A (zh) * 2011-03-11 2011-06-29 华为终端有限公司 终端及其兼容对讲耳机和立体声耳机的方法
CN103945310A (zh) * 2014-04-29 2014-07-23 华为终端有限公司 一种传输方法、移动终端、多声道耳机及音频播放系统

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3007464A4 *

Also Published As

Publication number Publication date
CN103945310A (zh) 2014-07-23
US20160157008A1 (en) 2016-06-02
CN103945310B (zh) 2017-01-11
EP3007464A4 (en) 2016-09-14
US9788096B2 (en) 2017-10-10
EP3007464A1 (en) 2016-04-13

Similar Documents

Publication Publication Date Title
WO2015165345A1 (zh) 一种传输方法、移动终端、多声道耳机及音频播放系统
US9100765B2 (en) Audio enhancement module for portable media player
KR100694158B1 (ko) 포터블 멀티미디어 기기에 사용되는 포터블 스피커 장치
US20160142849A1 (en) Configuring television speakers
CN209055941U (zh) 带有音频输出的扩展坞
WO2012009984A1 (zh) 耳机和USB共用Micro-USB接口的方法及装置
US8666098B2 (en) Single earphone for stereo and monaural audio devices
CN105554606A (zh) 数字耳机及电子设备
EP3379843B1 (en) Acoustic system, headphone device, loudspeaker device, and acoustic output method
WO2016161596A1 (zh) 音频接头识别方法和便携式电子设备
JP6425796B2 (ja) 移動端末
CN112468914B (zh) 多功能充电盒控制方法、多功能充电盒及蓝牙耳机
JP2004185172A (ja) 拡張装置
CN111526506B (zh) 用于无线通信的充电盒、方法及音频播放套件
WO2017185602A1 (zh) 一种耳机模式切换方法和电子设备
CN108650592B (zh) 一种实现颈带式环绕立体声的方法及立体声控制系统
CN113411703B (zh) 音频播放方法以及耳机盒、无线耳机和耳机套件
CN106101937B (zh) 音箱音频播放方法
CN201000926Y (zh) 多路音频信号线
WO2018058997A1 (zh) 一种组网音响及其系统
CN201328191Y (zh) 多声道音源转接盒与多声道音响系统
CN104661081A (zh) 一种音频数据传输方法和装置
JP3144831U (ja) ステレオ出力可能なワイヤレスオーディオシステム
CN110248271A (zh) 应用无线耳机无线传输的播放方法
CN211089917U (zh) 一种便携均衡器耳放

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15786601

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2015786601

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 14904467

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE