CN108391202A - A kind of onboard audio dynamic sampling method and system - Google Patents

A kind of onboard audio dynamic sampling method and system Download PDF

Info

Publication number
CN108391202A
CN108391202A CN201810163931.1A CN201810163931A CN108391202A CN 108391202 A CN108391202 A CN 108391202A CN 201810163931 A CN201810163931 A CN 201810163931A CN 108391202 A CN108391202 A CN 108391202A
Authority
CN
China
Prior art keywords
audio
pulse code
code modulation
sample rate
processing unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810163931.1A
Other languages
Chinese (zh)
Inventor
刘旭波
张志勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou Desay SV Automotive Co Ltd
Original Assignee
Huizhou Desay SV Automotive Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou Desay SV Automotive Co Ltd filed Critical Huizhou Desay SV Automotive Co Ltd
Priority to CN201810163931.1A priority Critical patent/CN108391202A/en
Publication of CN108391202A publication Critical patent/CN108391202A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

The present invention relates to audio sample method and technology field more particularly to a kind of onboard audio dynamic sampling method and system, include the following steps:Audio is decoded to obtain audio pulse code modulation data;Audio digit and audio sample rate are obtained according to audio pulse code modulation data;According to the audio sample rate of acquisition, processing unit obtains clock signal corresponding with the audio sample rate;Processing unit configures corresponding bus clock according to the clock signal;The audio digital processing device does audio effect processing under corresponding bus clock to the audio pulse code modulation data.The goal of the invention of the present invention is to provide a kind of onboard audio dynamic sampling method and system, solving existing audio sample method using technical solution provided by the invention, there are sample rate transfer zones come audio anharmonic wave distortion, the technical issues of processor resource of occupancy is big and simulation input causes low sampling rate that can not restore audio details.

Description

A kind of onboard audio dynamic sampling method and system
Technical field
The present invention relates to audio sample method and technology field more particularly to a kind of onboard audio dynamic sampling method and it is System.
Background technology
Sample rate is a kind of pitch criteria, and just as the resolution ratio of photo, sample rate is higher, the abundanter fidelity of music.Sound When sound becomes electronic signal from air pulsation, high sampling rate can allow music closer to primary sound quality, and the details of performance is more rich. However, even if music making accepted standard is very high, if when with the device plays of substandard, east that everything effort is all paid Stream.
With the development in market and technology, the function of automobile audio becomes more and more abundant, and high sampling rate music media is general And traditional fixed sample rate conversion (SRC) audio framework cannot meet experience of the people on automobile audio.
Fig. 1 is the common configuration diagram of depot:U1 is central processing unit (CPU), audio frequency media decoding;U2 is audio number Word processing device (DSP), mainly does audio effect processing to decoded audio data;U3 is power amplifier (Amplifier), power amplification Device amplifies audio signal, drives loudspeaker;X1 is crystal oscillator, is the system clock of CPU, audio sampling clock thus clock division, essence It spends relatively low;X2 is crystal oscillator, is the system clock of DSP.The use method of the common framework of depot is as follows:A piece of music is played, it is first First in the processor player sample rate conversion is done to audio decoder, be converted to fixed 48KHz or 44.1KHz, then I2S data are transmitted to DSP and carry out audio effect processing.
If it is 96KHz to play former audio sample rate, switch to 44.1KHz, will dropped audio some detailed information, shadow When ringing sense of hearing, therefore playing audio, sample rate transfer zone carrys out audio anharmonic wave distortion;In addition, processor when carrying out SRC, needs The processor resource to be occupied is big, especially currently popular linux system, and high performance SRC needs to consume great number License expenses;For simulation input, low sampling rate can not restore audio details.
Invention content
The goal of the invention of the present invention is to provide a kind of onboard audio dynamic sampling method and system, be provided using the present invention Technical solution solve existing audio sample method there are sample rate transfer zones to come audio anharmonic wave distortion, the processor of occupancy The technical issues of resource is big and simulation input causes low sampling rate that can not restore audio details.
In order to solve the above-mentioned technical problem, a kind of onboard audio dynamic sampling method of one aspect of the present invention offer, including with Lower step:
1), audio is decoded to obtain audio pulse code modulation data;
2), the obtained audio pulse code modulation data are sent to the static data link library of Linux sound frameworks, Obtain audio digit and audio sample rate;
3), according to the audio sample rate of acquisition, processing unit is by I2C bus configurations and obtains and the audio sample rate Corresponding clock signal;
4), processing unit configures the I2S bus clocks of audio digital processing device according to the clock signal, and by step 1 Obtained audio pulse code modulation data transmission is to audio digital processing device;
5), the audio digital processing device does audio under I2S bus clocks to the audio pulse code modulation data Processing, then by the sampling frequency converter inside the audio digital processing device by the audio pulse code tune after audio effect processing The I2S data that data processed switch to 96KHz are transmitted to power amplifier output.
In step 3, processing unit by I2C bus configurations and obtains clock letter corresponding with the audio sample rate Number;Preferably, the clock signal provides dynamic clock for audio, and sampling is not converted in processing unit to reach audio Rate.
In step 1, audio is decoded to obtain audio pulse code modulation data;Preferably, the audio is mould Quasi- sound source signal carries out ADC conversion decodings using the high sampling rate of 96KHz and obtains audio pulse code modulation data.
Based on above-mentioned onboard audio dynamic sampling method, another aspect of the present invention also provides a kind of onboard audio dynamic sampling The system of method, including the static data link library of Linux sound frameworks, central processing unit, audio digital processing device, the first crystalline substance It shakes, the second crystal oscillator and multifrequency crystal oscillator;
First crystal oscillator and the second crystal oscillator are respectively used to carry for the central processing unit and the audio digital processing device For system clock;
The central processing unit obtains audio pulse code modulation data for being decoded to audio;
The static data link library of the Linux sound framework, for being obtained according to the audio pulse code modulation data Obtain audio digit and audio sample rate;
The audio digital processing device, for doing audio effect processing to decoded audio data;
The multifrequency crystal oscillator is believed for providing different clocks to the central processing unit according to different audio sample rates Number.
From the foregoing, it will be observed that following advantageous effect can be obtained using the present invention:Multifrequency crystal oscillator in system provides for audio Dynamic clock does not convert sample rate to reach audio in processing unit, avoids audio non-because sample rate transfer zone carrys out audio Harmonic distortion;To simulation sound source signal input, high sampling rate is sampled, improves audio fidelity, the finer and smoother music of output;Compared with Under high audio capability requires, software SRC license costs are saved.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, the present invention will be implemented below Attached drawing is briefly described needed in the description of example or the prior art.It should be evident that the accompanying drawings in the following description Only a part of the embodiment of the invention, for those of ordinary skill in the art, in not making the creative labor property Under the premise of, other drawings may also be obtained based on these drawings.
Fig. 1 is the common audio frequency process Organization Chart of depot;
Fig. 2 is onboard audio dynamic sampling method flow block diagram of the embodiment of the present invention;
Fig. 3 is onboard audio dynamic sampling system structure diagram of the embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes.Obviously, described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts Embodiment shall fall within the protection scope of the present invention.
Existing automobile audio, sampling fixed sample rate sample rate conversion is done to audio, be converted to fixed 48KHz or 44.1KHz, sample rate transfer zone carry out audio anharmonic wave distortion;Processor needs the processor resource occupied when carrying out SRC Greatly, especially currently popular linux system, and high performance SRC needs to consume the license expenses of great number;For simulation Input, low sampling rate can not restore audio details.
Fig. 2 is referred to, in order to solve the above-mentioned technical problem, on the one hand the present embodiment provides a kind of onboard audio dynamic sampling Method includes the following steps:
1), audio is decoded to obtain audio pulse code modulation data;
2), obtained audio pulse code modulation data are sent to the static data link library of Linux sound frameworks, are obtained Audio digit and audio sample rate;
3), according to the audio sample rate of acquisition, processing unit is by I2C bus configurations and obtains corresponding with audio sample rate Clock signal;
Clock signal provides dynamic clock for audio, and sample rate is not converted in processing unit to reach audio.
4), processing unit configures the I2S bus clocks of audio digital processing device according to clock signal, and step 1 is obtained Audio pulse code modulation data transmission to audio digital processing device;
5), audio digital processing device does audio effect processing under I2S bus clocks to audio pulse code modulation data, then leads to The sampling frequency converter crossed inside audio digital processing device switchs to the audio pulse code modulation data after audio effect processing The I2S data of 96KHz are transmitted to power amplifier output.
Based on above-mentioned onboard audio dynamic sampling method, on the other hand the present embodiment also provides a kind of onboard audio dynamic and adopts The system of quadrat method refers to Fig. 3, including the static data link library of Linux sound frameworks, central processing unit U1, audio number Word processing device U2, the first crystal oscillator X1, the second crystal oscillator X2, multifrequency crystal oscillator X3 and power amplifier U3.
Wherein, the first crystal oscillator X1 and the second crystal oscillator X2 is respectively used to as central processing unit U1 and audio digital processing device U2 System clock is provided;
Central processing unit U1 obtains audio pulse code modulation data for being decoded to audio;
The static data link library of Linux sound frameworks, for obtaining audio position according to audio pulse code modulation data Number and audio sample rate;
Audio digital processing device U2, for doing audio effect processing to decoded audio data;
Multifrequency crystal oscillator X3, for providing different clock signals to central processing unit U1 according to different audio sample rates;
Power amplifier U3, power amplifier drive loudspeaker for amplifying audio signal.
Above-mentioned onboard audio dynamic sampling system concrete operating principle is as follows:
Vehicle device plays an audio, and player is to audio decoder first in central processing unit U1, the audio arteries and veins that will be obtained The static data link library that coding modulation data gives Linux sound frameworks is rushed, audio digit and sample rate are obtained;Central processing Device U1 is configured the crystal oscillator of multifrequency crystal oscillator X3 by I2C, corresponding clock is obtained, in configuring according to the audio sample rate of acquisition Then the I2S clocks of central processor U1 start audio pulse code modulation data transmission to audio digital processing device U2;Audio arteries and veins It rushes coding modulation data and does audio effect processing in audio digital processing device U2, then by included inside audio digital processing device U2 Hardware SRC switch to 96KHz I2S data be transmitted to power amplifier output.
Technical solution provided in this embodiment, the multifrequency crystal oscillator in system provides dynamic clock for audio, to reach Audio does not convert sample rate in processing unit, and audio is avoided to carry out audio anharmonic wave distortion because of sample rate transfer zone;It greatlys save CPU usage;When playing 96KHz audios, the purpose of " 0 " conversion is realized, ensure that music is genuine;In addition, playing AUX When the analog signals source of sound such as IN, is converted using the high sampling ADC of 96KHz, restore audio details to greatest extent;To simulation source of sound letter Number input, DSP high sampling rates improve audio fidelity, the finer and smoother music of output;Under high audio performance requirement, save Software SRC license costs.
Embodiments described above does not constitute the restriction to the technical solution protection domain.It is any in above-mentioned implementation Modifications, equivalent substitutions and improvements etc., should be included in the protection model of the technical solution made by within the spirit and principle of mode Within enclosing.

Claims (4)

1. a kind of onboard audio dynamic sampling method, it is characterised in that:Include the following steps:
1), audio is decoded to obtain audio pulse code modulation data;
2), the obtained audio pulse code modulation data are sent to the static data link library of Linux sound frameworks, are obtained Audio digit and audio sample rate;
3), according to the audio sample rate of acquisition, processing unit is by I2C bus configurations and obtains corresponding with the audio sample rate Clock signal;
4), processing unit configures the I2S bus clocks of audio digital processing device according to the clock signal, and step 1 is obtained Audio pulse code modulation data transmission to audio digital processing device;
5), the audio digital processing device does audio effect processing under I2S bus clocks to the audio pulse code modulation data, Again by the sampling frequency converter inside the audio digital processing device by the audio pulse code modulation number after audio effect processing It is transmitted to power amplifier output according to the I2S data for switching to 96KHz.
2. onboard audio dynamic sampling method according to claim 1, in step 3, processing unit is matched by I2C buses It sets and obtains clock signal corresponding with the audio sample rate;It is characterized in that:The clock signal provides dynamic for audio Clock, sample rate is not converted in processing unit to reach audio.
3. onboard audio dynamic sampling method according to claim 2 is decoded audio to obtain sound in step 1 Frequency pulse code modulation data;It is characterized in that:The audio is simulation sound source signal, is carried out using the high sampling rate of 96KHz ADC conversion decodings obtain audio pulse code modulation data.
4. a kind of system based on the onboard audio dynamic sampling method described in any one of claim 1-3, it is characterised in that: Static data link library, central processing unit including Linux sound frameworks, audio digital processing device, the first crystal oscillator, the second crystal oscillator With multifrequency crystal oscillator;
First crystal oscillator and the second crystal oscillator are respectively used to provide for the central processing unit and the audio digital processing device and be System clock;
The central processing unit obtains audio pulse code modulation data for being decoded to audio;
The static data link library of the Linux sound framework, for obtaining sound according to the audio pulse code modulation data Frequency digit and audio sample rate;
The audio digital processing device, for doing audio effect processing to decoded audio data;
The multifrequency crystal oscillator, for providing different clock signals to the central processing unit according to different audio sample rates.
CN201810163931.1A 2018-02-27 2018-02-27 A kind of onboard audio dynamic sampling method and system Pending CN108391202A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810163931.1A CN108391202A (en) 2018-02-27 2018-02-27 A kind of onboard audio dynamic sampling method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810163931.1A CN108391202A (en) 2018-02-27 2018-02-27 A kind of onboard audio dynamic sampling method and system

Publications (1)

Publication Number Publication Date
CN108391202A true CN108391202A (en) 2018-08-10

Family

ID=63070036

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810163931.1A Pending CN108391202A (en) 2018-02-27 2018-02-27 A kind of onboard audio dynamic sampling method and system

Country Status (1)

Country Link
CN (1) CN108391202A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114253896A (en) * 2021-12-07 2022-03-29 苏州上声电子股份有限公司 Is used for I2Clock generation method and system of S-audio bus

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2824144Y (en) * 2005-10-10 2006-10-04 海信集团有限公司 Sound D-A converting circuit of automatically identifying sampling frequency
CN1897110A (en) * 2005-07-13 2007-01-17 孙浩 High-quality audio-frequency signal coverting playback device with solid memory as media
CN105047200A (en) * 2015-07-21 2015-11-11 重庆邮电大学 FPGA-based FLAC hardware decoder and decoding method
CN105955694A (en) * 2012-12-27 2016-09-21 中兴通讯股份有限公司 Method and device for outputting HiFi audio frequency
CN106024047A (en) * 2016-04-20 2016-10-12 深圳市聚视音科技有限公司 Lossless and high-fidelity music playing and audio processor based on DSP (digital signal processing)
WO2016203866A1 (en) * 2015-06-17 2016-12-22 ソニーセミコンダクタソリューションズ株式会社 Recording device, recording system, and recording method
CN107274919A (en) * 2016-04-08 2017-10-20 王泰来 Use the mixed high-fidelity dual-audio playing device and its player method for putting device of high-fidelity

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1897110A (en) * 2005-07-13 2007-01-17 孙浩 High-quality audio-frequency signal coverting playback device with solid memory as media
CN2824144Y (en) * 2005-10-10 2006-10-04 海信集团有限公司 Sound D-A converting circuit of automatically identifying sampling frequency
CN105955694A (en) * 2012-12-27 2016-09-21 中兴通讯股份有限公司 Method and device for outputting HiFi audio frequency
WO2016203866A1 (en) * 2015-06-17 2016-12-22 ソニーセミコンダクタソリューションズ株式会社 Recording device, recording system, and recording method
CN105047200A (en) * 2015-07-21 2015-11-11 重庆邮电大学 FPGA-based FLAC hardware decoder and decoding method
CN107274919A (en) * 2016-04-08 2017-10-20 王泰来 Use the mixed high-fidelity dual-audio playing device and its player method for putting device of high-fidelity
CN106024047A (en) * 2016-04-20 2016-10-12 深圳市聚视音科技有限公司 Lossless and high-fidelity music playing and audio processor based on DSP (digital signal processing)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114253896A (en) * 2021-12-07 2022-03-29 苏州上声电子股份有限公司 Is used for I2Clock generation method and system of S-audio bus
WO2023103749A1 (en) * 2021-12-07 2023-06-15 苏州上声电子股份有限公司 Clock generation method for i2s audio bus, system, and dac circuit

Similar Documents

Publication Publication Date Title
CN101202593B (en) Method and system for processing multi-rate audio from a plurality of audio processing sources
US9858916B2 (en) Sound processing method and terminal device
CN100381016C (en) Signal processing apparatus, signal processing method, program and recording medium
CN101609667B (en) Method for realizing karaoke function in PMP player
US6665409B1 (en) Methods for surround sound simulation and circuits and systems using the same
CN101154931A (en) Signalverarbeitungsvorrichtung
CN101192832A (en) Method and system for audio signal processing
CN102610267B (en) Method for improving audio playing quality of playing system
RU2007120528A (en) MULTI-CHANNEL ENCODING AND DECODING
CN104835520A (en) Mobile equipment recording method and device
CN201898592U (en) Multifunctional USB (Universal Serial Bus) sound box chip and sound box device
CN107507617B (en) System and method for realizing DSD audio hard solution
CN113035167A (en) Audio frequency tuning method and storage medium for active noise reduction
CN108391202A (en) A kind of onboard audio dynamic sampling method and system
CN106941643A (en) The multi-functional intelligent sound control method of one kind set
CN105869647A (en) Smart phone native DSD audio decoding method and system and smart phone
US20060253288A1 (en) Audio coding and decoding apparatus, computer device incorporating the same, and method thereof
CN205751532U (en) A kind of lossless hi-fi music based on DSP is play and audio process
CN207304893U (en) Multi signal voice input output system
CN211654305U (en) Digital audio control system
CN106024047A (en) Lossless and high-fidelity music playing and audio processor based on DSP (digital signal processing)
CN101800062A (en) Vehicle-mounted DVD navigation audio-visual device for realizing audio frequency increasing
CN203070758U (en) Audio recording and playing apparatus
CN201936613U (en) Effector with built-in various kinds of background music
CN104270696A (en) Broadcasting power-amplification sound system based on 4K Blu-ray player

Legal Events

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

Application publication date: 20180810

RJ01 Rejection of invention patent application after publication