CN103077003A - Method, device and system for outputting HiFi (High Fidelity) audio frequency - Google Patents

Method, device and system for outputting HiFi (High Fidelity) audio frequency Download PDF

Info

Publication number
CN103077003A
CN103077003A CN2012105793867A CN201210579386A CN103077003A CN 103077003 A CN103077003 A CN 103077003A CN 2012105793867 A CN2012105793867 A CN 2012105793867A CN 201210579386 A CN201210579386 A CN 201210579386A CN 103077003 A CN103077003 A CN 103077003A
Authority
CN
China
Prior art keywords
hifi
pcm
mobile
converter
format information
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
CN2012105793867A
Other languages
Chinese (zh)
Other versions
CN103077003B (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

Images

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, a device and a system for outputting HiFi (High Fidelity) audio frequency. The method comprises the following steps that after receiving PCM (Pulse Code Modulation) code stream and PCM format information, an audio frequency manager Audio Flinger of a mobile terminal transmits the PCM code stream and the PCM format information to a virtual HiFi sound card preconfigured in the mobile terminal in a unvarnished manner; the virtual HiFid sound card transmits the PCM code stream and the PCM format information to a Mobile-HiFi convertor by virtue of a communication linkage established between the virtual HiFi sound card and the Mobile-HiFi convertor; and the Mobile-HiFi convertor generates an I2S signal based on the received PCM code stream and PCM formation information and outputs the I2S signal to an audio play device. According to the technical scheme adopted by the invention, the mobile terminal can be converted into a wireless digital turntable, so that when the mobile terminal serves as a sound source, the HiFi output of sound quality is ensured, and problems existing in the prior art are well solved.

Description

A kind of HiFi audio-frequency inputting method, device and system
Technical field
The present invention relates to communication technical field, relate in particular to a kind of HiFi(High-Fidelity high-fidelity) audio-frequency inputting method, device and system.
Background technology
Present Android(Android) intelligent mobile terminal and MID(Mobile Internet Device, mobile internet device) very universal, abundant software is arranged on the Android portable terminal, can play off-line and online high-quality audio-video document, greatly facilitate everybody entertainment life.It is many that the Android portable terminal has a playout software with respect to common player, UI(User Interface, user interface) interface is good, network enabled, the advantage such as portable.But for pursuing the user who has had the HiFi sound system in HiFi tonequality and the family, the Android portable terminal during as the HiFi source of sound tonequality unsatisfactory, cause the reason of this problem to be mainly:
Audioflinger(audio manager in 1, the Android framework) problem intrinsic SRC(Sample Rate Convertor, sample rate conversion):
The Android framework is for the old-fashioned ALSA(Advanced Linux Sound Architecture of compatibility, senior Linux sound framework) drives, be the PCM(Pulse Code Modulation of 44.1KHz so must transmit sampling rate downwards, pulse code modulation (PCM)) code stream form, the voice data of other sampling rates all need to do the SRC sample rate conversion.And at present the audio sample rate that adopts of high-quality audio frequency and video all is 48KHz even higher 96KHz, the sampling rate of 192KHz.So high-quality audio frequency all can force to carry out the SRC conversion before sending into and driving broadcast after decoding, the principle of SRC is to use new frequency that the data that sample are carried out resampling, when new sampling rate is lower than old sampling rate or newly sampling rate is not the integral multiple of old sampling rate, the signal meeting serious distortion original signal that sampling obtains, as shown in Figure 1, voice data has just produced distortion in the source, sound field variation when the sound of distortion can cause original Hi―quality Playback, and the crude sense of high frequency increases.
2, the crystal oscillator inferior quality:
The digital audio transmission time is not introduced distortion, but needs perfectly reduction original analog of high-precision clock when converting simulating signal to, and impact is maximum so crystal oscillator is on tonequality.Common Android portable terminal is because consider cost, can not use specially characteristic frequency (44.1KHz needs the professional crystal oscillator frequency division such as 45.1584M to obtain) and with the professional audio clock of temperature compensation:
Amateur clock such as 12M standard crystal oscillator, because and 44.1KHz is not the integral multiple relation, can't regain accurately the 44.1K clock to the DAC(digital to analog converter by frequency division) decoding produces the jitter time base flutter, as shown in Figure 2, jitter can allow DAC can't be correct is converted to digital signal corresponding simulating signal, produces distortion.So the tonequality of the ordinary audio of the 44.1KHz sampling rate that play this moment can variation
In addition, crystal oscillator is subject to the impacts such as temperature and electromagnetic interference (EMI) on the portable terminal, all can affect the stability of clock, also can introduce the jitter shake.
3, SOC(System on Chip, system level chip) built-in sound card is on the impact of tonequality:
A complete sound card comprises digital signal processing, digital-to-analog conversion, LPF(low-pass filter) and the electric current and voltage enlarging function.Except the tonequality deterioration factor that crystal oscillator causes, the built-in sound card of the SOC that uses on the portable terminal on filtering and the amplifying circuit, is not all done the processing of specialty at the digital-to-analog conversion algorithm, and tonequality affected below several aspects of main manifestations:
1) algorithm of digital signal processing and digital-to-analog conversion can be introduced distortion;
2) LPF and mimic channel can't provide good signal to noise ratio (S/N ratio) and straight frequency response curve, and electromagnetic interference (EMI) is introduced obvious low noise;
3) boost and the electric current amplifying power limited, can't satisfy acoustic pressure and the current requirements of high impedance earphone.
4, the power supply mode of portable terminal also has influence on power and the thrust of output, and the earphone output of all portable terminals can't well promote high resistant Hi-Fi earphone.
In sum, the factor that affects at present as can be known portable terminal tonequality has a lot, and so how a kind of mechanism is provided, so that portable terminal can be realized HD Audio output during as source of sound, becomes the technical matters that needs to be resolved hurrily at present.
Summary of the invention
The invention provides a kind of HiFi audio-frequency inputting method, device and system, portable terminal can not satisfy the problem that HD Audio is exported as source of sound in the prior art in order to solve.
In order to solve the problems of the technologies described above, the technical solution used in the present invention is as follows:
On the one hand, the invention provides a kind of HiFi audio-frequency inputting method, comprising:
After the audio manager Audio Flinger of portable terminal receives pulse code modulation (PCM) pcm stream and PCM format information, it is pass-through to virtual HiFi sound card pre-configured in the portable terminal;
Described virtual HiFi sound card by and the Mobile-HiFi converter between the communication connection of setting up, described pcm stream and PCM format information are transferred to described Mobile-HiFi converter;
Described Mobile-HiFi converter generates the I2S signal based on the described pcm stream that receives and PCM format information, and exports described I2S signal to audio-frequence player device.
Alternatively, in the method for the invention, the communication connection of setting up between described virtual HiFi sound card and Mobile-HiFi converter comprises: be connected in order to the User Datagram Protoco (UDP) UDP that transmits the PCM format information, and connect in order to the transmission control protocol TCP that transmits pcm stream.
Alternatively, in the method for the invention, described Mobile-HiFi converter generates the I2S signal based on the described pcm stream that receives and PCM format information, specifically comprises:
Described Mobile-HiFi converter is selected the crystal oscillator with described PCM format information coupling based on the described PCM format information that receives in the built-in crystal oscillator group of described Mobile-HiFi converter; Wherein, described PCM format information comprises that the PCM sampling rate is dark with the position;
Described Mobile-HiFi converter is converted to the pcm stream that receives the I2S signal of zero error based on the standard time clock that the described crystal oscillator of selecting provides.
Alternatively, in the method for the invention, behind the described generation I2S signal, further comprise: described I2S signal is converted to the SPDIF signal, and after described SPDIF signal carried out isolation processing, exports audio-frequence player device to.
Alternatively, in the method for the invention, when described Audio Flinger receives pcm stream and PCM format information, further comprise: Audio Flinger detects portable terminal and whether has opened the HiFi output function, and when detecting the unlatching of HiFi output function, described pcm stream and PCM format information are pass-through to virtual HiFi sound card pre-configured in the portable terminal.
Alternatively, in the method for the invention, when described portable terminal is opened in the HiFi output function, enable testing mechanism, and trigger based on user's test, set up and verify communication connection between described virtual HiFi sound card and Mobile-HiFi converter.
On the other hand, the present invention also provides a kind of portable terminal, comprising:
Audio manager Audio Flinger after being used for receiving pcm stream and PCM format information, is pass-through to virtual HiFi sound card module with it;
Virtual HiFi sound card module, be used for by and the Mobile-HiFi converter between the communication connection of setting up, described pcm stream and PCM format information are transferred to described Mobile-HiFi converter.
Alternatively, in the portable terminal of the present invention, described virtual HiFi sound card module, concrete be used for utilizing with the Mobile-HiFi converter between set up UDP and be connected and transmit the PCM format information, and set up TCP between utilization and Mobile-HiFi converter and be connected and transmit pcm stream.
Alternatively, in the portable terminal of the present invention, described Audio Flinger, be further used for after receiving pcm stream and PCM format information, detect portable terminal and whether opened the HiFi output function, and when detecting the unlatching of HiFi output function, described pcm stream and PCM format information are pass-through to described virtual HiFi sound card module.
Alternatively, in the portable terminal of the present invention, described portable terminal, also comprise: test module, be used for when the HiFi output function is opened, enable testing mechanism, and trigger based on user's test, set up and verify communication connection between described virtual HiFi sound card module and Mobile-HiFi converter.
Moreover the present invention also provides a kind of Mobile-HiFi converter, comprising:
Information receiving module is used for pcm stream and PCM format information that the mobile terminal receive side sends;
Micro-processor MCV is used for pcm stream and PCM format information based on described information receiving module reception, generates the I2S signal, and exports described I2S signal to audio-frequence player device.
Alternatively, in the Mobile-HiFi converter of the present invention, described Mobile-HiFi converter also comprises the crystal oscillator group;
Described MCU is further used for based on described PCM format information, the crystal oscillator of selection and described PCM format information coupling in described crystal oscillator group, and based on the standard time clock that the described crystal oscillator of selecting provides, the pcm stream that receives is converted to the I2S signal of zero error.
Alternatively, in the Mobile-HiFi converter of the present invention, described Mobile-HiFi converter also comprises: signal conversion module;
Described signal conversion module is used for the I2S signal that described MCU generates is converted to the SPDIF signal, and after described SPDIF signal carried out isolation processing, exports audio-frequence player device to.
Moreover the present invention also provides a kind of high-fidelity HiFi audio output system, comprising: portable terminal of the present invention, and Mobile-HiFi converter of the present invention.
Beneficial effect of the present invention is as follows:
The method of the invention, device and system, by the Audio Flinger in the portable terminal being carried out revising of the functions and in terminal, setting up virtual HiFi sound card module, realized the output to original pcm stream, avoid Audio Flinger that pcm stream is carried out SRC, equilibrium and audio adjustment, guaranteed the integrality of data.Moreover the present invention has realized pcm stream is converted to the generation that the I2S signal has limited jitter greatly by setting up the Mobile-HiFi converter.As seen technical scheme of the present invention can be converted to portable terminal the wireless digital rotating disk, has realized at portable terminal having guaranteed the output of tonequality high-fidelity during as source of sound, has well solved problems of the prior art.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, the below will do one to the accompanying drawing of required use in embodiment or the description of the Prior Art and introduce simply, apparently, accompanying drawing in the following describes only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is through the deteriorated schematic diagram of SRC conversion process tonequality in the prior art;
Fig. 2 be in the prior art jitter on the schematic diagram of the deteriorated impact of tonequality;
The process flow diagram of a kind of HiFi audio-frequency inputting method that Fig. 3 provides for the embodiment of the invention;
The structured flowchart of a kind of portable terminal that Fig. 4 provides for the embodiment of the invention;
Fig. 5 be the described portable terminal of the embodiment of the invention the interface schematic diagram is set;
Fig. 6 is the audio frequency playing flow figure behind the described Audio Flinger of the embodiment of the invention revising of the functions;
Fig. 7 is the schematic diagram that establishes a communications link between the described virtual HiFi sound card module of the embodiment of the invention and Mobile-HiFi converter;
The structured flowchart of a kind of Mobile-HiFi converter that Fig. 8 provides for the embodiment of the invention;
Fig. 9 is the general frame process flow diagram of the described HiFi audio-frequency inputting method of the embodiment of the invention;
The structured flowchart of a kind of HiFi audio output system that Figure 10 provides for the embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
The embodiment of the invention provides a kind of HiFi audio-frequency inputting method, device and system, it is converted to the wireless digital rotating disk with cheap cost with portable terminal, has well solved portable terminal in the prior art can not satisfy HD Audio output as source of sound problem.The below launches explanation from the several aspects of methods, devices and systems to technical solutions according to the invention respectively.
Embodiment one
As shown in Figure 3, the embodiment of the invention provides a kind of HiFi audio-frequency inputting method, comprising:
Step S301 after the audio manager Audio Flinger of portable terminal receives pulse code modulation (PCM) pcm stream and PCM format information, is pass-through to virtual HiFi sound card pre-configured in the portable terminal with it;
Alternatively, in this step, when Audio Flinger receives pcm stream and PCM format information, further comprise: Audio Flinger detects portable terminal and whether has opened the HiFi output function, and when detecting the unlatching of HiFi output function, described pcm stream and PCM format information are pass-through to virtual HiFi sound card pre-configured in the portable terminal.
Preferably, when portable terminal is opened in the HiFi output function, enable testing mechanism, and trigger based on user's test, set up and verify communication connection between described virtual HiFi sound card and Mobile-HiFi converter.
Step S302, virtual HiFi sound card by and the Mobile-HiFi converter between the communication connection of setting up, described pcm stream and PCM format information are transferred to described Mobile-HiFi converter;
In this step, the communication connection of setting up between described virtual HiFi sound card and Mobile-HiFi converter comprises: be connected in order to the UDP that transmits the PCM format information, and connect in order to the TCP that transmits pcm stream.
Step S303, Mobile-HiFi converter generate the I2S signal based on the described pcm stream that receives and PCM format information, and export described I2S signal to audio-frequence player device.
In this step, the Mobile-HiFi converter generates the I2S signal based on the described pcm stream that receives and PCM format information, specifically comprises:
1) the Mobile-HiFi converter is selected the crystal oscillator with described PCM format information coupling based on the described PCM format information that receives in the built-in crystal oscillator group of described Mobile-HiFi converter;
2) the Mobile-HiFi converter is converted to the pcm stream that receives the I2S signal of zero error based on the standard time clock that the described crystal oscillator of selecting provides.
Preferably, among the step S303, after generating the I2S signal, further comprise: described I2S signal is converted to the SPDIF signal, and described SPDIF signal is carried out exporting audio-frequence player device to after the isolation processing.
In sum, the described method of the embodiment of the invention is by carrying out revising of the functions to the Audio Flinger in the portable terminal and set up virtual HiFi sound card module in terminal, realized the output to original pcm stream, avoided Audio Flinger that pcm stream is carried out SRC, equilibrium and audio adjustment, guaranteed the integrality of data, and then realized at portable terminal having guaranteed the output of tonequality high-fidelity during as source of sound.
Embodiment two
As shown in Figure 4, the embodiment of the invention provides a kind of portable terminal, comprising:
Audio manager Audio Flinger410 after being used for receiving pcm stream and PCM format information, is pass-through to virtual HiFi sound card module 420 with it;
Wherein, Audio Flinger410, concrete being used for after receiving pcm stream and PCM format information, detect portable terminal and whether opened the HiFi output function, and when detecting the unlatching of HiFi output function, described pcm stream and PCM format information are pass-through to virtual HiFi sound card module 420.
Virtual HiFi sound card module 420, be used for by and the Mobile-HiFi converter between the communication connection of setting up, described pcm stream and PCM format information are transferred to described Mobile-HiFi converter.
Wherein, virtual HiFi sound card module 420, concrete be used for utilizing with the Mobile-HiFi converter between set up UDP and be connected and transmit the PCM format information, and set up TCP between utilization and Mobile-HiFi converter and be connected and transmit pcm stream.
Wherein, communicate by wired or wireless mode (communicating by letter such as WiFi) between virtual HiFi sound card module and Mobile-HiFi converter.
Preferably, the described portable terminal of the embodiment of the invention also comprises: test module 430, be used for when the HiFi output function is opened, enable testing mechanism, and trigger based on user's test, set up and verify communication connection between described virtual HiFi sound card module and Mobile-HiFi converter.
Set forth based on said structure, the below further sets forth the improved specific implementation process of the described portable terminal realization tonequality of the present embodiment from several aspects that arrange of HiFi function setting, Audio Flinger improvement and virtual HiFi sound card module respectively, is specifically related to following content:
One, increase the Settings user interface: as shown in Figure 5, the output of design HD Audio arranges module, provides UI/UE and based on the linkage function of the Mobile-HiFi module of WiFi.
After " enabling HiFi exports " clicked, portable terminal arranged an attribute " persist.sys.usehifi=ture " and judges whether enabling of HiFi for follow-up AudioFlinge, automatically opens WiFi simultaneously, enabled " the wireless digital sound card is set to be connected " button.
" the wireless digital sound card connects setting " provides the WiFi linkage interface, find SSID(service set corresponding to Mobile-HiFi equipment, Service Set Identifier) manual/auto connection after, can be by testing button test I P communication after the connection, and checking is used for UDP, the tcp port of control information transmission and data.
Two, Audio Flinger improves:
After the HiFi output intent option was opened, Audio Flinger can directly not change current in progress thread and track(track) broadcast, only newly-built track is set up HiFi output and supports, its output device is tied in the virtual HiFi sound card output.
HiFi output flow process as shown in Figure 6, the player process is by the libmedia(media library) control media server Mediaserver process decoding and broadcast, after the decoding of Mediaserver process, pcm stream is sent to the FIFO Buffer(first in first out buffer area that MediaServer process and Audio Flinger can both access by Audio Track in real time as medium), Audio Flinger then starts and plays thread constantly consume the PCM data from FIFO Buffer.If do not detect attribute persist.sys.userhifi=true this moment, play thread and will continue to use traditional mode, carry out as required SRC, EQ(balanced device), the Volume(volume) regulate and process, then send into audio frequency apparatus and play; Otherwise play thread pcm stream is directly offered virtual HiFi sound card module.
Three, virtual HiFi sound card module:
Virtual HiFi sound card module (being operated in the Client pattern) can be received sampling rate, dark format information and the pcm stream that waits pcm stream in position, by the Socket(socket) and the Mobile-HiFi converter that is operated in the Server pattern connect, as shown in Figure 7, wherein, the connection of foundation comprises that the UDP connection is connected with TCP.UDP connects the transmission steering order with the work of control rear end and stops, by transmitting the PCM format information, so that the generated clock that the rear end can be correct; TCP connects the real-time Transmission pcm stream, provides the rear end to generate the I2S signal.
In sum, portable terminal of the present invention, by the Audio Flinger in the portable terminal being carried out revising of the functions and in terminal, setting up virtual HiFi sound card module, realized the output to original pcm stream, avoided Audio Flinger that pcm stream is carried out SRC, equilibrium and audio adjustment, guaranteed the integrality of data, and then realized at portable terminal having guaranteed the output of tonequality high-fidelity during as source of sound.
Embodiment three
As shown in Figure 8, the embodiment of the invention provides a kind of Mobile-HiFi converter, comprising:
Information receiving module 810 is used for pcm stream and PCM format information that the mobile terminal receive side sends;
Micro-processor MCV 820 is used for pcm stream and PCM format information based on information receiving module 810 receptions, generates the I2S signal, and exports described I2S signal to audio-frequence player device.
Preferably, the described Mobile-HiFi converter of the present embodiment also comprises crystal oscillator group 830; MCU820 is based on described PCM format information, selects the crystal oscillator with PCM format information coupling in described crystal oscillator group 830, and based on the standard time clock that the described crystal oscillator of selecting provides, the pcm stream that receives is converted to the I2S signal of zero error.
Preferably, the described Mobile-HiFi converter of the present embodiment also comprises: signal conversion module 840 is used for the I2S signal that described MCU820 generates is converted to the SPDIF signal, and after described SPDIF signal carried out isolation processing, exports audio-frequence player device to.
The embodiment of the invention has realized the pcm stream of mobile terminal side is converted to the generation that the I2S signal has limited jitter greatly by setting up the Mobile-HiFi converter.As seen the described Mobile-HiFi converter of the embodiment of the invention matches with portable terminal, has realized at portable terminal having guaranteed the output of tonequality high-fidelity during as source of sound.
Embodiment four
The embodiment of the invention is the further elaboration to embodiment one described method and embodiment two, three described devices, respectively from mobile terminal side and Mobile-HiFi transducer side in conjunction with the specific implementation details, technical scheme provided by the invention is further elaborated, certainly, specific implementation details described in the present embodiment only is used for explaining the present invention, not unique restriction the present invention is specifically related to following content:
The HiFi audio frequency output scheme that the embodiment of the invention proposes is the HiFi audio frequency output scheme of Android portable terminal.The broadband network that this scheme can utilize the powerful software platform of Android terminal to provide, large capacity storage, high-speed decoding, the abundant advantages such as third party software, set up a powerful audio/video multimedia and play service platform, this platform is responsible for providing that the user experiences well, the player interface of complete function, and the audio frequency and video of various compressions or lossless format are converted to original PCM formatted data stream.Existing Android platform is not supported the original PCM form of this direct output code stream, and the embodiment of the invention makes it possess the ability of the original pcm stream of output by Android platform audio framework Audio Flinger is improved.Because original PCM formatted data flows the audio frequency of similar WAV form, the PCM data are not because carry temporal information, and clock is supported its transmission when not required, so can not introduce jitter and distortion in the process of pcm stream transmission in theory.
The described portable terminal of the embodiment of the invention is by sending to original pcm stream on the Mobile-HiFi converter through wired (for example USB mode) or wireless mode, the Mobile-HiFi converter is responsible for receiving original pcm stream, then according to the sampling rate of pcm stream and the dark corresponding I2S(Inter-IC Sound that is converted in position) signal and SPDIF signal.There has been at present a certain proportion of consumer level DAC to support the input of I2S signal, so the I2S signal also can directly be exported and be play, but the DAC that considers the overwhelming majority only supports the input format of SPDIF, so the Mobile-HiFi converter also needs to have the ability that the I2S signal is converted to SPDIF.Behind the Mobile-HiFi converter, original pcm stream just can be converted to the signal that consumer level DAC and digital power amplifier can receive, and this scheme is converted to the Android portable terminal possesses online/local advanced digital rotating disk of playing.
Below take Android4.0 version and WiFi as and the network connection of Mobile-HiFi converter as example, introduce in detail the embodiment of the described technical scheme of the embodiment of the invention:
As shown in Figure 9, be general frame and the flow process of the described technical scheme of inventive embodiments, the specific implementation process is as follows:
Step 1, the user arranges by Settings() whether control enable HiFi Out function, and by WiFi set up be connected ap mode under the connection of Mobile-HiFi converter.
Step 2, local audio code stream are (for example: ape, flac, wav, mp3, wma)/be converted to original pcm stream and PCM format information after the decoding of online code stream (for example: HLS, RTPS) through the media server mediaserver of Android portable terminal or third party's Decode engine.
Step 3, pcm stream sends Audio Flinger to, Audio Flinger is checked through HiFi Out function and enables, then open virtual HiFi sound card module, and the PCM format information and the PCM source code flow that in real time mediaserver are passed over do not add the Mix(stereo process), the Effect(audio is processed), SRC processes, and passes through virtual HiFi sound card module.
Step 4, virtual HiFi sound card module among the Audio Flinger is received behind the format information of PCM and Mobile-HiFi converter control port is set up UDP(User Datagram Protocol, User Datagram Protoco (UDP)) connects, send by UDP and have the PCM format information that breath is deeply convinced in PCM sampling rate and position.
Behind the PCM raw data code stream that step 5, virtual HiFi sound card are received, set up TCP with the Mobile-HiFi converter and be connected, and by the real-time transparent transmission PCM of TCP raw data code stream.
Step 6, the MCU(micro-control unit in the Mobile-HiFi converter) obtain respectively formatted data and played data from UDP, tcp port, select the coupling crystal oscillator according to formatted data, generate the I2S signal of zero error; Wherein, select the coupling crystal oscillator to be specially according to formatted data: according to the sampling rate in the formatted data, in the crystal oscillator group of Mobile-HiFi converter, to select the crystal oscillator with described sampling rate coupling; Preferably, comprise the crystal oscillator of supporting 44.1KHz and multiple thereof in the crystal oscillator group, and comprise the crystal oscillator of supporting 48KHz and multiple thereof.
Step 7, the I2S signal that the Mobile-HiFi converter generates can directly output to the DAC demoder of supporting HiFi on the one hand, the coaxial interface of more popularizing for compatibility on the other hand, can send into professional I2S--〉the SPDIF chip, generate the SPDIF signal, do isolation output through the SPDIF transmission chip of specialty again, guarantee that signal is clean.Wherein, described I2S--〉the SPDIF chip is for having independent crystal oscillator and built-in PLL(Phase Locked Loop, phaselocked loop) conversion chip, it can export the SPDIF signal of low jitter value.
Step 8, the Specialty Hi-Fi equipment of Mobile-HiFi converter rear end output to high-fidelity loudspeaker after the signal of Mobile-HiFi converter output is done decoding, filtering, amplification processing at last.
In sum, the described technical scheme of the embodiment of the invention has realized at portable terminal having guaranteed the output of tonequality high-fidelity during as source of sound.Exactly, the embodiment of the invention has guaranteed tonequality from the following aspects:
1, the PCM source code flow of the unprocessed mistake of intercepting and capturing has been avoided SRC and balanced device from Android audio frequency framework, and the effect device adjustment has guaranteed data integrity.
Without temporal information, be not subjected to the inner crystal oscillator of intelligent terminal and high-frequency electromagnetic disturbing effect in 2, the PCM source code flow process WiFi transmission/wire transmission process.
3, Mobile-HiFi converter is by to the format analysis of PCM source code flow, the crystal oscillator of Dynamic Matching and sampling rate integral multiple, with the pcm stream zero error be converted to the I2S signal, greatly limit the generation of jitter.
4, have the I2S of independent crystal oscillator and built-in PLL to the conversion chip of SPDIF by employing, the SPDIF signal of the low jitter value of output.
Moreover the described technical scheme of the embodiment of the invention can also reduce cost from following several aspects:
1, Android terminal is the double digital rotating disk of doing, and does not produce extra cost.
2, Mobile-HiFi converter can be by USB or network receiving chip, common 32 single-chip microcomputers with I2S output, and I2S is converted to the SPDIF chip and several the active crystal oscillators of professional audio consist of, and manufacturing cost is lower; In addition, Mobile-HiFi converter related network receives can be by existing wireless router, and at this moment, the Mobile-HiFi converter can also omit expensive WiFi chip.
Embodiment five
As shown in figure 10, the embodiment of the invention also provides a kind of HiFi audio output system, and this system comprises embodiment two described portable terminals and embodiment three described Mobile-HiFi converters.The described system of the embodiment of the invention, by the Audio Flinger in the portable terminal being carried out revising of the functions and in terminal, setting up virtual HiFi sound card module, realized the output to original pcm stream, avoid Audio Flinger that pcm stream is carried out SRC, equilibrium and audio adjustment, guaranteed the integrality of data.Moreover the present invention has realized pcm stream is converted to the generation that the I2S signal has limited jitter greatly by setting up the Mobile-HiFi converter.As seen technical scheme of the present invention can be converted to portable terminal the wireless digital rotating disk, has realized at portable terminal having guaranteed the output of tonequality high-fidelity during as source of sound, has well solved problems of the prior art.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (14)

1. a high-fidelity HiFi audio-frequency inputting method is characterized in that, comprising:
After the audio manager AudioFlinger of portable terminal receives pulse code modulation (PCM) pcm stream and PCM format information, it is pass-through to virtual HiFi sound card pre-configured in the portable terminal;
Described virtual HiFi sound card by and the Mobile-HiFi converter between the communication connection of setting up, described pcm stream and PCM format information are transferred to described Mobile-HiFi converter;
Described Mobile-HiFi converter generates the I2S signal based on the described pcm stream that receives and PCM format information, and exports described I2S signal to audio-frequence player device.
2. the method for claim 1, it is characterized in that, the communication connection of setting up between described virtual HiFi sound card and Mobile-HiFi converter comprises: be connected in order to the User Datagram Protoco (UDP) UDP that transmits the PCM format information, and connect in order to the transmission control protocol TCP that transmits pcm stream.
3. the method for claim 1 is characterized in that, described Mobile-HiFi converter generates the I2S signal based on the described pcm stream that receives and PCM format information, specifically comprises:
Described Mobile-HiFi converter is selected the crystal oscillator with described PCM format information coupling based on the described PCM format information that receives in the built-in crystal oscillator group of described Mobile-HiFi converter;
Described Mobile-HiFi converter is converted to the pcm stream that receives the I2S signal of zero error based on the standard time clock that the described crystal oscillator of selecting provides.
4. the method for claim 1 is characterized in that, behind the described generation I2S signal, further comprises: described I2S signal is converted to the SPDIF signal, and after described SPDIF signal carried out isolation processing, exports audio-frequence player device to.
5. the method for claim 1, it is characterized in that, when described AudioFlinger receives pcm stream and PCM format information, further comprise: AudioFlinger detects portable terminal and whether has opened the HiFi output function, and when detecting the unlatching of HiFi output function, described pcm stream and PCM format information are pass-through to virtual HiFi sound card pre-configured in the portable terminal.
6. method as claimed in claim 5, it is characterized in that, when described portable terminal is opened in the HiFi output function, enable testing mechanism, and trigger based on user's test, set up and verify communication connection between described virtual HiFi sound card and Mobile-HiFi converter.
7. a portable terminal is characterized in that, comprising:
Audio manager AudioFlinger after being used for receiving pcm stream and PCM format information, is pass-through to virtual HiFi sound card module with it;
Virtual HiFi sound card module, be used for by and the Mobile-HiFi converter between the communication connection of setting up, described pcm stream and PCM format information are transferred to described Mobile-HiFi converter.
8. portable terminal as claimed in claim 7, it is characterized in that, described virtual HiFi sound card module, concrete be used for utilizing with the Mobile-HiFi converter between set up UDP and be connected and transmit the PCM format information, and set up TCP between utilization and Mobile-HiFi converter and be connected and transmit pcm stream.
9. portable terminal as claimed in claim 7, it is characterized in that, described AudioFlinger, be further used for after receiving pcm stream and PCM format information, detect portable terminal and whether opened the HiFi output function, and when detecting the unlatching of HiFi output function, described pcm stream and PCM format information are pass-through to described virtual HiFi sound card module.
10. portable terminal as claimed in claim 9, it is characterized in that, described portable terminal, also comprise: test module, be used for when the HiFi output function is opened, enable testing mechanism, and trigger based on user's test, set up and verify communication connection between described virtual HiFi sound card module and Mobile-HiFi converter.
11. a Mobile-HiFi converter is characterized in that, comprising:
Information receiving module is used for pcm stream and PCM format information that the mobile terminal receive side sends;
Micro-processor MCV is used for pcm stream and PCM format information based on described information receiving module reception, generates the I2S signal, and exports described I2S signal to audio-frequence player device.
12. Mobile-HiFi converter as claimed in claim 11 is characterized in that, described Mobile-HiFi converter also comprises the crystal oscillator group;
Described MCU is further used for based on described PCM format information, the crystal oscillator of selection and described PCM format information coupling in described crystal oscillator group, and based on the standard time clock that the described crystal oscillator of selecting provides, the pcm stream that receives is converted to the I2S signal of zero error.
13. such as claim 11 or 12 described Mobile-HiFi converters, it is characterized in that, described Mobile-HiFi converter also comprises: signal conversion module;
Described signal conversion module is used for the I2S signal that described MCU generates is converted to the SPDIF signal, and after described SPDIF signal carried out isolation processing, exports audio-frequence player device to.
14. a high-fidelity HiFi audio output system is characterized in that, comprising: each described portable terminal of claim 7 to 10, and each described Mobile-HiFi converter of claim 11 to 13.
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 true CN103077003A (en) 2013-05-01
CN103077003B CN103077003B (en) 2016-08-03

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 Before (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) CN105955694B (en)
WO (1) WO2013167021A2 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013167021A2 (en) * 2012-12-27 2013-11-14 中兴通讯股份有限公司 Method, device and system for outputting hifi audio frequency
CN104954941A (en) * 2015-06-10 2015-09-30 福州瑞芯微电子有限公司 High-performance and low-power HIFI (high fidelity) decoding system
CN105183482A (en) * 2015-09-23 2015-12-23 浪潮(北京)电子信息产业有限公司 Network simulation development testing method and system
CN105828272A (en) * 2016-04-28 2016-08-03 乐视控股(北京)有限公司 Audio signal processing method and apparatus
WO2016131373A1 (en) * 2015-08-06 2016-08-25 中兴通讯股份有限公司 Method and terminal for controlling high-fidelity function
CN105991700A (en) * 2015-02-06 2016-10-05 百度在线网络技术(北京)有限公司 Voice data processing method, cloud server system and terminal equipment
CN106293659A (en) * 2015-05-21 2017-01-04 阿里巴巴集团控股有限公司 A kind of audio frequency real-time processing method, device and intelligent terminal
CN106792118A (en) * 2016-12-20 2017-05-31 北京小米移动软件有限公司 The player method and device of multimedia file
WO2017101327A1 (en) * 2015-12-18 2017-06-22 乐视控股(北京)有限公司 Method and device for collective playback of high-fidelity sound by several players

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN201726521U (en) * 2010-04-02 2011-01-26 福州思迈特数码科技有限公司 Vehicle-mounted DVD navigation audio-visual device for raising audio frequency
CN101800062A (en) * 2010-04-02 2010-08-11 福州思迈特数码科技有限公司 Vehicle-mounted DVD navigation audio-visual device for realizing audio frequency increasing
CN105955694B (en) * 2012-12-27 2019-01-08 中兴通讯股份有限公司 A kind of HiFi audio-frequency inputting method and device

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

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013167021A2 (en) * 2012-12-27 2013-11-14 中兴通讯股份有限公司 Method, device and system for outputting hifi audio frequency
WO2013167021A3 (en) * 2012-12-27 2014-01-03 中兴通讯股份有限公司 Method, device and system for outputting hifi audio frequency
CN105991700A (en) * 2015-02-06 2016-10-05 百度在线网络技术(北京)有限公司 Voice data processing method, cloud server system and terminal equipment
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
CN104954941A (en) * 2015-06-10 2015-09-30 福州瑞芯微电子有限公司 High-performance and low-power HIFI (high fidelity) decoding system
CN104954941B (en) * 2015-06-10 2018-09-14 福州瑞芯微电子股份有限公司 High-performance low-power-consumption HIFI decodes system
WO2016131373A1 (en) * 2015-08-06 2016-08-25 中兴通讯股份有限公司 Method and terminal for controlling high-fidelity function
CN105183482A (en) * 2015-09-23 2015-12-23 浪潮(北京)电子信息产业有限公司 Network simulation development testing method and system
WO2017101327A1 (en) * 2015-12-18 2017-06-22 乐视控股(北京)有限公司 Method and device for collective playback of high-fidelity sound by several 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

Also Published As

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

Similar Documents

Publication Publication Date Title
CN103077003B (en) A kind of HiFi audio-frequency inputting method, device and system
US7295809B2 (en) Portable audio playback device with bass enhancement
US8565458B2 (en) Media player and adapter for providing audio data to hearing aid
CN103295610B (en) A kind of method of audio plays and device
US20110194713A1 (en) Hearing aid having multiple sound inputs and methods therefor
CN101095372A (en) Network audio speaker system
WO2021208495A1 (en) Adaptive pickup all-in-one control system
CN105208189B (en) Audio-frequency processing method and mobile terminal
CN102932567A (en) Terminal and audio processing method
CN104936102A (en) Stereo control method, stereo control device and split type stereo sound boxes
CN1983833A (en) Method for wireless transmitting audio signals and appararus thereof
US9628915B2 (en) Handheld portable high fidelity music playback with streaming and WiFi routing ability
US20210247953A1 (en) System and Method for Manipulating and Transmitting Live Media
CN109637512A (en) A kind of tuning system and tuning method
CN203243508U (en) Wireless howling suppression device
CN203747954U (en) Microphone and audio transmission system
CN205430537U (en) Multi -functional microphone
CN209642945U (en) A kind of jamproof wireless acoustics
WO2017185602A1 (en) Earphone mode switching method and electronic device
CN106535063A (en) Wireless network audio high-fidelity streaming media player
WO2018168200A1 (en) Terminal device and communication method
CN108989918A (en) A kind of apparatus for processing audio and a kind of audio frequency broadcast system
CN103152669A (en) Method for utilizing intelligent terminal to operate voice frequency effector
WO2015087729A1 (en) Voice radio transmission system, speaker device, and source device
JP3115592U (en) Multi-channel wireless transmission 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
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160803

Termination date: 20201227

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