CN107277686A - A kind of audio data processing method, terminal and audio external play equipment - Google Patents

A kind of audio data processing method, terminal and audio external play equipment Download PDF

Info

Publication number
CN107277686A
CN107277686A CN201710401271.1A CN201710401271A CN107277686A CN 107277686 A CN107277686 A CN 107277686A CN 201710401271 A CN201710401271 A CN 201710401271A CN 107277686 A CN107277686 A CN 107277686A
Authority
CN
China
Prior art keywords
audio
voice data
terminal
play equipment
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710401271.1A
Other languages
Chinese (zh)
Inventor
贾广琪
刘彦彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710401271.1A priority Critical patent/CN107277686A/en
Publication of CN107277686A publication Critical patent/CN107277686A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • 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/03Connection circuits to selectively connect loudspeakers or headphones to amplifiers

Landscapes

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

Abstract

The invention provides a kind of audio data processing method, terminal and audio external play equipment, wherein, audio data processing method includes:It is connected having detected audio external play equipment by two-sided inserting interface with the terminal, and when detecting voice data to be output, the voice data to be output is converted into data signal;The data signal is sent to the audio external play equipment by the first pin of the two-sided inserting interface;Wherein, the digital signal decoding can be analog signal by the audio external play equipment.This programme can reduce the interference that voice data is subject to;In addition, also reducing the transmission path of analog signal, tonequality is improved;Solve the problem of audio signal tonequality transmitted in the prior art by Type C interface is not up to standard well.

Description

A kind of audio data processing method, terminal and audio external play equipment
Technical field
The present invention relates to communication technical field, particularly relate to a kind of audio data processing method, terminal and audio external play and set It is standby.
Background technology
Two-sided inserting Type-C interfaces define the function of audio analog signal transmissions, and sound is transmitted by Type-C interfaces Frequency signal, can so cancel the 3.5mm earphone interfaces above mobile phone;And the multiplexing of this interface ensure that the whole of structure Body and failure probability is reduced to a certain extent;So Type-C interfaces substitution 3.5mm earphone interfaces turn into a kind of trend.
But, using the scheme of Type-C interface transmission of analogue signal, due to analog signal in transmitting procedure easily by It is located at mobile phone lower end to interference, particularly USB interface, and during close to antenna;This prevents the tonequality that earphone is received from reaching Ideal indicator.
The content of the invention
It is an object of the invention to provide a kind of audio data processing method, terminal and audio external play equipment, solve existing The problem of audio signal tonequality transmitted in technology by Type-C interfaces is not up to standard.
In order to solve the above-mentioned technical problem, the embodiment of the present invention provides a kind of audio data processing method, applied to terminal, Including:
It is connected having detected audio external play equipment by two-sided inserting interface with the terminal, and has been detected to be output Voice data when, the voice data to be output is converted into data signal;
The data signal is sent to the audio external play equipment by the first pin of the two-sided inserting interface;
Wherein, the digital signal decoding can be analog signal by the audio external play equipment.
Present invention also offers a kind of audio data processing method, applied to audio external play equipment, including:
Receive the audio number for the digital signal form that the terminal being connected is sent by the first pin of two-sided inserting interface According to;
By the voice data of the digital signal form, it is decoded as exporting after the voice data of analog signal form.
Present invention also offers a kind of terminal, including:
First modular converter, for passing through two-sided inserting interface and the terminal phase having detected audio external play equipment Even, and when detecting voice data to be output, the voice data to be output is converted into data signal;
First sending module, for the data signal to be sent to institute by the first pin of the two-sided inserting interface State audio external play equipment;
Wherein, the digital signal decoding can be analog signal by the audio external play equipment.
Present invention also offers a kind of audio external play equipment, including:
Second receiving module, for receiving the numeral that the terminal being connected is sent by the first pin of two-sided inserting interface The voice data of signal form;
3rd processing module, for by the voice data of the digital signal form, being decoded as the sound of analog signal form Frequency is exported after.
Present invention also offers a kind of terminal, including:Memory, processor and store on a memory and can be in processor The computer program of upper operation, is realized in above-mentioned audio data processing method described in the computing device during computer program The step of.
Present invention also offers a kind of computer program, above-mentioned audio is realized described in computing device during computer program Data processing method.
Present invention also offers a kind of computer-readable recording medium, including instruction, when the instruction is transported on computers During row so that computer performs above-mentioned audio data processing method.
The above-mentioned technical proposal of the present invention has the beneficial effect that:
In such scheme, the audio data processing method is by passing through two-sided inserting having detected audio external play equipment Interface is connected with the terminal, and when detecting voice data to be output, voice data to be output is converted into numeral Signal, is then sent data signal to audio external play equipment by the first pin of two-sided inserting interface;Audio can be reduced The interference that data are subject to;In addition, digital signal decoding can be analog signal by audio external play equipment, and then export, complete sound The transmission of frequency signal;The transmission path of analog signal is reduced, tonequality is improved;Solve and pass through in the prior art well The problem of audio signal tonequality of Type-C interfaces transmission is not up to standard.
Brief description of the drawings
Fig. 1 is the audio data processing method schematic flow sheet one of the embodiment of the present invention;
Fig. 2 is the audio data processing method schematic flow sheet two of the embodiment of the present invention;
Fig. 3 realizes circuit diagram for the audio data processing method of the embodiment of the present invention;
Fig. 4 is the terminal structure schematic diagram one of the embodiment of the present invention;
Fig. 5 is the audio external play device structure schematic diagram of the embodiment of the present invention;
Fig. 6 is the terminal structure schematic diagram two of the embodiment of the present invention;
Fig. 7 is the terminal structure schematic diagram three of the embodiment of the present invention.
Embodiment
To make the technical problem to be solved in the present invention, technical scheme and advantage clearer, below in conjunction with accompanying drawing and tool Body embodiment is described in detail.
The present invention is directed to the problem of audio signal tonequality transmitted in existing technology by Type-C interfaces is not up to standard, carries For a kind of audio data processing method, terminal is can be applied to, as shown in figure 1, including:
Step 11:It is connected having detected audio external play equipment by two-sided inserting interface with the terminal, and is detected When having voice data to be output, the voice data to be output is converted into data signal.
It is, when having detected audio external play equipment and being inserted into by two-sided inserting interface in terminal, if having detected Voice data to be output, then be converted to data signal by the voice data with output.
It can specifically be detected, be not limited thereto by inserting detection pin CC1/2.Audio external play equipment can be ear The equipment such as machine or audio amplifier.Data signal can be integrated circuit built-in audio bus I2S signals.
Step 12:The data signal is sent to the audio external play by the first pin of the two-sided inserting interface Equipment;Wherein, the digital signal decoding can be analog signal by the audio external play equipment.
First pin can draw to remove charging communications pins, insertion detection pin and Mike on the two-sided inserting interface Other pins outside pin.
The present embodiment provide the audio data processing method by detected audio external play equipment pass through it is two-sided Pluggable mouth is connected with the terminal, and when detecting voice data to be output, voice data to be output is converted to Data signal, is then sent data signal to audio external play equipment by the first pin of two-sided inserting interface;It can reduce The interference that voice data is subject to;In addition, digital signal decoding can be analog signal by audio external play equipment, and then export, it is complete Into the transmission of audio signal;The transmission path of analog signal is reduced, tonequality is improved;Solve and lead in the prior art well Cross Type-C interfaces transmission audio signal tonequality it is not up to standard the problem of.
Further, the audio data processing method also includes:Detected audio external play equipment by it is two-sided can When interface is connected with the terminal, powered by the second pin of the two-sided inserting interface to the audio external play equipment.
Can be specifically that terminal opens main frame OTG patterns to power to audio external play equipment.
In order to which more intelligently, in the present embodiment, the audio data processing method also includes:Detecting outside the audio When putting equipment with terminal disconnection, the connection of the two-sided inserting interface and voice data transmission circuit is disconnected, and connect institute State two-sided inserting interface and USB data transfer circuit.
Namely when audio external play equipment is extracted, connection two-sided inserting interface and USB data transfer electricity Road, resume data transmission pattern.
In view of in practical application, be also possible to that voice data can be received, so, in the present embodiment, detecting Before voice data to be output, or the data signal sent to described by the first pin of the two-sided inserting interface After audio external play equipment, the audio data processing method also includes:Receive the numeral letter of the audio external play equipment transmission The voice data of number form;The voice data of the digital signal form is that the audio external play equipment passes through the two-sided inserting The voice data collected of the 3rd pin transmission of interface;Default processing is carried out to the voice data received.
Default processing therein can be decoding, amplification and the broadcasting to audio signal.
It is preferred that, by default, terminal is in data transmission state, and correspondence is in the present embodiment, described in detection To there is audio external play equipment to be connected by two-sided inserting interface with the terminal, and when detecting voice data to be output, The step of voice data to be output is converted into data signal includes:Detected audio external play equipment pass through it is two-sided When pluggable mouth is connected with the terminal, the two-sided inserting interface and general-purpose serial bus USB data transmission circuit are disconnected Connection, connects the two-sided inserting interface and voice data transmission circuit, and when detecting voice data to be output, will The voice data to be output is converted to data signal.
Further, the present embodiment, it is described the voice data to be output is converted into data signal before, also wrap Include:Detect the audio-frequency play mode of the terminal;When the terminal is in the first audio-frequency play mode, perform described by described in The step of voice data to be output is converted to data signal;
When the terminal is in the second audio-frequency play mode, the voice data to be output is converted into simulation letter Number, and the analog signal is sent to the audio external play equipment by the 4th pin of the two-sided inserting interface.
Wherein, the first audio-frequency play mode can be HD Audio play mode (HIFI patterns), and the second audio plays mould Formula can be ordinary audio play mode.
The analog signal " is sent to the audio external play and set by correspondence by the 4th pin of the two-sided inserting interface It is standby " the step of be specially:Connect the two-sided inserting interface and analog signal output circuit;By voice data with analog signal Form is sent to the audio external play equipment by the 4th pin of the two-sided inserting interface.
On the setting of the audio-frequency play mode of terminal, two kinds of examples are provided in the present embodiment:
The first:The instruction that user selects the first audio-frequency play mode is received, the audio-frequency play mode of the terminal is set For the first audio-frequency play mode;Or the instruction that user selects the second audio-frequency play mode is received, the audio of the terminal is set Play mode is the second audio-frequency play mode.
Second:Detect the type of the audio external play equipment;Being in the audio external play equipment can be by data signal When being decoded as the first kind of analog signal, the audio-frequency play mode for setting the terminal is the first audio-frequency play mode;Institute When stating audio external play equipment for that can not be the Second Type of analog signal by digital signal decoding, the audio of the terminal is set Play mode is the second audio-frequency play mode.
The embodiment of the present invention additionally provides a kind of audio data processing method, can be applied to audio external play equipment, such as Fig. 2 institutes Show, the audio data processing method includes:
Step 21:Receive the digital signal form that the terminal being connected is sent by the first pin of two-sided inserting interface Voice data.
First pin can draw to remove charging communications pins, insertion detection pin and Mike on the two-sided inserting interface Other pins outside pin.Data signal can be integrated circuit built-in audio bus I2S signals.
Step 22:By the voice data of the digital signal form, it is decoded as defeated after the voice data of analog signal form Go out.
Can be specially:By the voice data of the digital signal form, the voice data of analog signal form is decoded as After be amplified, then export.
The audio data processing method provided in an embodiment of the present invention by receive the terminal that is connected by it is two-sided can The voice data for the digital signal form that first pin of interface is sent, the voice data of digital signal form is decoded as Exported after the voice data of analog signal form, the transmission path of analog signal can be reduced, lift tonequality;Solve well The problem of audio signal tonequality transmitted in the prior art by Type-C interfaces is not up to standard.
In view of in practical application, be also possible to that voice data can be sent, so, in the present embodiment, receive data signal Before the voice data of form, or by the voice data of the digital signal form, it is decoded as the audio number of analog signal form After rear output, the audio data processing method also includes:Voice data is gathered, and the voice data collected is changed For data signal, send to the terminal.
Further, the embodiment of the present invention can also include:Receive the sound for the analog signal form that the terminal is sent Frequency according to when, directly play out.
Below to combining terminal and audio external play equipment (audio peripheral hardware) two sides to the sound provided in an embodiment of the present invention Frequency data processing method is further described, and data signal is by taking I2S signals as an example.
For above-mentioned technical problem, the embodiment of the present invention proposes a kind of use TYPE-C interfaces transmission numeral I2S signals Music scheme, by I2S by audio signal transmission to audio peripheral hardware, audio peripheral hardware is decoded, and is exported after the action such as amplification To earphone, the decoding amplification of audio signal is completed at audio peripheral hardware end, the transmission path of analog signal is reduced, sound can be lifted Matter.In addition, this programme can also the compatible common solution that audio signal is transmitted using d+/d-.
Realizing for scheme of the embodiment of the present invention can use circuit as shown in Figure 3, wherein, (Master Clock are Mclk System master clock unit) selected to be by system output or in addition in audio peripheral hardware according to digital analog converter DAC demand Crystal oscillator is added to produce in audio accessory.
Switch Switch:TX/RX (transmitting/reception) signal multiplexing integrated circuit built-in audio bus is completed in end side I2S/MCLK function;
Controller Controller:The connected mode of switching TX/RX signals is controlled according to operative scenario;
Audio peripheral hardware Audio accessory:With two kinds of mode of operations, a, decoding I2S signals, amplification is output to ear Machine;The signal that b, general mode receive difference d+/d- does earphone output;
The TX/RX signal multiplexing forms of Type-c interfaces:
TYPE-C interfaces Audio USB PHY
TX_P BCK USB_TX_P
TX_M WS USB_TX_M
RX_P DATA USB_RX_P
RX_M MCLK USB_RX_M
I2S/MCLK and TX/RX multiplexings connected mode is not limited to the connection shown in Fig. 3.
The scheme that the present embodiment is provided can be specific as follows:
Default conditions, controller controlling switches switch the TX/RX for being connected to USB data transmission;
After insertion detection pin CC1/2 signal detections are to insertion audio peripheral hardware, controller controlling switch is switched to I2S/ Mclk;
When user plays music, the general mode or HIFI patterns selected according to user, general mode audio signal Earphone is transferred to after platform output analog signal by D+/D- to play;
HIFI patterns, voice data is transmitted by I2S signals, according to DAC demands output MCLK to the DAC in audio peripheral hardware; DAC to audio peripheral hardware (earphone, audio amplifier), AMP (digital analog converter, amplifier) are carried out by terminal unlatching main frame OTG patterns Power (electric energy) is provided;The decoding of audio signal, amplification are carried out afterwards, then is transferred to ear speaker device, play music.
When detect user extract have the audio peripheral hardware of type-C interfaces after, close OTG, while controller controlling switch is cut Change to TX/RX.
Audio peripheral hardware can be the equipment such as loudspeaker, be not limited thereto.
Scheme provided in an embodiment of the present invention can realize high-quality audio result of broadcast, lift Consumer's Experience, can Positive anti-plug is supported, replaces 3.5mm earphone interfaces;Furthermore it is also possible to allow user according to the level of sound quality needed for oneself to choose Audio peripheral hardware, the free degree of lifting user's selection.
In order to solve the above-mentioned technical problem, the embodiment of the present invention additionally provides a kind of terminal, as shown in figure 4, including:
First modular converter 41, for passing through two-sided inserting interface and the terminal phase having detected audio external play equipment Even, and when detecting voice data to be output, the voice data to be output is converted into data signal;
First sending module 42, for by the data signal by the first pin of the two-sided inserting interface send to The audio external play equipment;
Wherein, the digital signal decoding can be analog signal by the audio external play equipment.
The terminal that the present embodiment is provided is by passing through two-sided inserting interface and institute having detected audio external play equipment State terminal to be connected, and when detecting voice data to be output, voice data to be output is converted into data signal, then Data signal is sent to audio external play equipment by the first pin of two-sided inserting interface;It can reduce what voice data was subject to Interference;In addition, digital signal decoding can be analog signal by audio external play equipment, and then export, complete the biography of audio signal It is defeated;The transmission path of analog signal is reduced, tonequality is improved;Solve and passed in the prior art by Type-C interfaces well The problem of defeated audio signal tonequality is not up to standard.
Further, the terminal also includes:First power supply module, for detected audio external play equipment pass through it is double When the pluggable mouth in face is connected with the terminal, supplied by the second pin of the two-sided inserting interface to the audio external play equipment Electricity.
In order to which more intelligently, in the present embodiment, the terminal also includes:First processing module, for detect it is described When audio external play equipment disconnects with the terminal, the connection of the two-sided inserting interface and voice data transmission circuit is disconnected, and Connect the two-sided inserting interface and USB data transfer circuit.
Specifically, first pin be the two-sided inserting interface on except charging communications pins, insertion detection pin and Other pins outside Mike's pin.
In view of in practical application, be also possible to that voice data can be received, so, in the present embodiment, the terminal is also Including:First receiving module, for before voice data to be output is detected, or the data signal is passed through described First pin of two-sided inserting interface is sent to the audio external play equipment, receives the number of the audio external play equipment transmission The voice data of word signal form;The voice data of the digital signal form passes through described two-sided for the audio external play equipment The voice data collected of the 3rd pin transmission of pluggable mouth;Second processing module, for the voice data to receiving Carry out default processing.
It is preferred that, by default, terminal is in data transmission state, corresponds in the present embodiment, described first turn Mold changing block includes:First processing submodule, for passing through two-sided inserting interface and the end having detected audio external play equipment When end is connected, disconnect the connection of the two-sided inserting interface and USB data transfer circuit, connect it is described it is two-sided can Interface and voice data transmission circuit, and when detecting voice data to be output, by the audio number to be output According to being converted to data signal.
Wherein, the described of the above-mentioned audio data processing method for being related to end side realizes embodiment suitable for the terminal In embodiment, identical technique effect can be also reached.
In order to solve the above-mentioned technical problem, the embodiment of the present invention additionally provides a kind of audio external play equipment, as shown in figure 5, Including:
Second receiving module 51, for receiving the number that the terminal being connected is sent by the first pin of two-sided inserting interface The voice data of word signal form;
3rd processing module 52, for by the voice data of the digital signal form, being decoded as analog signal form Exported after voice data.
The audio external play equipment provided in an embodiment of the present invention is connect by receiving the terminal being connected by two-sided inserting The voice data for the digital signal form that first pin of mouth is sent, by the voice data of digital signal form, is decoded as simulation Exported after the voice data of signal form, the transmission path of analog signal can be reduced, lift tonequality;Solve well existing The problem of audio signal tonequality transmitted in technology by Type-C interfaces is not up to standard.
In view of in practical application, be also possible to that voice data can be sent, so, in the present embodiment, the audio external play Equipment also includes:Before fourth processing module, the voice data for receiving digital signal form, or by the data signal shape The voice data of formula, is decoded as after exporting after the voice data of analog signal form, gathers voice data, and will collect Voice data is changed into data signal, sends to the terminal.
Wherein, the above-mentioned reality for realizing embodiment suitable for the audio external play equipment for being related to audio external play equipment side Apply in example, can also reach identical technique effect.
The embodiment of the present invention additionally provides a kind of terminal, as shown in fig. 6, the terminal 600 includes:
At least one processor 601, memory 602, at least one network interface 604 and user interface 603.Terminal 600 In each component be coupled by bus system 605.It is understood that bus system 605 is used to realize between these components Connection communication.Bus system 605 is in addition to including data/address bus, in addition to power bus, controlling bus and status signal are total Line.But for the sake of clear explanation, various buses are all designated as bus system 605 in figure 6.
Wherein, user interface 603 can include display, keyboard or pointing device (for example, mouse, trace ball (trackball), touch-sensitive plate or touch-screen etc..
It is appreciated that the memory 602 in the embodiment of the present invention can be volatile memory or nonvolatile memory, Or may include both volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read-only storage (Read- Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable Device (Erasable PROM, EPROM), Electrically Erasable Read Only Memory (Electrically EPROM, EEPROM) or Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), and it is used as outside high Speed caching.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links Dynamic random access memory (Synchlink DRAM, SLDRAM) and direct rambus random access memory (Direct Rambus RAM, DRRAM).The memory 602 of system and method described herein be intended to including but not limited to these and it is any its It is adapted to the memory of type.
In some embodiments, memory 602 stores following element, can perform module or data structure, or Their subset of person, or their superset:Operating system 6021 and application program 6022.
Wherein, operating system 6021, comprising various system programs, such as ccf layer, core library layer, driving layer, are used for Realize various basic businesses and handle hardware based task.Application program 6022, includes various application programs, such as media Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention The program of method may be embodied in application program 6022.
In embodiments of the present invention, by calling program or the instruction of the storage of memory 602, specifically, can be application The program stored in program 6022 or instruction, processor 601 are used for:Connect having detected audio external play equipment by two-sided inserting Mouth is connected with the terminal, and when detecting voice data to be output, the voice data to be output is converted into number Word signal;The data signal is sent to the audio external play equipment by the first pin of the two-sided inserting interface;Its In, the digital signal decoding can be analog signal by the audio external play equipment.
The method that the embodiments of the present invention are disclosed can apply in processor 601, or be realized by processor 601. Processor 601 is probably a kind of IC chip, the disposal ability with signal.In implementation process, the above method it is each Step can be completed by the integrated logic circuit of the hardware in processor 601 or the instruction of software form.Above-mentioned processing Device 601 can be general processor, digital signal processor (Digital Signal Processor, DSP), special integrated electricity Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field Programmable Gate Array, FPGA) or other PLDs, discrete gate or transistor logic, Discrete hardware components.It can realize or perform disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general Processor can be microprocessor or the processor can also be any conventional processor etc..With reference to institute of the embodiment of the present invention The step of disclosed method, can be embodied directly in hardware decoding processor and perform completion, or with the hardware in decoding processor And software module combination performs completion.Software module can be located at random access memory, and flash memory, read-only storage may be programmed read-only In the ripe storage medium in this area such as memory or electrically erasable programmable memory, register.The storage medium is located at Memory 602, processor 601 reads the information in memory 602, the step of completing the above method with reference to its hardware.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its Combine to realize.Realized for hardware, processing unit can be realized in one or more application specific integrated circuit (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor, In controller, microcontroller, microprocessor, other electronic units for performing herein described function or its combination.
Realize, can be realized by performing the module (such as process, function) of function described herein herein for software Described technology.Software code is storable in memory and by computing device.Memory can within a processor or Realized outside processor.
Alternatively, processor 601 is additionally operable to:Pass through two-sided inserting interface and the end having detected audio external play equipment When end is connected, powered by the second pin of the two-sided inserting interface to the audio external play equipment.
Alternatively, processor 601 is additionally operable to:When detecting the audio external play equipment with terminal disconnection, disconnect The connection of the two-sided inserting interface and voice data transmission circuit, and connect the two-sided inserting interface and USB Data transmission circuit.
Alternatively, first pin be the two-sided inserting interface on except charging communications pins, insertion detection pin and Other pins outside Mike's pin.
Alternatively, processor 601 is additionally operable to:Believe before voice data to be output is detected, or by the numeral Number sent by the first pin of the two-sided inserting interface to the audio external play equipment, receive the audio external play and set The voice data of the digital signal form of standby transmission;The voice data of the digital signal form is logical for the audio external play equipment Cross the voice data collected of the 3rd pin transmission of the two-sided inserting interface;The voice data received is preset Processing.
Alternatively, processor 601 specifically for:Detected audio external play equipment by two-sided inserting interface with it is described When terminal is connected, the connection of the two-sided inserting interface and USB data transfer circuit is disconnected, is connected described two-sided Pluggable mouth and voice data transmission circuit, and when detecting voice data to be output, by the audio to be output Data are converted to data signal.
Terminal 600 can realize each process that terminal is realized in previous embodiment, to avoid repeating, no longer go to live in the household of one's in-laws on getting married here State.
To sum up, the terminal provided in an embodiment of the present invention is by passing through two-sided inserting having detected audio external play equipment Interface is connected with the terminal, and when detecting voice data to be output, voice data to be output is converted into numeral Signal, is then sent data signal to audio external play equipment by the first pin of two-sided inserting interface;Audio can be reduced The interference that data are subject to;In addition, digital signal decoding can be analog signal by audio external play equipment, and then export, complete sound The transmission of frequency signal;The transmission path of analog signal is reduced, tonequality is improved;Solve and pass through in the prior art well The problem of audio signal tonequality of Type-C interfaces transmission is not up to standard.
The embodiment of the present invention additionally provides a kind of terminal, specifically, as shown in fig. 7, the terminal 700 in the embodiment of the present invention Can be mobile phone, tablet personal computer, personal digital assistant (Personal Digital Assistant, PDA) or vehicle-mounted computer Deng.
Terminal 700 in Fig. 7 includes radio frequency (Radio Frequency, RF) circuit 710, memory 720, input block 730th, display unit 740, processor 760, voicefrequency circuit 770, WiFi (Wireless Fidelity) modules 780 and power supply 790。
Wherein, input block 730 can be used for the numeral or character information for receiving user's input, and produce and terminal 700 User set and function control it is relevant signal input.Specifically, in the embodiment of the present invention, the input block 730 can be with Including contact panel 731.Contact panel 731, also referred to as touch-screen, collect touch operation (ratio of the user on or near it Such as user uses the operation of finger, any suitable object of stylus or annex on contact panel 731), and according to setting in advance Fixed formula drives corresponding attachment means.Optionally, contact panel 731 may include touch detecting apparatus and touch controller two Individual part.Wherein, touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation is brought, and signal is passed Give touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then Give the processor 760, and the order sent of reception processing device 760 and can be performed.Furthermore, it is possible to using resistance-type, electricity The polytypes such as appearance formula, infrared ray and surface acoustic wave realize contact panel 731.Except contact panel 731, input block 730 Other input equipments 732 can also be included, other input equipments 732 can include but is not limited to physical keyboard, function key (such as Volume control button, switch key etc.), trace ball, mouse, the one or more in action bars etc..
Wherein, display unit 740 can be used for the information and terminal for showing the information inputted by user or being supplied to user 700 various menu interfaces.Display unit 740 may include display panel 741, optionally, can use LCD or organic light emission two The forms such as pole pipe (Organic Light-Emitting Diode, OLED) configure display panel 741.
It should be noted that contact panel 731 can cover display panel 741, touch display screen is formed, when touch display screen inspection Measure after the touch operation on or near it, processor 760 is sent to determine the type of touch event, with preprocessor 760 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and conventional control viewing area.The Application Program Interface viewing area And arrangement mode of the conventional control viewing area is not limited, can be arranged above and below, left-right situs etc. can distinguish two and show Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with The interface element such as the icon comprising at least one application program and/or widget desktop controls.The Application Program Interface viewing area It can also be the empty interface not comprising any content.The conventional control viewing area is used to show the higher control of utilization rate, for example, Application icons such as settings button, interface numbering, scroll bar, phone directory icon etc..
Wherein processor 760 is the control centre of terminal 700, utilizes each of various interfaces and connection whole mobile phone Part, by operation or performs and is stored in software program and/or module in first memory 721, and calls and be stored in the Data in two memories 722, perform the various functions and processing data of terminal 700, so as to carry out overall prison to terminal 700 Control.Optionally, processor 760 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 721 in software program and/or module and/ Or the data in the second memory 722, processor 760 is used for:Connect having detected audio external play equipment by two-sided inserting Mouth is connected with the terminal, and when detecting voice data to be output, the voice data to be output is converted into number Word signal;The data signal is sent to the audio external play equipment by the first pin of the two-sided inserting interface;Its In, the digital signal decoding can be analog signal by the audio external play equipment.
Alternatively, processor 760 is additionally operable to:Pass through two-sided inserting interface and the end having detected audio external play equipment When end is connected, powered by the second pin of the two-sided inserting interface to the audio external play equipment.
Alternatively, processor 760 is additionally operable to:When detecting the audio external play equipment with terminal disconnection, disconnect The connection of the two-sided inserting interface and voice data transmission circuit, and connect the two-sided inserting interface and USB Data transmission circuit.
Alternatively, first pin be the two-sided inserting interface on except charging communications pins, insertion detection pin and Other pins outside Mike's pin.
Alternatively, processor 760 is additionally operable to:Believe before voice data to be output is detected, or by the numeral Number sent by the first pin of the two-sided inserting interface to the audio external play equipment, receive the audio external play and set The voice data of the digital signal form of standby transmission;The voice data of the digital signal form is logical for the audio external play equipment Cross the voice data collected of the 3rd pin transmission of the two-sided inserting interface;The voice data received is preset Processing.
Alternatively, processor 760 specifically for:Detected audio external play equipment by two-sided inserting interface with it is described When terminal is connected, the connection of the two-sided inserting interface and USB data transfer circuit is disconnected, is connected described two-sided Pluggable mouth and voice data transmission circuit, and when detecting voice data to be output, by the audio to be output Data are converted to data signal.
It can be seen that, the terminal provided in an embodiment of the present invention is by passing through two-sided inserting having detected audio external play equipment Interface is connected with the terminal, and when detecting voice data to be output, voice data to be output is converted into numeral Signal, is then sent data signal to audio external play equipment by the first pin of two-sided inserting interface;Audio can be reduced The interference that data are subject to;In addition, digital signal decoding can be analog signal by audio external play equipment, and then export, complete sound The transmission of frequency signal;The transmission path of analog signal is reduced, tonequality is improved;Solve and pass through in the prior art well The problem of audio signal tonequality of Type-C interfaces transmission is not up to standard.
Present invention also offers a kind of terminal, including:Memory, processor and store on a memory and can be in processor The computer program of upper operation, is realized in above-mentioned audio data processing method described in the computing device during computer program The step of.
Present invention also offers a kind of computer program, above-mentioned audio is realized described in computing device during computer program Data processing method.
Present invention also offers a kind of computer-readable recording medium, including instruction, when the instruction is transported on computers During row so that computer performs above-mentioned audio data processing method.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment weight Point explanation be all between difference with other embodiment, each embodiment identical similar part mutually referring to.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Member and algorithm steps, can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually Performed with hardware or software mode, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed The scope of the present invention.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In embodiment provided herein, it should be understood that disclosed apparatus and method, others can be passed through Mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, is only A kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can combine or Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual Between coupling or direct-coupling or communication connection can be the INDIRECT COUPLING or communication link of device or unit by some interfaces Connect, can be electrical, machinery or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.
If the function is realized using in the form of SFU software functional unit and is used as independent production marketing or in use, can be with It is stored in a computer read/write memory medium.Understood based on such, technical scheme is substantially in other words The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are to cause a computer equipment (can be individual People's computer, server, or network equipment etc.) perform all or part of step of each of the invention embodiment methods described. And foregoing storage medium includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc or CD etc. are various can be with store program codes Medium.
It should also be noted that, herein, such as first and second or the like relational terms are used merely to one Entity or operation make a distinction with another entity or operation, and not necessarily require or imply between these entities or operation There is any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to contain Lid nonexcludability is included, so that process, method, article or terminal device including a series of key elements not only include that A little key elements, but also other key elements including being not expressly set out, or also include be this process, method, article or The intrinsic key element of terminal device.In the absence of more restrictions, the key element limited by sentence "including a ...", and It is not precluded within the process including the key element, method, article or terminal device and also there is other identical element.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.

Claims (17)

1. a kind of audio data processing method, applied to terminal, it is characterised in that including:
It is connected having detected audio external play equipment by two-sided inserting interface with the terminal, and detects sound to be output Frequency according to when, the voice data to be output is converted into data signal;
The data signal is sent to the audio external play equipment by the first pin of the two-sided inserting interface;
Wherein, the digital signal decoding can be analog signal by the audio external play equipment.
2. audio data processing method according to claim 1, it is characterised in that the audio data processing method is also wrapped Include:
When having detected audio external play equipment and being connected by two-sided inserting interface with the terminal, connect by the two-sided inserting The second pin of mouth is powered to the audio external play equipment.
3. audio data processing method according to claim 1, it is characterised in that the audio data processing method is also wrapped Include:
When detecting the audio external play equipment with terminal disconnection, disconnect the two-sided inserting interface and passed with voice data The connection on transmission of electricity road, and connect the two-sided inserting interface and USB data transfer circuit.
4. audio data processing method according to claim 1, it is characterised in that first pin for it is described it is two-sided can Other pins on interface in addition to charging communications pins, insertion detection pin and Mike's pin.
5. audio data processing method according to claim 1, it is characterised in that detecting audio number to be output According to before, or by the data signal by the first pin of the two-sided inserting interface send to the audio external play equipment it Afterwards, the audio data processing method also includes:
Receive the voice data of the digital signal form of the audio external play equipment transmission;The audio number of the digital signal form According to the voice data collected transmitted for the audio external play equipment by the 3rd pin of the two-sided inserting interface;
Default processing is carried out to the voice data received.
6. audio data processing method according to claim 1, it is characterised in that described to set having detected audio external play It is standby to be connected by two-sided inserting interface with the terminal, and when detecting voice data to be output, will be described to be output The step of voice data is converted to data signal includes:
When having detected audio external play equipment and being connected by two-sided inserting interface with the terminal, disconnect the two-sided inserting and connect The connection of mouth and USB data transfer circuit, connects the two-sided inserting interface and voice data transmission circuit, and When detecting voice data to be output, the voice data to be output is converted into data signal.
7. a kind of audio data processing method, applied to audio external play equipment, it is characterised in that including:
Receive the voice data for the digital signal form that the terminal being connected is sent by the first pin of two-sided inserting interface;
By the voice data of the digital signal form, it is decoded as exporting after the voice data of analog signal form.
8. audio data processing method according to claim 7, it is characterised in that receive the audio number of digital signal form According to before, or by the voice data of the digital signal form, it is decoded as after being exported after the voice data of analog signal form, The audio data processing method also includes:
Voice data is gathered, and the voice data collected is changed into data signal, is sent to the terminal.
9. a kind of terminal, it is characterised in that including:
First modular converter, for being connected by two-sided inserting interface with the terminal having detected audio external play equipment, and When detecting voice data to be output, the voice data to be output is converted into data signal;
First sending module, for the data signal to be sent to the sound by the first pin of the two-sided inserting interface Frequency external speaker;
Wherein, the digital signal decoding can be analog signal by the audio external play equipment.
10. terminal according to claim 9, it is characterised in that the terminal also includes:
First power supply module, for when having detected audio external play equipment and being connected by two-sided inserting interface with the terminal, Powered by the second pin of the two-sided inserting interface to the audio external play equipment.
11. terminal according to claim 9, it is characterised in that the terminal also includes:
First processing module, for when detecting the audio external play equipment and the terminal and disconnecting, disconnect it is described it is two-sided can The connection of interface and voice data transmission circuit, and connect the two-sided inserting interface and USB data transfer electricity Road.
12. terminal according to claim 9, it is characterised in that first pin is to be removed on the two-sided inserting interface Other pins charged outside communications pins, insertion detection pin and Mike's pin.
13. terminal according to claim 9, it is characterised in that the terminal also includes:
First receiving module, for before voice data to be output is detected, or the data signal is passed through described First pin of two-sided inserting interface is sent to the audio external play equipment, receives the number of the audio external play equipment transmission The voice data of word signal form;The voice data of the digital signal form passes through described two-sided for the audio external play equipment The voice data collected of the 3rd pin transmission of pluggable mouth;
Second processing module, for carrying out default processing to the voice data received.
14. terminal according to claim 9, it is characterised in that first modular converter includes:
First processing submodule, for being connected by two-sided inserting interface with the terminal having detected audio external play equipment When, the connection of the two-sided inserting interface and USB data transfer circuit is disconnected, the two-sided inserting interface is connected With voice data transmission circuit, and when detecting voice data to be output, the voice data to be output is changed For data signal.
15. a kind of audio external play equipment, it is characterised in that including:
Second receiving module, for receiving the data signal that the terminal being connected is sent by the first pin of two-sided inserting interface The voice data of form;
3rd processing module, for by the voice data of the digital signal form, being decoded as the audio number of analog signal form According to rear output.
16. audio external play equipment according to claim 15, it is characterised in that the audio external play equipment also includes:
Before fourth processing module, the voice data for receiving digital signal form, or by the sound of the digital signal form Frequency evidence, is decoded as after being exported after the voice data of analog signal form, gathers voice data, and by the audio number collected According to data signal is changed into, send to the terminal.
17. a kind of terminal, it is characterised in that including:Memory, processor and storing can be transported on a memory and on a processor Capable computer program, sound of the realization as described in any one of claim 1 to 6 during computer program described in the computing device Step in frequency data processing method.
CN201710401271.1A 2017-05-31 2017-05-31 A kind of audio data processing method, terminal and audio external play equipment Pending CN107277686A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710401271.1A CN107277686A (en) 2017-05-31 2017-05-31 A kind of audio data processing method, terminal and audio external play equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710401271.1A CN107277686A (en) 2017-05-31 2017-05-31 A kind of audio data processing method, terminal and audio external play equipment

Publications (1)

Publication Number Publication Date
CN107277686A true CN107277686A (en) 2017-10-20

Family

ID=60065712

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710401271.1A Pending CN107277686A (en) 2017-05-31 2017-05-31 A kind of audio data processing method, terminal and audio external play equipment

Country Status (1)

Country Link
CN (1) CN107277686A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN205809857U (en) * 2016-06-16 2016-12-14 徐文波 Audio frequency instructor in broadcasting's equipment
CN106610912A (en) * 2016-12-23 2017-05-03 努比亚技术有限公司 Signal generation method and equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN205809857U (en) * 2016-06-16 2016-12-14 徐文波 Audio frequency instructor in broadcasting's equipment
CN106610912A (en) * 2016-12-23 2017-05-03 努比亚技术有限公司 Signal generation method and equipment

Similar Documents

Publication Publication Date Title
CN107145331A (en) A kind of charging and the method and terminal of voice data processing
CN105246000A (en) Method for improving sound quality of headset and mobile terminal
CN103634717B (en) A kind of method, device and the terminal device of the control of utilization earphone
CN106874233A (en) A kind of Type C interface control circuit, control method and mobile terminal
CN105916074A (en) Play control method for multimedia and terminal
CN107168609A (en) status bar display method, device and terminal
CN108541080A (en) First electronic equipment and the second electronic equipment carry out the method and Related product of Hui Lian
CN106851486B (en) A kind of switching method and mobile terminal of earphone sound channel
CN107743279A (en) A kind of earphone noise-reduction method, earphone and mobile terminal
CN106101409A (en) A kind of mobile terminal and control method
CN106878868A (en) A kind of control device of loudspeaker, method and mobile terminal
CN106685007A (en) Power supply control circuit for peripheral equipment, power supply method and mobile terminal
CN106714038A (en) Sound loudness control method and mobile terminal
CN108268395A (en) A kind of method and mobile terminal of data communication
CN108934083A (en) Communicate to connect method for building up and relevant device
CN107819931A (en) A kind of audio frequency playing method and mobile terminal based on wireless headset
CN108271093A (en) The processing method and mobile terminal of a kind of access device
CN107291415A (en) A kind of charging and the method and terminal of voice data processing
CN107257406B (en) A kind of method and terminal to charge and audio data is handled
CN107734589A (en) A kind of data transmission method and mobile terminal based on wireless headset
CN107708093A (en) A kind of method and mobile terminal that relaying data network is established using wireless headset
CN107277686A (en) A kind of audio data processing method, terminal and audio external play equipment
CN108268399A (en) A kind of method and mobile terminal of data communication
CN206481445U (en) A kind of mobile terminal and earphone
CN107273084A (en) A kind of audio data processing method, terminal and audio external play equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20171020