CN103077003B - A kind of HiFi audio-frequency inputting method, device and system - Google Patents

A kind of HiFi audio-frequency inputting method, device and system Download PDF

Info

Publication number
CN103077003B
CN103077003B CN201210579386.7A CN201210579386A CN103077003B CN 103077003 B CN103077003 B CN 103077003B CN 201210579386 A CN201210579386 A CN 201210579386A CN 103077003 B CN103077003 B CN 103077003B
Authority
CN
China
Prior art keywords
hifi
mobile
pcm
transducer
mobile terminal
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.)
Expired - Fee Related
Application number
CN201210579386.7A
Other languages
Chinese (zh)
Other versions
CN103077003A (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 CN201210579386.7A priority Critical patent/CN103077003B/en
Priority to CN201610250799.9A priority patent/CN105955694B/en
Publication of CN103077003A publication Critical patent/CN103077003A/en
Priority to PCT/CN2013/078889 priority patent/WO2013167021A2/en
Application granted granted Critical
Publication of CN103077003B publication Critical patent/CN103077003B/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

Abstract

The invention discloses a kind of HiFi audio-frequency inputting method, device and system, described method includes: after the audio manager Audio Flinger of mobile terminal receives pcm stream and PCM format information, the virtual HiFi sound card being pre-configured with in being pass-through to mobile terminal;Pcm stream and PCM format information, by the communication connection set up between Mobile-HiFi transducer, are transmitted to described Mobile-HiFi transducer by virtual HiFi sound card;Described Mobile-HiFi transducer, based on the described pcm stream received and PCM format information, generates I2S signal, and exports described I2S signal to audio-frequence player device.Mobile terminal can be converted to wireless digital rotating disk by technical scheme of the present invention, it is achieved that when mobile terminal is as source of sound, it is ensured that tonequality high-fidelity exports, and well solves problems of the prior art.

Description

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 inputting method, device and system.
Background technology
At present Android(Android) intelligent mobile terminal and MID(MobileInternetDevice, mobile internet device) the most universal, abundant software is had in Android mobile terminal, off-line and the audio-video document of online high-quality can be play, greatly facilitate everybody entertainment life.It is many that Android mobile terminal has playout software relative to common player, UI(UserInterface, user interface) advantage such as interface is good, supports network, portable.But for pursuing the user having had HiFi sound system in HiFi tonequality and family, Android mobile terminal is unsatisfactory as tonequality during HiFi source of sound, cause the reason of this problem predominantly:
Audioflinger(audio manager in 1, Android framework) intrinsic SRC(SampleRateConvertor, sample rate conversion) problem:
Android framework is for compatible old-fashioned ALSA(AdvancedLinuxSoundArchitecture, senior Linux sound framework) drive, so the PCM(PulseCodeModulation that sample rate is 44.1KHz have to be transmitted downwards, pulse code modulation) code stream form, the voice data of other sample rates is required for doing SRC sample rate conversion.And the audio sample rate that high-quality audio frequency and video use at present is all the sample rate of 48KHz the most higher 96KHz, 192KHz.All can force to carry out SRC conversion so high-quality audio frequency is sent into before driving is play after the decoding, the principle of SRC is to use the new frequency data to sampling to carry out 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 shown in Figure 1, voice data just creates distortion in source, and 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 need high-precision clock could perfectly reduce original analog when being converted into analogue signal, so crystal oscillator is maximum on tonequality impact.Common Android mobile terminal, will not be exclusively with characteristic frequency (44.1KHz needs the specialty crystal oscillation fractional frequency such as 45.1584M to obtain) and the professional audio clock of band temperature compensation because it is contemplated that cost:
Amateur clock such as 12M standard crystal oscillator, owing to not being integral multiple relation with 44.1KHz, cannot by frequency dividing regain accurately 44.1K clock to DAC(digital to analog converter) decoding and produce jitter time base flutter, as shown in Figure 2, jitter can allow the analogue signal converting digital signals into correspondence that DAC cannot be correct, produces 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, all can affect the stability of clock, also can introduce jitter shake.
3, SOC(SystemonChip, system level chip) impact on tonequality of the built-in sound card:
One complete sound card includes Digital Signal Processing, digital-to-analogue conversion, LPF(low pass filter) and voltage x current enlarging function.In addition to the tonequality deterioration factor that crystal oscillator causes, the sound card built-in for SOC that mobile terminal uses is at digital-to-analogue conversion algorithm, in filtering and amplifying circuit, does not the most do the process of specialty, and the impact of tonequality is 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 electromagnetic interference introduces obvious low noise;
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, and the earphone output of all mobile terminals 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 a kind of mechanism is provided so that be capable of HD Audio output when mobile terminal is as source of sound, become technical problem the most urgently to be resolved hurrily.
Summary of the invention
The present invention provides a kind of HiFi audio-frequency inputting method, device and system, in order to solve the problem that in prior art, mobile 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:
After the audio manager AudioFlinger of mobile terminal receives pulse code modulation pcm stream and PCM format information, the virtual HiFi sound card being pre-configured with in being pass-through to mobile terminal;
Described pcm stream and PCM format information, by the communication connection set up between Mobile-HiFi transducer, are transmitted to described Mobile-HiFi transducer by described virtual HiFi sound card;
Described Mobile-HiFi transducer, based on the described pcm stream received and PCM format information, generates I2S signal, and exports described I2S signal to audio-frequence player device.
Alternatively, in the method for the invention, described virtual HiFi sound card includes with the communication connection set up between Mobile-HiFi transducer: be connected in order to transmit the UDP UDP of PCM format information, and connects in order to transmit the transmission control protocol TCP of pcm stream.
Alternatively, in the method for the invention, described Mobile-HiFi transducer generates I2S signal based on the described pcm stream received and PCM format information, specifically includes:
Described Mobile-HiFi transducer, based on the described PCM format information received, selects the crystal oscillator with described PCM format information matches in the crystal oscillator group that described Mobile-HiFi transducer is built-in;Wherein, described PCM format information includes that PCM sample rate and position are deep;
The standard time clock that described Mobile-HiFi transducer provides based on the described crystal oscillator selected, is converted to the I2S signal of zero error by the pcm stream received.
Alternatively, in the method for the invention, after described generation I2S signal, farther include: described I2S signal is converted to SPDIF signal, and after described SPDIF signal is carried out isolation processing, output is to audio-frequence player device.
Alternatively, in the method for the invention, when described AudioFlinger receives pcm stream and PCM format information, farther include: whether AudioFlinger detection mobile terminal opens HiFi output function, and when detecting that HiFi output function is opened, the virtual HiFi sound card being pre-configured with in described pcm stream and PCM format information are pass-through to mobile terminal.
Alternatively, in the method for the invention, described mobile terminal, when HiFi output function is opened, enables testing mechanism, and test based on user triggers, and sets up and verifies the communication connection between described virtual HiFi sound card and Mobile-HiFi transducer.
On the other hand, the present invention also provides for a kind of mobile terminal, including:
Audio manager AudioFlinger, after being used for receiving pcm stream and PCM format information, is pass-through to virtual HiFi sound card module;
Virtual HiFi sound card module, for the communication connection by setting up between Mobile-HiFi transducer, transmits described pcm stream and PCM format information to described Mobile-HiFi transducer.
Alternatively, in mobile terminal of the present invention, described virtual HiFi sound card module, is connected transmission PCM format information specifically for utilization with setting up UDP between Mobile-HiFi transducer, and utilization is connected transmission pcm stream with setting up TCP between Mobile-HiFi transducer.
Alternatively, in mobile terminal of the present invention, described AudioFlinger, it is further used for after receiving pcm stream and PCM format information, 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 described virtual HiFi sound card module.
Alternatively, in mobile terminal of the present invention, described mobile terminal, also include: test module, for when HiFi output function is opened, enable testing mechanism, and test based on user triggers, and sets up and verifies the communication connection between described virtual HiFi sound card module and Mobile-HiFi transducer.
Furthermore, the present invention also provides for a kind of Mobile-HiFi transducer, including:
Information receiving module, for receiving pcm stream and the PCM format information that mobile terminal side sends;
Micro-processor MCV, for the pcm stream received based on described information receiving module and PCM format information, generates I2S signal, and exports described I2S signal to audio-frequence player device.
Alternatively, in Mobile-HiFi transducer of the present invention, described Mobile-HiFi transducer also includes crystal oscillator group;
Described MCU, is further used for, based on described PCM format information, selecting the crystal oscillator with described PCM format information matches, and the standard time clock provided based on the described crystal oscillator selected, the pcm stream received is converted to the I2S signal of zero error in described crystal oscillator group.
Alternatively, in Mobile-HiFi transducer of the present invention, described Mobile-HiFi transducer also includes: signal conversion module;
Described signal conversion module, is converted to SPDIF signal for the I2S signal that generated by described MCU, and after described SPDIF signal is carried out isolation processing, output is to audio-frequence player device.
Furthermore, the present invention also provides for a kind of high-fidelity HiFi audio output system, including: mobile terminal of the present invention, and Mobile-HiFi transducer of the present invention.
The present invention has the beneficial effect that:
The method of the invention, device and system, by the AudioFlinger in mobile terminal being carried out function improvement and setting up virtual HiFi sound card module in terminal, achieve the output to original pcm stream, avoid AudioFlinger and pcm stream is carried out SRC, equilibrium and audio adjustment, it is ensured that the integrity of data.Furthermore, the present invention achieves by setting up Mobile-HiFi transducer pcm stream is converted to I2S signal significantly limit the generation of jitter.Mobile terminal can be converted to wireless digital rotating disk by visible technical scheme of the present invention, it is achieved that when mobile terminal is as source of sound, it is ensured that tonequality high-fidelity exports, and well solves problems of the prior art.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, the accompanying drawing used required in embodiment or description of the prior art will be briefly described below, apparently, accompanying drawing in describing below is only some embodiments of the present invention, for those of ordinary skill in the art, on the premise of not 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 chart of a kind of HiFi audio-frequency inputting method that Fig. 3 provides for the embodiment of the present invention;
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 the schematic diagram setting up communication connection described in the embodiment of the present invention between virtual HiFi sound card module and Mobile-HiFi transducer;
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 clearly and completely described, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art are obtained under not making creative work premise, broadly fall 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 mobile terminal is converted to wireless digital rotating disk with cheap cost by it, well solves the problem that in prior art, mobile terminal can not meet HD Audio output as source of sound.Carry out technical solutions according to the invention separately below launching explanation in terms of methods, devices and systems are several.
Embodiment one
As it is shown on figure 3, the embodiment of the present invention provides a kind of HiFi audio-frequency inputting method, including:
Step S301, after the audio manager AudioFlinger of mobile terminal receives pulse code modulation pcm stream and 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 when detecting that HiFi output function is opened, the virtual HiFi sound card being pre-configured with in described pcm stream and PCM format information are pass-through to mobile terminal.
Preferably, mobile terminal, when HiFi output function is opened, enables testing mechanism, and test based on user triggers, and sets up and verifies the communication connection between described virtual HiFi sound card and Mobile-HiFi transducer.
Step S302, described pcm stream and PCM format information, by the communication connection set up between Mobile-HiFi transducer, are transmitted to described Mobile-HiFi transducer by virtual HiFi sound card;
In this step, described virtual HiFi sound card includes with the communication connection set up between Mobile-HiFi transducer: be connected in order to transmit the UDP of PCM format information, and connects in order to transmit the TCP of pcm stream.
Step S303, Mobile-HiFi transducer, based on the described pcm stream received and PCM format information, generates I2S signal, and exports described I2S signal to audio-frequence player device.
In this step, Mobile-HiFi transducer generates I2S signal based on the described pcm stream received and PCM format information, specifically includes:
1) Mobile-HiFi transducer is based on the described PCM format information received, and selects the crystal oscillator with described PCM format information matches in the crystal oscillator group that described Mobile-HiFi transducer is built-in;
2) standard time clock that Mobile-HiFi transducer provides based on the described crystal oscillator selected, is converted to the I2S signal of zero error by the pcm stream received.
Preferably, in step S303, generating after I2S signal, farther including: described I2S signal is being converted to SPDIF signal, and exporting to audio-frequence player device after described SPDIF signal is carried out isolation processing.
In sum, method described in the embodiment of the present invention by carrying out function improvement and setting up virtual HiFi sound card module in terminal to the AudioFlinger in mobile terminal, achieve the output to original pcm stream, avoid AudioFlinger and pcm stream is carried out SRC, equilibrium and audio adjustment, ensure that the integrity of data, and then achieving 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, is pass-through to virtual HiFi sound card module 420;
Wherein, AudioFlinger410, specifically for after receiving pcm stream and PCM format information, 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, transmits described pcm stream and PCM format information to described Mobile-HiFi transducer.
Wherein, virtual HiFi sound card module 420, it is connected transmission PCM format information specifically for utilization with setting up UDP between Mobile-HiFi transducer, and utilization is connected transmission pcm stream with setting up TCP between Mobile-HiFi transducer.
Wherein, communicated by wired or wireless mode (such as WiFi communication) between virtual HiFi sound card module and Mobile-HiFi transducer.
Preferably, mobile terminal described in the embodiment of the present invention, also include: test module 430, for when HiFi output function is opened, enable testing mechanism, and test based on user triggers, and sets up and verifies the communication connection between described virtual HiFi sound card module and Mobile-HiFi transducer.
Illustrate based on said structure, separately below from HiFi function setting, AudioFlinger improve and virtual HiFi sound card module arrange several in terms of mobile terminal described in the present embodiment realized tonequality improvement implement process and be further elaborated, be specifically related to following content:
One, increase Settings user interface: as it is shown in figure 5, design HD Audio output arranges module, it is provided that UI/UE and the linkage function of Mobile-HiFi module based on WiFi.
After " enable HiFi output " clicks, mobile terminal arranges whether an attribute " persist.sys.usehifi=ture " judges the enable of HiFi for follow-up AudioFlinge, automatically opens up WiFi simultaneously, enables " arranging the connection of wireless digital sound card " button.
" wireless digital sound card connects setting " provides WiFi linkage interface, find the SSID(service set that Mobile-HiFi equipment is corresponding, ServiceSetIdentifier) the most manual/auto connection, can be communicated by testing button test IP after connection, and verify for transmitting control information and the UDP of data, tcp port.
Two, AudioFlinger improve:
After HiFi output intent option is opened, AudioFlinger can not directly change the thread being currently played and track(track) broadcasting, only newly-built track is set up HiFi output and supports, output it apparatus bound to the output of virtual HiFi sound card.
HiFi output flow process is as shown in Figure 6, player process passes through libmedia(media library) control the decoding of media server Mediaserver process and play, after the decoding of Mediaserver process, pcm stream is sent to MediaServer process in real time by AudioTrack as medium and FIFOBuffer(first in first out buffer area that AudioFlinger can access), AudioFlinger then starts broadcasting thread and constantly consumes PCM data from FIFOBuffer.If being now not detected by attribute persist.sys.userhifi=true, playing thread and will continue to use traditional mode, carrying out SRC, EQ(equalizer as required), Volume(volume) regulation process, it is then fed into audio frequency apparatus and plays out;Otherwise play thread and pcm stream is supplied directly to virtual HiFi sound card module.
Three, virtual HiFi sound card module:
Virtual HiFi sound card module (being operated in Client pattern) can receive sample rate, the deep format information waiting pcm stream in position and pcm stream, by Socket(socket) and be operated in Server pattern Mobile-HiFi transducer set up connect, as shown in Figure 7, wherein, the connection of foundation includes that UDP connects and TCP connects.UDP connects work and the stopping transmitting control instruction to control rear end, by transmission PCM format 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 generates I2S signal.
In sum, mobile terminal of the present invention, by the AudioFlinger in mobile terminal being carried out function improvement and setting up virtual HiFi sound card module in terminal, achieve the output to original pcm stream, avoid AudioFlinger and pcm stream is carried out SRC, equilibrium and audio adjustment, ensure that the integrity of data, 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 information that mobile terminal side sends;
Micro-processor MCV 820, for the pcm stream received based on information receiving module 810 and PCM format information, generates I2S signal, and exports described I2S signal to audio-frequence player device.
Preferably, described in the present embodiment, Mobile-HiFi transducer also includes crystal oscillator group 830;MCU820, based on described PCM format information, selects the crystal oscillator with PCM format information matches, and the standard time clock provided based on the described crystal oscillator selected in described crystal oscillator group 830, the pcm stream received is converted to the I2S signal of zero error.
Preferably, described in the present embodiment, Mobile-HiFi transducer also includes: signal conversion module 840, is converted to SPDIF signal for the I2S signal that generated by described MCU820, and after described SPDIF signal is carried out isolation processing, output is to audio-frequence player device.
The embodiment of the present invention achieves by setting up Mobile-HiFi transducer the pcm stream of mobile terminal side is converted to I2S signal 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.
Embodiment four
The embodiment of the present invention is that embodiment one described in method and embodiment two, three described in device is expanded on further, combine from mobile terminal side and Mobile-HiFi transducer side respectively and implement details, the technical scheme providing the present invention is further elaborated, certainly, the details that implements described in the present embodiment is only used for explaining the present invention, the most uniquely limit the present invention, be specifically related to following content:
The HiFi audio frequency output scheme that HiFi audio frequency output scheme is Android mobile terminal that the embodiment of the present invention is proposed.The program can utilize the broadband network that the powerful software platform of Android terminal is provided, massive store, high-speed decoding, the advantages such as abundant third party software, set up a powerful audio/video multimedia and play 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 improving Android platform audio frequency framework AudioFlinger so that it is possess the ability exporting original pcm stream.Owing to original PCM format Tstream is like the audio frequency of WAV form, PCM data is not because carrying temporal information, it is not necessary to clock supports that it transmits, so pcm stream will not introduce jitter and distortion during transmitting in theory.
Mobile terminal described in the embodiment of the present invention is by or being transmitted wire-lessly to original pcm stream on Mobile-HiFi transducer through wired (such as USB mode), Mobile-HiFi transducer is responsible for receiving original pcm stream, then according to the sample rate of pcm stream and position is deep is converted to corresponding I2S(Inter ICSound) signal and SPDIF signal.A certain proportion of consumer level DAC has been had to support the input of I2S signal at present, so I2S signal can also directly export and play, but the DAC in view of the overwhelming majority only supports the pattern of the input of SPDIF, so Mobile-HiFi transducer also needs to have the ability that I2S signal is converted to SPDIF.After Mobile-HiFi transducer, the signal that original pcm stream just can be converted to consumer level DAC and digital power amplifier can receive, Android mobile terminal is converted to possess online/local advanced digital rotating disk play by the program.
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 it is discussed in detail:
As it is shown in figure 9, for the general frame of technical scheme described in inventive embodiments and flow process, implement process as follows:
Step 1, user is arranged by Settings() control whether to enable HiFiOut function, and the connection of the Mobile-HiFi transducer set up by WiFi and be operated under ap mode.
Step 2, local audio code stream is (such as: ape, flac, wav, mp3, wma)/online code stream (such as: HLS, RTPS) is converted to original pcm stream and PCM format information after the media server mediaserver of Android mobile terminal or the decoding of third party's Decode engine.
Step 3, pcm stream sends AudioFlinger to, AudioFlinger checks HiFiOut function and has enabled, then open virtual HiFi sound card module, and PCM format information and the PCM source code flow passed over by mediaserver in real time is not added with Mix(stereo process), Effect(audio effect processing), SRC process, pass through virtual HiFi sound card module.
Step 4, control port set up UDP(UserDatagramProtocol with Mobile-HiFi transducer after virtual HiFi sound card module in AudioFlinger receives the format information of PCM, UDP) 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, sets up TCP with Mobile-HiFi transducer 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) obtain formatted data and played data respectively from UDP, tcp port, select coupling crystal oscillator according to formatted data, generate the I2S signal of zero error;Wherein, coupling crystal oscillator is selected according to formatted data particularly as follows: according to the sample rate in formatted data, the crystal oscillator group of Mobile-HiFi transducer selects the crystal oscillator mated with described sample rate;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 the DAC decoder of HiFi, on the other hand the coaxial interface more popularized for compatibility, specialty I2S--> SPDIF chip can be sent into, generate SPDIF signal, SPDIF through specialty sends chip and does isolation and amplifier again, it is ensured that signal is clean.Wherein, described I2S--> SPDIF chip is for having independent crystal oscillator and built-in PLL(PhaseLockedLoop, phaselocked loop) conversion chip, it can export the SPDIF signal of low jitter value.
Step 8, the signal that Mobile-HiFi transducer is exported by the Specialty Hi-Fi equipment of Mobile-HiFi transducer rear end decodes, filters, 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, it is ensured that tonequality high-fidelity exports.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 during WiFi transmission/wire transmission without temporal information, not by the internal crystal oscillator of intelligent terminal and high-frequency electromagnetic interference effect.
Pcm stream zero error by the format analysis to PCM source code flow, Dynamic Matching and the crystal oscillator of sample rate integral multiple, is converted to I2S signal by 3, Mobile-HiFi transducers, greatly limits the generation of jitter.
4, be there is by employing the conversion chip of I2S to the SPDIF of independent crystal oscillator and built-in PLL, export 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 32 single-chip microcomputers of I2S output, and I2S is converted to SPDIF chip and several the active crystal oscillators of professional audio are constituted, and manufacturing cost is relatively low;It addition, the reception of Mobile-HiFi transducer related network can be by existing wireless router, now, 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 the mobile terminal described in embodiment two and the Mobile-HiFi transducer described in embodiment three.System described in the embodiment of the present invention, by the AudioFlinger in mobile terminal being carried out function improvement and setting up virtual HiFi sound card module in terminal, achieve the output to original pcm stream, avoid AudioFlinger and pcm stream is carried out SRC, equilibrium and audio adjustment, it is ensured that the integrity of data.Furthermore, the present invention achieves by setting up Mobile-HiFi transducer pcm stream is converted to I2S signal significantly limit the generation of jitter.Mobile terminal can be converted to wireless digital rotating disk by visible technical scheme of the present invention, it is achieved that when mobile terminal is as source of sound, it is ensured that tonequality high-fidelity exports, and well solves problems of the prior art.
Obviously, those skilled in the art can carry out various change and modification without departing from the spirit and scope of the present invention to the present invention.So, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (11)

1. a high-fidelity HiFi audio-frequency inputting method, it is characterised in that including:
After the audio manager AudioFlinger of mobile terminal receives pulse code modulation pcm stream and PCM format information, the virtual HiFi sound card being pre-configured with in being pass-through to mobile terminal;
Described pcm stream and PCM format information, by the communication connection set up between Mobile-HiFi transducer, are transmitted to described Mobile-HiFi transducer by described virtual HiFi sound card;
Described Mobile-HiFi transducer, based on the described PCM format information received, selects the crystal oscillator with described PCM format information matches in the crystal oscillator group that described Mobile-HiFi transducer is built-in;And the standard time clock provided based on the described crystal oscillator selected, the pcm stream received is converted to the I2S signal of zero error, and described I2S signal is exported to audio-frequence player device.
2. the method for claim 1, it is characterized in that, described virtual HiFi sound card includes with the communication connection set up between Mobile-HiFi transducer: be connected in order to transmit the UDP UDP of PCM format information, and connects in order to transmit the transmission control protocol TCP of pcm stream.
3. the method for claim 1, it is characterised in that generate after I2S signal, farther include: described I2S signal is converted to SPDIF signal, and after described SPDIF signal is carried out isolation processing, output is to audio-frequence player device.
4. the method for claim 1, it is characterized in that, when described AudioFlinger receives pcm stream and PCM format information, farther include: whether AudioFlinger detection mobile terminal opens HiFi output function, and when detecting that HiFi output function is opened, the virtual HiFi sound card being pre-configured with in described pcm stream and PCM format information are pass-through to mobile terminal.
5. method as claimed in claim 4, it is characterised in that described mobile terminal, when HiFi output function is opened, enables testing mechanism, and test based on user triggers, and sets up and verifies the communication connection between described virtual HiFi sound card and Mobile-HiFi transducer.
6. a mobile terminal, it is characterised in that including:
Audio manager AudioFlinger, after being used for receiving pcm stream and PCM format information, is pass-through to virtual HiFi sound card module;
Virtual HiFi sound card module, for the communication connection by setting up between Mobile-HiFi transducer, transmits described pcm stream and PCM format information to described Mobile-HiFi transducer.
7. mobile terminal as claimed in claim 6, it is characterized in that, described virtual HiFi sound card module, is connected transmission PCM format information specifically for utilization with setting up UDP between Mobile-HiFi transducer, and utilization is connected transmission pcm stream with setting up TCP between Mobile-HiFi transducer.
8. mobile terminal as claimed in claim 6, it is characterized in that, described AudioFlinger, it is further used for after receiving pcm stream and PCM format information, 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 described virtual HiFi sound card module.
9. mobile terminal as claimed in claim 8, it is characterized in that, described mobile terminal, also include: test module, for when HiFi output function is opened, enable testing mechanism, and test based on user triggers, and sets up and verifies the communication connection between described virtual HiFi sound card module and Mobile-HiFi transducer.
10. a high-fidelity HiFi audio output system, it is characterised in that including: the mobile terminal described in any one of claim 6 to 9, and Mobile-HiFi transducer;
Described Mobile-HiFi transducer includes: information receiving module, crystal oscillator group and Micro-processor MCV;
Information receiving module, for receiving pcm stream and the PCM format information that mobile terminal side sends;
Micro-processor MCV, for the PCM format information received based on described information receiving module, the crystal oscillator with described PCM format information matches is selected in described crystal oscillator group, and based on select described crystal oscillator provide standard time clock, described pcm stream is converted to the I2S signal of zero error, and described I2S signal is exported to audio-frequence player device.
11. systems as claimed in claim 10, it is characterised in that described Mobile-HiFi transducer also includes: signal conversion module;
Described signal conversion module, is converted to SPDIF signal for the I2S signal that generated by described MCU, and after described SPDIF signal is carried out isolation processing, output is to audio-frequence player device.
CN201210579386.7A 2012-12-27 2012-12-27 A kind of HiFi audio-frequency inputting method, device and system Expired - Fee Related CN103077003B (en)

Priority Applications (3)

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
PCT/CN2013/078889 WO2013167021A2 (en) 2012-12-27 2013-07-05 Method, device and system for outputting hifi audio frequency

Applications Claiming Priority (1)

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

Related Child Applications (1)

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

Publications (2)

Publication Number Publication Date
CN103077003A CN103077003A (en) 2013-05-01
CN103077003B true CN103077003B (en) 2016-08-03

Family

ID=48153542

Family Applications (2)

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
CN201610250799.9A Expired - Fee Related CN105955694B (en) 2012-12-27 2012-12-27 A kind of HiFi audio-frequency inputting method and device

Family Applications After (1)

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

Country Status (2)

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

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103077003B (en) * 2012-12-27 2016-08-03 中兴通讯股份有限公司 A kind of HiFi audio-frequency inputting method, device and system
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
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
CN109474394B (en) * 2018-12-28 2021-08-17 思必驰科技股份有限公司 Detection method, system and detection device for sound card communication data
CN111313984B (en) * 2020-02-19 2022-02-18 北京瑞森新谱科技股份有限公司 Testing device and method for various audio codes of Bluetooth headset
CN115243161B (en) * 2022-07-13 2023-06-27 上海富芮坤微电子有限公司 Audio output pin multiplexing circuit, device and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7136677B2 (en) * 2001-08-08 2006-11-14 Fujitsu Limited Portable terminal
CN101621727A (en) * 2009-08-11 2010-01-06 威盛电子股份有限公司 High-fidelity (Hi-Fi) audio system and driving method thereof
CN101958139A (en) * 2010-08-10 2011-01-26 闫天时 High definition lossless audio playing (HDAP) system
CN102354278A (en) * 2011-06-29 2012-02-15 中兴通讯股份有限公司 Method and equipment for processing audio data

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090287324A1 (en) * 2008-05-13 2009-11-19 Creative Technology Ltd Portable audio enhancement and media player device
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
CN103077003B (en) * 2012-12-27 2016-08-03 中兴通讯股份有限公司 A kind of HiFi audio-frequency inputting method, device and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7136677B2 (en) * 2001-08-08 2006-11-14 Fujitsu Limited Portable terminal
CN101621727A (en) * 2009-08-11 2010-01-06 威盛电子股份有限公司 High-fidelity (Hi-Fi) audio system and driving method thereof
CN101958139A (en) * 2010-08-10 2011-01-26 闫天时 High definition lossless audio playing (HDAP) system
CN102354278A (en) * 2011-06-29 2012-02-15 中兴通讯股份有限公司 Method and equipment for processing audio data

Also Published As

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

Similar Documents

Publication Publication Date Title
CN103077003B (en) A kind of HiFi audio-frequency inputting method, device and system
US8565458B2 (en) Media player and adapter for providing audio data to hearing aid
US10097942B2 (en) Playback device calibration
US7295809B2 (en) Portable audio playback device with bass enhancement
US8649538B2 (en) Hearing aid having multiple sound inputs and methods therefor
US11039249B2 (en) User-programmable, head-supportable listening device with WiFi media player
US10235984B2 (en) Karaoke device
WO2018086301A1 (en) Multifunctional wireless music microphone
WO2021208495A1 (en) Adaptive pickup all-in-one control system
CN102932567A (en) Terminal and audio processing method
CN104834623A (en) Audio playing method and audio playing device
JP2015126460A (en) Source apparatus
CN109637512A (en) A kind of tuning system and tuning method
CN103458317B (en) The media play controlling method of intelligent terminal and system
US20210247953A1 (en) System and Method for Manipulating and Transmitting Live Media
CN205430537U (en) Multi -functional microphone
CN205992982U (en) Man-machine interactive sound system
CN209642945U (en) A kind of jamproof wireless acoustics
CN115696172B (en) Sound image calibration method and device
CN202856964U (en) Audio playing system and multi-channel earphone with wireless voice integrated
CN108989918A (en) A kind of apparatus for processing audio and a kind of audio frequency broadcast system
CN205265900U (en) Multi -functional audio system
CN204377136U (en) A kind of holographic audio frequency gathers playback reproducer
CN109243452A (en) A kind of method and system for sound control
CN216852321U (en) Intelligent audio-visual sound system

Legal Events

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

Granted publication date: 20160803

Termination date: 20201227