CN105955694A - Method and device for outputting HiFi audio frequency - Google Patents

Method and device for outputting HiFi audio frequency Download PDF

Info

Publication number
CN105955694A
CN105955694A CN201610250799.9A CN201610250799A CN105955694A CN 105955694 A CN105955694 A CN 105955694A CN 201610250799 A CN201610250799 A CN 201610250799A CN 105955694 A CN105955694 A CN 105955694A
Authority
CN
China
Prior art keywords
hifi
mobile
transducer
signal
spdif
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.)
Granted
Application number
CN201610250799.9A
Other languages
Chinese (zh)
Other versions
CN105955694B (en
Inventor
曾慧鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201610250799.9A priority Critical patent/CN105955694B/en
Publication of CN105955694A publication Critical patent/CN105955694A/en
Application granted granted Critical
Publication of CN105955694B publication Critical patent/CN105955694B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/162Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The invention discloses a method and a device for outputting HiFi audio frequency. The method comprises: a Mobile-HiFi converter receiving an original PCM code stream and PCM format information sent by a mobile terminal; the Mobile-HiFi converter determining a standard clock based on the PCM format information; the Mobile-HiFi converter converting the PCM code stream to a zero-error I2S signal according to the standard clock, and outputting the I2S signal to an audio player device. The method and the device realizes to convert the original PCM code stream output by the mobile terminal to the zero-error I2S signal through the Mobile-HiFi converter, and the I2S signal is directly output to the audio player device which supports HiFi. The converting and outputting process greatly limits generation of jitter, and preferably assists high fidelity outputting of tone quality when the mobile terminal is used as a sound source.

Description

A kind of HiFi audio-frequency inputting method and device
The application is filing date December in 2012 27, Application No. " 201210579386.7 ", invention The divisional application of the application for a patent for invention of entitled " a kind of HiFi audio-frequency inputting method, device and system ".
Technical field
The present invention relates to communication technical field, particularly relate to a kind of HiFi (High-Fidelity high-fidelity) audio frequency Output intent and device.
Background technology
(Mobile Internet Device moves for Android (Android) intelligent mobile terminal and MID at present Internet device) the most universal, Android mobile terminal has abundant software, off-line can be play With the audio-video document of online high-quality, greatly facilitate everybody entertainment life.Android moves end It is many that end has playout software relative to common player, and UI (User Interface, user interface) interface is good, Support network, the advantage such as portable.But for pursuing the use having had HiFi sound system in HiFi tonequality and family For family, Android mobile terminal is unsatisfactory as tonequality during HiFi source of sound, causes the reason master of this problem It is:
SRC (Sample Rate intrinsic for Audioflinger (audio manager) in 1, Android framework Convertor, sample rate conversion) problem:
Android framework in order to the old-fashioned ALSA of compatibility (Advanced Linux Sound Architecture, Senior Linux sound framework) drive, so the PCM that sample rate is 44.1KHz have to be transmitted downwards (Pulse Code Modulation, pulse code modulation) code stream form, the voice data of other sample rates is all Need to do SRC sample rate conversion.And the audio sample rate that high-quality audio frequency and video use at present is all 48KHz The sample rate of the most higher 96KHz, 192KHz.So high-quality audio frequency sends into driving after the decoding All can force before broadcasting to carry out SRC conversion, the principle of SRC is to use new frequency to enter the data sampled Row resampling, when new sample rate is less than the integral multiple that old sample rate or new sample rate are not old sample rates, The signal meeting serious distortion original signal that sampling obtains, as it is shown in figure 1, voice data just creates mistake in source Very, when the sound of distortion can cause original Hi-quality Playback, sound field is deteriorated, and the crude sense of high frequency increases.
2, crystal oscillator inferior quality:
Do not introduce distortion during digital audio transmission, but when being converted into analogue signal, need high-precision clock Can perfectly reduce original analog, so crystal oscillator is maximum on tonequality impact.Common Android Mobile terminal, will not (44.1KHz needs 45.1584M etc. specially exclusively with characteristic frequency because it is contemplated that cost Industry crystal oscillation fractional frequency obtains) and the professional audio clock of band temperature compensation:
Amateur clock such as 12M standard crystal oscillator, owing to not being integral multiple relation with 44.1KHz, it is impossible to passes through Frequency dividing regain accurately 44.1K clock to DAC (digital to analog converter) decoding when producing jitter base tremble Dynamic, as in figure 2 it is shown, jitter can allow the analogue signal converting digital signals into correspondence that DAC cannot be correct, Produce distortion.So the tonequality of the ordinary audio of the 44.1KHz sample rate now play can be deteriorated
It addition, crystal oscillator is affected by temperature and electromagnetic interference etc. on mobile terminal, stablizing of clock all can be affected Property, also can introduce jitter shake.
3, SOC (System on Chip, system level chip) built-in sound card impact on tonequality:
One complete sound card includes Digital Signal Processing, digital-to-analogue conversion, LPF (low pass filter) and voltage Current amplifier function.In addition to the tonequality deterioration factor that crystal oscillator causes, the SOC that mobile terminal uses is built-in Sound card at digital-to-analogue conversion algorithm, in filtering and amplifying circuit, the most do not do the process of specialty, to tonequality Affect and be mainly manifested in following several aspect:
1) algorithm of Digital Signal Processing and digital-to-analogue conversion can introduce distortion;
2) LPF and analog circuit cannot provide good signal to noise ratio and straight frequency response curve, and electromagnetism is done Disturb the obvious low noise of introducing;
3) boosting and Current amplifier are limited in one's ability, it is impossible to meet acoustic pressure and the current requirements of high impedance earphone.
4, the power supply mode of mobile terminal also has influence on power and the thrust of output, the earphone of all mobile terminals Output cannot well promote high resistant Hi-Fi earphone.
In sum, it is known that affecting mobile terminal sound qualitative factor at present has a lot, then how to provide a kind of Mechanism so that be capable of HD Audio output when mobile terminal is as source of sound, become the most urgently to be resolved hurrily Technical problem.
Summary of the invention
The present invention provides a kind of HiFi audio-frequency inputting method, device and system, in order to solve shifting in prior art The problem that dynamic terminal can not meet HD Audio output as source of sound.
In order to solve above-mentioned technical problem, the technical solution used in the present invention is as follows:
On the one hand, the present invention provides a kind of HiFi audio-frequency inputting method, including:
Mobile-HiFi transducer receives original pcm stream and the PCM format information that mobile terminal sends;
Mobile-HiFi transducer, based on described PCM format information, determines standard time clock;
Described pcm stream, according to described standard time clock, is converted to zero error by Mobile-HiFi transducer I2S signal, and described I2S signal is exported to audio-frequence player device.
Alternatively, in the method for the invention, logical between described Mobile-HiFi transducer and described mobile terminal Cross wired or wireless mode to connect;
When wirelessly connecting, set up between described Mobile-HiFi transducer and described mobile terminal and have: Connect in order to transmit the UDP UDP of PCM format information, and in order to transmit pcm stream Transmission control protocol TCP connect.
Alternatively, in the method for the invention, described Mobile-HiFi transducer is based on described PCM format Information, determines standard time clock, specifically includes:
Described Mobile-HiFi transducer, based on described PCM format information, is changed at described Mobile-HiFi The crystal oscillator group that device is built-in selects the crystal oscillator with described PCM format information matches;
The standard time clock that described Mobile-HiFi transducer provides with the described crystal oscillator selected is the standard determined Clock.
Alternatively, in the method for the invention, the built-in crystal oscillator group of described Mobile-HiFi transducer includes Support 44.1KHz and the crystal oscillator of multiple thereof and include supporting 48KHz and the crystal oscillator of multiple thereof.
Alternatively, in the method for the invention, described by described I2S signal export to audio-frequence player device, enter One step includes: described I2S signal is converted to SPDIF signal by Mobile-HiFi transducer, and by described SPDIF signal exports to audio-frequence player device.
Alternatively, in the method for the invention, before by described SPDIF signal output to audio-frequence player device, Farther include: described SPDIF signal is carried out isolation processing.
On the other hand, the present invention also provides for a kind of Mobile-HiFi transducer, including:
Information receiving module, for receiving original pcm stream and the PCM format that mobile terminal side sends Information, and the information received is sent to Micro-processor MCV;
Micro-processor MCV, for based on described PCM format information, determines standard time clock, and according to institute State standard time clock, described pcm stream is converted to the I2S signal of zero error, and by defeated for described I2S signal Go out to audio-frequence player device.
Alternatively, in Mobile-HiFi transducer of the present invention, described Mobile-HiFi transducer and institute State and connected by wired or wireless mode between mobile terminal;
When wirelessly connecting, set up between described Mobile-HiFi transducer and described mobile terminal and have: Connect in order to transmit the UDP UDP of PCM format information, and in order to transmit pcm stream Transmission control protocol TCP connect.
Alternatively, in Mobile-HiFi transducer of the present invention, described Mobile-HiFi transducer also wraps Include crystal oscillator group;
Described MCU, specifically for based on described PCM format information, selects and institute in described crystal oscillator group State the crystal oscillator of PCM format information matches, and the standard time clock provided with the described crystal oscillator selected is determine Standard time clock.
Alternatively, in Mobile-HiFi transducer of the present invention, described crystal oscillator group includes supporting 44.1KHz And the crystal oscillator of multiple and include supporting 48KHz and the crystal oscillator of multiple thereof.
Alternatively, in Mobile-HiFi transducer of the present invention, described Mobile-HiFi transducer also wraps Include: the conversion chip of I2S to SPDIF;
Described MCU, for based on described PCM format information, determines standard time clock, and according to described mark Punctual clock, is converted to described pcm stream the I2S signal of zero error, and is sent to by described I2S signal The conversion chip of described I2S to SPDIF;
The conversion chip of described I2S to SPDIF, for the I2S signal of reception is converted to SPDIF signal, And described SPDIF signal is exported to audio-frequence player device.
Alternatively, in Mobile-HiFi transducer of the present invention, described Mobile-HiFi transducer also wraps Include: SPDIF sends chip;
The conversion chip of described I2S to SPDIF, for the I2S signal of reception is converted to SPDIF signal, And the output of described SPDIF signal is sent chip to described SPDIF;
Described SPDIF sends chip, and after described SPDIF signal is carried out isolation processing, output is to sound Frequently playback equipment.
The present invention has the beneficial effect that:
The original pcm stream that the present invention is achieved mobile terminal exports by Mobile-HiFi transducer turns It is changed to the I2S signal of zero error, and I2S signal is directly output to support the audio-frequence player device of HiFi, This conversion and output procedure significantly limit the generation of jitter, well facilitate mobile terminal as source of sound Time tonequality high-fidelity output.
It addition, the present invention is arranged in Mobile-HiFi transducer I2S to SPDIF conversion chip or The conversion chip of person I2S to SPDIF and SPDIF send chip so that Mobile-HiFi transducer can be held concurrently Hold more universal coaxial interface.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to enforcement In example or description of the prior art, the required accompanying drawing used is briefly described, it should be apparent that, retouch below Accompanying drawing in stating is only some embodiments of the present invention, for those of ordinary skill in the art, not On the premise of paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the schematic diagram in prior art through the deterioration of SRC conversion process tonequality;
Fig. 2 is the jitter schematic diagram on tonequality deterioration impact in prior art;
The flow process of the Mobile-HiFi transducer side HiFi audio-frequency inputting method that Fig. 3 provides for the embodiment of the present invention Figure;
The structured flowchart of a kind of mobile terminal that Fig. 4 provides for the embodiment of the present invention;
Fig. 5 be mobile terminal described in the embodiment of the present invention interface schematic diagram is set;
Fig. 6 is the audio frequency playing flow figure after AudioFlinger function described in the embodiment of the present invention is improved;
Fig. 7 is to set up between virtual HiFi sound card module and Mobile-HiFi transducer described in the embodiment of the present invention to lead to The schematic diagram that letter connects;
The structured flowchart of a kind of Mobile-HiFi transducer that Fig. 8 provides for the embodiment of the present invention;
Fig. 9 is the general frame flow chart of the HiFi audio-frequency inputting method described in the embodiment of the present invention;
The structured flowchart of a kind of HiFi audio output system that Figure 10 provides for the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearly Chu, be fully described by, it is clear that described embodiment be only a part of embodiment of the present invention rather than Whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creation The every other embodiment obtained under property work premise, broadly falls into the scope of protection of the invention.
The embodiment of the present invention provides a kind of HiFi audio-frequency inputting method, device and system, and it is with cheap cost Mobile terminal is converted to wireless digital rotating disk, well solves in prior art mobile terminal as source of sound The problem that can not meet HD Audio output.Separately below to this in terms of methods, devices and systems are several Technical scheme described in invention carries out launching explanation.
Embodiment one
The embodiment of the present invention provides a kind of HiFi audio-frequency inputting method, including:
The audio manager AudioFlinger of mobile terminal receive pulse code modulation pcm stream and After PCM format information, the virtual HiFi sound card being pre-configured with in being pass-through to mobile terminal;
Alternatively, in this step, when AudioFlinger receives pcm stream and PCM format information, Farther include: whether AudioFlinger detection mobile terminal opens HiFi output function, and in detection To HiFi output function open time, described pcm stream and PCM format information are pass-through to mobile terminal The virtual HiFi sound card being inside pre-configured with.
Preferably, mobile terminal, when HiFi output function is opened, enables testing mechanism, and based on user Test triggers, and sets up and verifies the communication connection between described virtual HiFi sound card and Mobile-HiFi transducer.
Further, virtual HiFi sound card, will by the communication connection set up between Mobile-HiFi transducer Described pcm stream and the transmission of PCM format information are to described Mobile-HiFi transducer;
In this step, the communication connection set up between described virtual HiFi sound card and Mobile-HiFi transducer includes Wired connection or wireless connections, when for wireless connections, the communication connection of foundation includes: in order to transmit PCM The UDP of format information connects, and connects in order to transmit the TCP of pcm stream.
Mobile-HiFi transducer side receives the handling process such as Fig. 3 institute after the information that mobile terminal side sends Show, comprise the steps:
Step S301, Mobile-HiFi transducer receives pcm stream and the PCM format that mobile terminal sends Information;
Step S302, Mobile-HiFi transducer is based on the PCM format information received, when determining standard Clock;
In this step, Mobile-HiFi transducer is based on the PCM format information received, when determining standard Clock, specifically includes:
1) Mobile-HiFi transducer is based on the described PCM format information received, at described Mobile-HiFi The crystal oscillator group that transducer is built-in selects the crystal oscillator with described PCM format information matches;
2) standard time clock that Mobile-HiFi transducer provides with the crystal oscillator selected is the standard time clock determined.
Step S303, Mobile-HiFi transducer is according to described standard time clock, the pcm stream that will receive Be converted to the I2S signal of zero error, and described I2S signal is exported to audio-frequence player device.
Preferably, this step can also be implemented as follows, and described I2S is believed by Mobile-HiFi transducer Number be converted to SPDIF signal, and described SPDIF signal is exported to audio-frequence player device.
It is highly preferred that before by described SPDIF signal output to audio-frequence player device, farther include: right Described SPDIF signal carries out isolation processing.
In sum, method described in the embodiment of the present invention is by carrying out merit to the AudioFlinger in mobile terminal Can improve and in terminal, set up virtual HiFi sound card module, it is achieved that the output to original pcm stream, Avoid AudioFlinger and pcm stream is carried out SRC, equilibrium and audio adjustment, it is ensured that data Integrity, and then achieve when mobile terminal is as source of sound, it is ensured that tonequality high-fidelity exports.
Embodiment two
As shown in Figure 4, the embodiment of the present invention provides a kind of mobile terminal, including:
Audio manager AudioFlinger410, after being used for receiving pcm stream and PCM format information, It is pass-through to virtual HiFi sound card module 420;
Wherein, AudioFlinger410, specifically for receiving pcm stream and PCM format information After, whether detection mobile terminal opens HiFi output function, and when detecting that HiFi output function is opened, Described pcm stream and PCM format information are pass-through to virtual HiFi sound card module 420.
Virtual HiFi sound card module 420, for the communication connection by setting up between Mobile-HiFi transducer, Described pcm stream and PCM format information are transmitted to described Mobile-HiFi transducer.
Wherein, virtual HiFi sound card module 420, specifically for utilizing and setting up between Mobile-HiFi transducer UDP connects transmission PCM format information, and utilizes and set up TCP between Mobile-HiFi transducer and be connected Transmission pcm stream.
Wherein, between virtual HiFi sound card module and Mobile-HiFi transducer by wired or wireless mode (as WiFi communication) communicate.
Preferably, mobile terminal described in the embodiment of the present invention, also include: test module 430, at HiFi When output function is opened, enable testing mechanism, and test based on user triggers, and sets up and verifies described void Intend the communication connection between HiFi sound card module and Mobile-HiFi transducer.
Illustrate based on said structure, improve and virtual from HiFi function setting, AudioFlinger separately below Several aspect that arranges of HiFi sound card module realizes the concrete real of tonequality improvement to mobile terminal described in the present embodiment Existing process is further elaborated, and is specifically related to following content:
One, increase Settings user interface: as it is shown in figure 5, design HD Audio output arranges module, UI/UE and the linkage function of Mobile-HiFi transducer based on WiFi are provided.
After " enable HiFi output " clicks, mobile terminal arranges an attribute " persist.sys.usehifi=ture " Whether judging the enable of HiFi for follow-up AudioFlinger, automatically open up WiFi simultaneously, enable " arranges nothing Line digital audio care connects " button.
" wireless digital sound card connects setting " provides WiFi linkage interface, finds Mobile-HiFi transducer Corresponding SSID (service set, Service Set Identifier) the most manual/auto connection, can after connection To be communicated by testing button test IP, and verify UDP, TCP end being used for transmitting control information and data Mouthful.
Two, AudioFlinger improve:
After HiFi output intent option is opened, AudioFlinger can not directly change the line being currently played Journey and the broadcasting of track (track), only set up HiFi output and support, output it and set newly-built track For being tied in the output of virtual HiFi sound card.
As shown in Figure 6, player process controls media by libmedia (media library) and takes HiFi output flow process Business device Mediaserver process decoding and broadcasting, after the decoding of Mediaserver process, pass through pcm stream AudioTrack is sent to MediaServer process in real time as medium and AudioFlinger can access FIFO Buffer (first in first out buffer area), AudioFlinger then start broadcasting thread constantly from FIFO Buffer consumes PCM data.If being now not detected by attribute persist.sys.userhifi=true, play line Journey will continue to use traditional mode, carry out SRC, EQ (equalizer) as required, and Volume (volume) adjusts Joint processes, and is then fed into audio frequency apparatus and plays out;Otherwise play thread and pcm stream is supplied directly to void Intend HiFi sound card module.
Three, virtual HiFi sound card module:
Virtual HiFi sound card module (being operated in Client pattern) can receive sample rate, and position is deep waits PCM code The format information of stream and pcm stream, by Socket (socket) be operated in Server pattern Mobile-HiFi transducer is set up and is connected, as it is shown in fig. 7, wherein, the connection of foundation include UDP connect and TCP connects.UDP connects work and the stopping transmitting control instruction to control rear end, by transmission PCM lattice Formula information, in order to the generation clock that rear end can be correct;TCP connects real-time Transmission pcm stream, it is provided that rear end Generate I2S signal.
In sum, mobile terminal of the present invention, by carrying out merit to the AudioFlinger in mobile terminal Can improve and in terminal, set up virtual HiFi sound card module, it is achieved that the output to original pcm stream, Avoid AudioFlinger and pcm stream is carried out SRC, equilibrium and audio adjustment, it is ensured that data Integrity, and then achieve when mobile terminal is as source of sound, it is ensured that tonequality high-fidelity exports.
Embodiment three
As shown in Figure 8, the embodiment of the present invention provides a kind of Mobile-HiFi transducer, including:
Information receiving module 810, for receiving pcm stream and the PCM format letter that mobile terminal side sends Breath, and the information received is sent to Micro-processor MCV;
Micro-processor MCV 820, for Based PC M format information, determines standard time clock, and according to described Standard time clock, is converted to described pcm stream the I2S signal of zero error, and is exported by described I2S signal To audio-frequence player device.
In the present embodiment, Mobile-HiFi transducer is connected by wired or wireless mode with between mobile terminal; When wirelessly connecting, set up between Mobile-HiFi transducer and mobile terminal and have: in order to transmit The UDP UDP of PCM format information connects, and in order to transmit the transmission control of pcm stream Agreement TCP processed connects.
Preferably, described in the present embodiment, Mobile-HiFi transducer also includes crystal oscillator group 830;MCU820 base In described PCM format information, described crystal oscillator group 830 selects the crystal oscillator with PCM format information matches, And the standard time clock of the described crystal oscillator offer to select is the standard time clock determined.
In a preferred embodiment of the invention, described Mobile-HiFi transducer also includes: I2S arrives The conversion chip 840 of SPDIF, now:
MCU820, based on described PCM format information, determines standard time clock, and according to described standard time clock, Described pcm stream is converted to the I2S signal of zero error, and described I2S signal is sent to described I2S Conversion chip 840 to SPDIF;
The conversion chip 840 of I2S to SPDIF, for being converted to SPDIF by the I2S signal that MCU820 sends Signal, and described SPDIF signal is exported to audio-frequence player device.Preferably, this I2S to SPDIF Conversion chip is to have independent crystal oscillator and the conversion chip of built-in phase-locked loop pll.
In a preferred embodiment of the invention, Mobile-HiFi transducer also includes: SPDIF sends core Sheet 850, now:
The conversion chip 840 of I2S to SPDIF, for the I2S signal of reception is converted to SPDIF signal, And the output of described SPDIF signal is sent chip 850 to SPDIF;
SPDIF sends chip 850, and after described SPDIF signal is carried out isolation processing, output is to sound Frequently playback equipment.
The embodiment of the present invention achieves the PCM code of mobile terminal side by setting up Mobile-HiFi transducer Circulation is changed to I2S signal and significantly limit the generation of jitter.Described in the visible embodiment of the present invention Mobile-HiFi transducer matches with mobile terminal, it is achieved that when mobile terminal is as source of sound, it is ensured that Tonequality high-fidelity exports.It addition, the present invention arranges I2S to SPDIF's in Mobile-HiFi transducer Conversion chip or the conversion chip of I2S to SPDIF and SPDIF send chip so that Mobile-HiFi Transducer can compatible more universal coaxial interface.
Embodiment four
The embodiment of the present invention is that device described in method described in embodiment one and embodiment two, three is entered one Step illustrates, combines from mobile terminal side and Mobile-HiFi transducer side respectively and implements details, to this The technical scheme of bright offer is further elaborated, and certainly, implementing described in the present embodiment is thin Joint is only used for explaining the present invention, the most uniquely limits the present invention, is specifically related to following content:
The HiFi audio frequency that HiFi audio frequency output scheme is Android mobile terminal that the embodiment of the present invention is proposed Output scheme.The program can utilize the broadband network that the powerful software platform of Android terminal is provided, Massive store, high-speed decoding, the advantage such as abundant third party software, set up powerful audio frequency and video many Media playback service platform, this platform is responsible for providing that Consumer's Experience is good, the player interface of complete function, And the audio frequency and video of various compressions or lossless format are converted to original PCM format data stream.Existing Android platform does not support this direct output original PCM format code stream, and the embodiment of the present invention is by right Android platform audio frequency framework AudioFlinger improves so that it is possesses and exports original pcm stream Ability.Owing to original PCM format Tstream is like the audio frequency of WAV form, PCM data is not because Carry temporal information, it is not necessary to clock supports that it transmits, so during pcm stream transmits in theory not Jitter and distortion can be introduced.
Mobile terminal described in the embodiment of the present invention by by original pcm stream through wired (such as USB Mode) or it is transmitted wire-lessly on Mobile-HiFi transducer, Mobile-HiFi transducer is responsible for receiving former Beginning pcm stream, then according to the sample rate of pcm stream with position is deep is converted to corresponding I2S (Inter IC Sound) signal and SPDIF signal.A certain proportion of consumer level DAC has been had to support I2S signal at present Input, so I2S signal can also directly export and play, but in view of the overwhelming majority DAC only prop up Hold the pattern of the input of SPDIF, so Mobile-HiFi transducer also needs to have, I2S signal is converted to The ability of SPDIF.After Mobile-HiFi transducer, original pcm stream just can be converted to disappear Taking level DAC and signal that digital power amplifier can receive, Android mobile terminal is converted to by the program to be possessed Online/local advanced digital rotating disk play.
As a example by connecting using Android4.0 version and WiFi as the network with Mobile-HiFi transducer below, The detailed description of the invention of the embodiment of the present invention described in technical scheme be discussed in detail:
As it is shown in figure 9, for the general frame of technical scheme described in inventive embodiments and flow process, implemented Journey is as follows:
Step 1, user controls whether to enable HiFi Out function by Settings (setting), and passes through The connection of the Mobile-HiFi transducer that WiFi sets up and is operated under ap mode.
Step 2, local audio code stream (such as: ape, flac, wav, mp3, wma)/online code stream (example Such as HLS, RTPS) solve through media server mediaserver or the third party of Android mobile terminal Original pcm stream and PCM format information is converted to after the decoding of code engine.
Step 3, pcm stream sends AudioFlinger, AudioFlinger to and checks HiFi Out function Enable, then opened virtual HiFi sound card module, and the PCM passed over by mediaserver in real time Format information and PCM source code flow are not added with Mix (stereo process), and Effect (audio effect processing), at SRC Reason, passes through virtual HiFi sound card module.
Step 4, after the virtual HiFi sound card module in AudioFlinger receives the format information of PCM and Mobile-HiFi transducer controls port and sets up UDP (User Datagram Protocol, User Datagram Protocol View) connect, sent by UDP and there is PCM sample rate and the PCM format information of breath is deeply convinced in position.
Step 5, after the PCM initial data code stream that virtual HiFi sound card receives, changes with Mobile-HiFi Device is set up TCP and is connected, and by TCP real-time transparent transmission PCM initial data code stream.
Step 6, the MCU (micro-control unit) in Mobile-HiFi transducer divides from UDP, tcp port Not Huo get formatted data and played data, according to formatted data select coupling crystal oscillator, generate zero error I2S Signal;Wherein, according to formatted data select coupling crystal oscillator particularly as follows: according to the sample rate in formatted data, The crystal oscillator mated with described sample rate is selected in the crystal oscillator group of Mobile-HiFi transducer;Preferably, crystal oscillator Group includes supporting 44.1KHz and the crystal oscillator of multiple thereof, and includes supporting 48KHz and the crystal oscillator of multiple thereof.
Step 7, on the one hand the I2S signal that Mobile-HiFi transducer generates can be directly output to support HiFi DAC decoder, the coaxial interface on the other hand more popularized for compatibility, specialty can be sent into I2S--> SPDIF chip, generates SPDIF signal, then it is defeated to do isolation through professional SPDIF transmission chip Go out, it is ensured that signal is clean.Wherein, described I2S--> SPDIF chip is for having independent crystal oscillator and built-in PLL The conversion chip of (Phase Locked Loop, phaselocked loop), it can export the SPDIF letter of low jitter value Number.
Step 8, Mobile-HiFi transducer is exported by the Specialty Hi-Fi equipment of Mobile-HiFi transducer rear end Signal decode, filter, after processing and amplifying, be finally output to high-fidelity loudspeaker.
In sum, technical scheme described in the embodiment of the present invention achieves when mobile terminal is as source of sound, protects Demonstrate,prove the output of tonequality high-fidelity.Exactly, the embodiment of the present invention ensure that tonequality from the following aspects:
1, from Android audio frequency framework, intercept and capture the PCM source code flow of unprocessed mistake, it is to avoid SRC And equalizer, effect device adjusts, it is ensured that data are complete.
2, PCM source code flows without temporal information, are not subject to intelligence eventually during WiFi transmission/wire transmission The internal crystal oscillator of end and high-frequency electromagnetic interference effect.
3, Mobile-HiFi transducers are by the format analysis to PCM source code flow, Dynamic Matching and sampling The crystal oscillator of rate integral multiple, is converted to I2S signal by pcm stream zero error, greatly limits the generation of jitter.
4, be there is the conversion chip of I2S to the SPDIF of independent crystal oscillator and built-in PLL by employing, output The SPDIF signal of low jitter value.
Furthermore, technical scheme described in the embodiment of the present invention can also be from reducing cost following aspects:
1, Android terminal is to also serve as numeral rotating disk, does not produce extra charge.
2, Mobile-HiFi transducers can be received chip by USB or network, commonly be had what I2S exported 32 single-chip microcomputers, I2S is converted to SPDIF chip and several the active crystal oscillators of professional audio are constituted, manufacturing cost Relatively low;It addition, the reception of Mobile-HiFi transducer related network can be by existing wireless router, this Time, Mobile-HiFi transducer can also omit the WiFi chip of costliness.
Embodiment five
As shown in Figure 10, the embodiment of the present invention also provides for a kind of HiFi audio output system, and this system includes reality Execute the mobile terminal described in example two and the Mobile-HiFi transducer described in embodiment three.The embodiment of the present invention Described system, by carrying out function improvement and setting up void in terminal to the AudioFlinger in mobile terminal Intend HiFi sound card module, it is achieved that the output to original pcm stream, it is to avoid AudioFlinger is to PCM Code stream carries out SRC, equilibrium and audio and adjusts, it is ensured that the integrity of data.Furthermore, the present invention passes through Set up Mobile-HiFi transducer to achieve and pcm stream is converted to I2S signal significantly limit jitter Generation.Mobile terminal can be converted to wireless digital rotating disk by visible technical scheme of the present invention, it is achieved When mobile terminal is as source of sound, it is ensured that tonequality high-fidelity exports, and well solves in prior art The problem existed.
Obviously, those skilled in the art can carry out various change and modification without deviating from this to the present invention Bright spirit and scope.So, if the present invention these amendment and modification belong to the claims in the present invention and Within the scope of its equivalent technologies, then the present invention is also intended to comprise these change and modification.

Claims (12)

1. a high-fidelity HiFi audio-frequency inputting method, it is characterised in that including:
Mobile-HiFi transducer receives original pcm stream and the PCM format information that mobile terminal sends;
Mobile-HiFi transducer, based on described PCM format information, determines standard time clock;
Described pcm stream, according to described standard time clock, is converted to zero error by Mobile-HiFi transducer I2S signal, and described I2S signal is exported to audio-frequence player device.
2. the method for claim 1, it is characterised in that described Mobile-HiFi transducer and institute State and connected by wired or wireless mode between mobile terminal;
When wirelessly connecting, set up between described Mobile-HiFi transducer and described mobile terminal and have: Connect in order to transmit the UDP UDP of PCM format information, and in order to transmit pcm stream Transmission control protocol TCP connect.
3. the method for claim 1, it is characterised in that described Mobile-HiFi transducer based on Described PCM format information, determines standard time clock, specifically includes:
Described Mobile-HiFi transducer, based on described PCM format information, is changed at described Mobile-HiFi The crystal oscillator group that device is built-in selects the crystal oscillator with described PCM format information matches;
The standard time clock that described Mobile-HiFi transducer provides with the described crystal oscillator selected is the standard determined Clock.
4. method as claimed in claim 3, it is characterised in that described Mobile-HiFi transducer is built-in Crystal oscillator group include supporting 44.1KHz and the crystal oscillator of multiple thereof and including supporting 48KHz and multiple thereof Crystal oscillator.
5. the method as described in Claims 1-4 any one, it is characterised in that described by described I2S Signal exports to audio-frequence player device, farther includes: described I2S signal is turned by Mobile-HiFi transducer It is changed to SPDIF signal, and described SPDIF signal is exported to audio-frequence player device.
6. method as claimed in claim 5, it is characterised in that described SPDIF signal is being exported to sound Frequently before playback equipment, farther include: described SPDIF signal is carried out isolation processing.
7. a Mobile-HiFi transducer, it is characterised in that including:
Information receiving module, for receiving original pcm stream and the PCM format that mobile terminal side sends Information, and the information received is sent to Micro-processor MCV;
Micro-processor MCV, for based on described PCM format information, determines standard time clock, and according to institute State standard time clock, described pcm stream is converted to the I2S signal of zero error, and by defeated for described I2S signal Go out to audio-frequence player device.
8. Mobile-HiFi transducer as claimed in claim 7, it is characterised in that described Mobile-HiFi It is connected by wired or wireless mode between transducer with described mobile terminal;
When wirelessly connecting, set up between described Mobile-HiFi transducer and described mobile terminal and have: Connect in order to transmit the UDP UDP of PCM format information, and in order to transmit pcm stream Transmission control protocol TCP connect.
9. Mobile-HiFi transducer as claimed in claim 7, it is characterised in that described Mobile-HiFi Transducer also includes crystal oscillator group;
Described MCU, specifically for based on described PCM format information, selects and institute in described crystal oscillator group State the crystal oscillator of PCM format information matches, and the standard time clock provided with the described crystal oscillator selected is determine Standard time clock.
10. Mobile-HiFi transducer as claimed in claim 9, it is characterised in that in described crystal oscillator group Including supporting 44.1KHz and the crystal oscillator of multiple thereof and including supporting 48KHz and the crystal oscillator of multiple thereof.
The 11. Mobile-HiFi transducers as described in claim 7 to 10 any one, it is characterised in that Described Mobile-HiFi transducer also includes: the conversion chip of I2S to SPDIF;
Described MCU, for based on described PCM format information, determines standard time clock, and according to described mark Punctual clock, is converted to described pcm stream the I2S signal of zero error, and is sent to by described I2S signal The conversion chip of described I2S to SPDIF;
The conversion chip of described I2S to SPDIF, for the I2S signal of reception is converted to SPDIF signal, And described SPDIF signal is exported to audio-frequence player device.
12. Mobile-HiFi transducers as claimed in claim 11, it is characterised in that described Mobile-HiFi Transducer also includes: SPDIF sends chip;
The conversion chip of described I2S to SPDIF, for the I2S signal of reception is converted to SPDIF signal, And the output of described SPDIF signal is sent chip to described SPDIF;
Described SPDIF sends chip, and after described SPDIF signal is carried out isolation processing, output is to sound Frequently playback equipment.
CN201610250799.9A 2012-12-27 2012-12-27 A kind of HiFi audio-frequency inputting method and device Expired - Fee Related CN105955694B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610250799.9A CN105955694B (en) 2012-12-27 2012-12-27 A kind of HiFi audio-frequency inputting method and device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210579386.7A CN103077003B (en) 2012-12-27 2012-12-27 A kind of HiFi audio-frequency inputting method, device and system
CN201610250799.9A CN105955694B (en) 2012-12-27 2012-12-27 A kind of HiFi audio-frequency inputting method and device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201210579386.7A Division CN103077003B (en) 2012-12-27 2012-12-27 A kind of HiFi audio-frequency inputting method, device and system

Publications (2)

Publication Number Publication Date
CN105955694A true CN105955694A (en) 2016-09-21
CN105955694B CN105955694B (en) 2019-01-08

Family

ID=48153542

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201610250799.9A Expired - Fee Related CN105955694B (en) 2012-12-27 2012-12-27 A kind of HiFi audio-frequency inputting method and device
CN201210579386.7A Expired - Fee Related CN103077003B (en) 2012-12-27 2012-12-27 A kind of HiFi audio-frequency inputting method, device and system

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201210579386.7A Expired - Fee Related CN103077003B (en) 2012-12-27 2012-12-27 A kind of HiFi audio-frequency inputting method, device and system

Country Status (2)

Country Link
CN (2) CN105955694B (en)
WO (1) WO2013167021A2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108319443A (en) * 2018-01-26 2018-07-24 维沃移动通信有限公司 A kind of audio-frequency inputting method, mobile terminal and audio playing apparatus
CN108391202A (en) * 2018-02-27 2018-08-10 惠州市德赛西威汽车电子股份有限公司 A kind of onboard audio dynamic sampling method and system
CN111313984A (en) * 2020-02-19 2020-06-19 北京瑞森新谱科技股份有限公司 Testing device and method for various audio codes of Bluetooth headset
CN115243161A (en) * 2022-07-13 2022-10-25 上海富芮坤微电子有限公司 Audio output pin multiplexing circuit, device and method

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105955694B (en) * 2012-12-27 2019-01-08 中兴通讯股份有限公司 A kind of HiFi audio-frequency inputting method and device
CN105991700B (en) * 2015-02-06 2019-07-02 百度在线网络技术(北京)有限公司 Handle method, cloud server system and the terminal device of voice data
CN106293659A (en) * 2015-05-21 2017-01-04 阿里巴巴集团控股有限公司 A kind of audio frequency real-time processing method, device and intelligent terminal
CN104954941B (en) * 2015-06-10 2018-09-14 福州瑞芯微电子股份有限公司 High-performance low-power-consumption HIFI decodes system
CN106454628A (en) * 2015-08-06 2017-02-22 中兴通讯股份有限公司 Method and terminal of controlling hifi function
CN105183482A (en) * 2015-09-23 2015-12-23 浪潮(北京)电子信息产业有限公司 Network simulation development testing method and system
CN105913860A (en) * 2015-12-18 2016-08-31 乐视致新电子科技(天津)有限公司 Method and apparatus for playing high-fidelity (HIFI) sound through multiple players
CN105828272A (en) * 2016-04-28 2016-08-03 乐视控股(北京)有限公司 Audio signal processing method and apparatus
CN106792118A (en) * 2016-12-20 2017-05-31 北京小米移动软件有限公司 The player method and device of multimedia file
CN110034828B (en) * 2018-01-12 2021-11-19 网宿科技股份有限公司 Audio acquisition method and server for cloud application
CN109474394B (en) * 2018-12-28 2021-08-17 思必驰科技股份有限公司 Detection method, system and detection device for sound card communication data

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009139726A1 (en) * 2008-05-13 2009-11-19 Creative Technology Ltd Portable audio enhancement and media player device
CN101621727A (en) * 2009-08-11 2010-01-06 威盛电子股份有限公司 High-fidelity (Hi-Fi) audio system and driving method thereof
CN101800062A (en) * 2010-04-02 2010-08-11 福州思迈特数码科技有限公司 Vehicle-mounted DVD navigation audio-visual device for realizing audio frequency increasing
CN101958139A (en) * 2010-08-10 2011-01-26 闫天时 High definition lossless audio playing (HDAP) system
CN201726521U (en) * 2010-04-02 2011-01-26 福州思迈特数码科技有限公司 Vehicle-mounted DVD navigation audio-visual device for raising audio frequency

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3879006B2 (en) * 2001-08-08 2007-02-07 富士通株式会社 Mobile terminal device
CN102354278B (en) * 2011-06-29 2017-09-15 中兴通讯股份有限公司 The processing method and equipment of a kind of voice data
CN105955694B (en) * 2012-12-27 2019-01-08 中兴通讯股份有限公司 A kind of HiFi audio-frequency inputting method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009139726A1 (en) * 2008-05-13 2009-11-19 Creative Technology Ltd Portable audio enhancement and media player device
CN101621727A (en) * 2009-08-11 2010-01-06 威盛电子股份有限公司 High-fidelity (Hi-Fi) audio system and driving method thereof
CN101800062A (en) * 2010-04-02 2010-08-11 福州思迈特数码科技有限公司 Vehicle-mounted DVD navigation audio-visual device for realizing audio frequency increasing
CN201726521U (en) * 2010-04-02 2011-01-26 福州思迈特数码科技有限公司 Vehicle-mounted DVD navigation audio-visual device for raising audio frequency
CN101958139A (en) * 2010-08-10 2011-01-26 闫天时 High definition lossless audio playing (HDAP) system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108319443A (en) * 2018-01-26 2018-07-24 维沃移动通信有限公司 A kind of audio-frequency inputting method, mobile terminal and audio playing apparatus
CN108319443B (en) * 2018-01-26 2020-01-31 维沃移动通信有限公司 audio output method, mobile terminal and audio playing device
CN108391202A (en) * 2018-02-27 2018-08-10 惠州市德赛西威汽车电子股份有限公司 A kind of onboard audio dynamic sampling method and system
CN111313984A (en) * 2020-02-19 2020-06-19 北京瑞森新谱科技股份有限公司 Testing device and method for various audio codes of Bluetooth headset
CN115243161A (en) * 2022-07-13 2022-10-25 上海富芮坤微电子有限公司 Audio output pin multiplexing circuit, device and method
CN115243161B (en) * 2022-07-13 2023-06-27 上海富芮坤微电子有限公司 Audio output pin multiplexing circuit, device and method

Also Published As

Publication number Publication date
CN105955694B (en) 2019-01-08
CN103077003B (en) 2016-08-03
WO2013167021A2 (en) 2013-11-14
WO2013167021A3 (en) 2014-01-03
CN103077003A (en) 2013-05-01

Similar Documents

Publication Publication Date Title
CN103077003B (en) A kind of HiFi audio-frequency inputting method, device and system
US11812250B2 (en) Playback device calibration
US11039249B2 (en) User-programmable, head-supportable listening device with WiFi media player
US8565458B2 (en) Media player and adapter for providing audio data to hearing aid
EP1532749B1 (en) Portable audio playback device with bass enhancement
US8649538B2 (en) Hearing aid having multiple sound inputs and methods therefor
WO2018086301A1 (en) Multifunctional wireless music microphone
US20180308462A1 (en) Karaoke device
US20110066438A1 (en) Contextual voiceover
CN104834623A (en) Audio playing method and audio playing device
CN205584350U (en) K song controlling means and TV set
JP2015126460A (en) Source apparatus
US20210247953A1 (en) System and Method for Manipulating and Transmitting Live Media
US9628915B2 (en) Handheld portable high fidelity music playback with streaming and WiFi routing ability
CN109637512A (en) A kind of tuning system and tuning method
WO2019047712A1 (en) Method and device for playing back audio, and terminal
WO2024037189A1 (en) Acoustic image calibration method and apparatus
CN108989918A (en) A kind of apparatus for processing audio and a kind of audio frequency broadcast system
WO2018168200A1 (en) Terminal device and communication method
CN208227287U (en) Intelligent audio processing equipment
TW578095B (en) The wireless broadcast device
CN205693875U (en) Sound adjusting apparatus
CN118317042A (en) Display device and method for preventing sound crosstalk
CN109005481A (en) Multiple sound resource integrated audio, control method, equipment and control device
TWM289256U (en) A multiple-channel wireless transmitting player

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190108

Termination date: 20191227

CF01 Termination of patent right due to non-payment of annual fee