Audio processing. Is it possible to directly access the decoded audio data going into the analog input of a computerLearning roadmap for the audio signal processing beginnerHow is data compression possible for audio?When do we normalize data in audio processing?Demodulating FSK audio in PythonSpectrograms for neural netsHow can i insert message bits into the frequency spectrum of an audio signal using matlab?What is Audio codec in simplified term?How to get the volume level from PCM audio data?RF demodulation for dummiesDecoding data hidden using “echo hiding” technique

What's the difference between /ɪ/ and /i(ː)/?

PTIJ: Who should I vote for? (21st Knesset Edition)

What is the significance behind "40 days" that often appears in the Bible?

Why do passenger jet manufacturers design their planes with stall prevention systems?

How could a scammer know the apps on my phone / iTunes account?

Should we release the security issues we found in our product as CVE or we can just update those on weekly release notes?

Is a party consisting of only a bard, a cleric, and a warlock functional long-term?

What do Xenomorphs eat in the Alien series?

What is this large pipe coming out of my roof?

Equilateral triangle on a concentric circle

Welcoming 2019 Pi day: How to draw the letter π?

Why doesn't using two cd commands in bash script execute the second command?

Problems with making formula look great

Who is flying the vertibirds?

Why doesn't the EU now just force the UK to choose between referendum and no-deal?

Did Ender ever learn that he killed Stilson and/or Bonzo?

newcommand: Combine (optional) star and optional parameter

Are there verbs that are neither telic, or atelic?

How to change two letters closest to a string and one letter immediately after a string using notepad++

Could the Saturn V actually have launched astronauts around Venus?

Do I need life insurance if I can cover my own funeral costs?

Science-fiction short story where space navy wanted hospital ships and settlers had guns mounted everywhere

Is it normal that my co-workers at a fitness company criticize my food choices?

Co-worker team leader wants to inject his friend's awful software into our development. What should I say to our common boss?



Audio processing. Is it possible to directly access the decoded audio data going into the analog input of a computer


Learning roadmap for the audio signal processing beginnerHow is data compression possible for audio?When do we normalize data in audio processing?Demodulating FSK audio in PythonSpectrograms for neural netsHow can i insert message bits into the frequency spectrum of an audio signal using matlab?What is Audio codec in simplified term?How to get the volume level from PCM audio data?RF demodulation for dummiesDecoding data hidden using “echo hiding” technique













2












$begingroup$


When a computer transcodes an audio file from one file format to another, does the computer first decode it into the raw digital stream (exactly what is fed into the DAC for the audio output) , or does it do something different without having to completely decode it?



Take Spotify files for example, I believe that they are not in a standard MP3 format that can be played on any device. However, shouldn't it be relatively easy to convert these files into standard MP3 files, by first decoding them and then re-encoding to MP3 format?



Or would it require getting the analogue audio, converting it back to digital and then encoding again. My main query is, do we generally have access to this raw decoded digital audio data?










share|improve this question









$endgroup$
















    2












    $begingroup$


    When a computer transcodes an audio file from one file format to another, does the computer first decode it into the raw digital stream (exactly what is fed into the DAC for the audio output) , or does it do something different without having to completely decode it?



    Take Spotify files for example, I believe that they are not in a standard MP3 format that can be played on any device. However, shouldn't it be relatively easy to convert these files into standard MP3 files, by first decoding them and then re-encoding to MP3 format?



    Or would it require getting the analogue audio, converting it back to digital and then encoding again. My main query is, do we generally have access to this raw decoded digital audio data?










    share|improve this question









    $endgroup$














      2












      2








      2





      $begingroup$


      When a computer transcodes an audio file from one file format to another, does the computer first decode it into the raw digital stream (exactly what is fed into the DAC for the audio output) , or does it do something different without having to completely decode it?



      Take Spotify files for example, I believe that they are not in a standard MP3 format that can be played on any device. However, shouldn't it be relatively easy to convert these files into standard MP3 files, by first decoding them and then re-encoding to MP3 format?



      Or would it require getting the analogue audio, converting it back to digital and then encoding again. My main query is, do we generally have access to this raw decoded digital audio data?










      share|improve this question









      $endgroup$




      When a computer transcodes an audio file from one file format to another, does the computer first decode it into the raw digital stream (exactly what is fed into the DAC for the audio output) , or does it do something different without having to completely decode it?



      Take Spotify files for example, I believe that they are not in a standard MP3 format that can be played on any device. However, shouldn't it be relatively easy to convert these files into standard MP3 files, by first decoding them and then re-encoding to MP3 format?



      Or would it require getting the analogue audio, converting it back to digital and then encoding again. My main query is, do we generally have access to this raw decoded digital audio data?







      audio sound mp3 digital-to-analog






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 2 hours ago









      Engineer999Engineer999

      1211




      1211




















          2 Answers
          2






          active

          oldest

          votes


















          2












          $begingroup$

          A program to convert an .mp3 audio file-format into , say, an .ra (real audio) audio file-format needs fully to decode the mp3 file into raw waveform audio and then re-encode it into its new format.



          This raw audio waveform data can be contained within 32/64-bit floating point or some integer formats though. But when it's sent to audio DAC, it should be in an integer format; this depends on the PC audio standard and as far as I know, Windows (and like) systems use 8/16 bit integer formats at this stage (you have to check for their developer knowledge base for their latest implementations)



          So there can be a very slight difference between the raw data at the input buffer of DAC and raw data that reside in the system RAM, but they are both raw waveform data.



          Nevertheless, unless the the two audio formats have some common design layering, then it's not possible to transcode from one format to the other without full decoding of the original.



          Finally, analog audio is practically never required as it would introduce more errors and complexities than do anything useful.






          share|improve this answer









          $endgroup$




















            1












            $begingroup$

            You can transcode by going from any encoded format to a PCM format (which is the raw waveform as it would be sent to a DAC) and then re-encode in the new format. PCM is always the input to an encoder and the output of a decoder.



            Most perceptual codecs like MP3, AAC, or Ogg (which Spotify uses) are all sub-band codecs and in theory it would be possible to transcode in the sub-band domain. However, the devil is in the details and it's really not worth the extra effort, especially since decode/encode is fast and super simple.



            Things can be more complicated if digital rights management or other copyright protection features are in place. In this case it may not be possible (or legal) to keep significant chunks of PCM format around.






            share|improve this answer









            $endgroup$












              Your Answer





              StackExchange.ifUsing("editor", function ()
              return StackExchange.using("mathjaxEditing", function ()
              StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
              StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
              );
              );
              , "mathjax-editing");

              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "295"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              imageUploader:
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              ,
              noCode: true, onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













              draft saved

              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdsp.stackexchange.com%2fquestions%2f56023%2faudio-processing-is-it-possible-to-directly-access-the-decoded-audio-data-going%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              2












              $begingroup$

              A program to convert an .mp3 audio file-format into , say, an .ra (real audio) audio file-format needs fully to decode the mp3 file into raw waveform audio and then re-encode it into its new format.



              This raw audio waveform data can be contained within 32/64-bit floating point or some integer formats though. But when it's sent to audio DAC, it should be in an integer format; this depends on the PC audio standard and as far as I know, Windows (and like) systems use 8/16 bit integer formats at this stage (you have to check for their developer knowledge base for their latest implementations)



              So there can be a very slight difference between the raw data at the input buffer of DAC and raw data that reside in the system RAM, but they are both raw waveform data.



              Nevertheless, unless the the two audio formats have some common design layering, then it's not possible to transcode from one format to the other without full decoding of the original.



              Finally, analog audio is practically never required as it would introduce more errors and complexities than do anything useful.






              share|improve this answer









              $endgroup$

















                2












                $begingroup$

                A program to convert an .mp3 audio file-format into , say, an .ra (real audio) audio file-format needs fully to decode the mp3 file into raw waveform audio and then re-encode it into its new format.



                This raw audio waveform data can be contained within 32/64-bit floating point or some integer formats though. But when it's sent to audio DAC, it should be in an integer format; this depends on the PC audio standard and as far as I know, Windows (and like) systems use 8/16 bit integer formats at this stage (you have to check for their developer knowledge base for their latest implementations)



                So there can be a very slight difference between the raw data at the input buffer of DAC and raw data that reside in the system RAM, but they are both raw waveform data.



                Nevertheless, unless the the two audio formats have some common design layering, then it's not possible to transcode from one format to the other without full decoding of the original.



                Finally, analog audio is practically never required as it would introduce more errors and complexities than do anything useful.






                share|improve this answer









                $endgroup$















                  2












                  2








                  2





                  $begingroup$

                  A program to convert an .mp3 audio file-format into , say, an .ra (real audio) audio file-format needs fully to decode the mp3 file into raw waveform audio and then re-encode it into its new format.



                  This raw audio waveform data can be contained within 32/64-bit floating point or some integer formats though. But when it's sent to audio DAC, it should be in an integer format; this depends on the PC audio standard and as far as I know, Windows (and like) systems use 8/16 bit integer formats at this stage (you have to check for their developer knowledge base for their latest implementations)



                  So there can be a very slight difference between the raw data at the input buffer of DAC and raw data that reside in the system RAM, but they are both raw waveform data.



                  Nevertheless, unless the the two audio formats have some common design layering, then it's not possible to transcode from one format to the other without full decoding of the original.



                  Finally, analog audio is practically never required as it would introduce more errors and complexities than do anything useful.






                  share|improve this answer









                  $endgroup$



                  A program to convert an .mp3 audio file-format into , say, an .ra (real audio) audio file-format needs fully to decode the mp3 file into raw waveform audio and then re-encode it into its new format.



                  This raw audio waveform data can be contained within 32/64-bit floating point or some integer formats though. But when it's sent to audio DAC, it should be in an integer format; this depends on the PC audio standard and as far as I know, Windows (and like) systems use 8/16 bit integer formats at this stage (you have to check for their developer knowledge base for their latest implementations)



                  So there can be a very slight difference between the raw data at the input buffer of DAC and raw data that reside in the system RAM, but they are both raw waveform data.



                  Nevertheless, unless the the two audio formats have some common design layering, then it's not possible to transcode from one format to the other without full decoding of the original.



                  Finally, analog audio is practically never required as it would introduce more errors and complexities than do anything useful.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 2 hours ago









                  Fat32Fat32

                  15.6k31232




                  15.6k31232





















                      1












                      $begingroup$

                      You can transcode by going from any encoded format to a PCM format (which is the raw waveform as it would be sent to a DAC) and then re-encode in the new format. PCM is always the input to an encoder and the output of a decoder.



                      Most perceptual codecs like MP3, AAC, or Ogg (which Spotify uses) are all sub-band codecs and in theory it would be possible to transcode in the sub-band domain. However, the devil is in the details and it's really not worth the extra effort, especially since decode/encode is fast and super simple.



                      Things can be more complicated if digital rights management or other copyright protection features are in place. In this case it may not be possible (or legal) to keep significant chunks of PCM format around.






                      share|improve this answer









                      $endgroup$

















                        1












                        $begingroup$

                        You can transcode by going from any encoded format to a PCM format (which is the raw waveform as it would be sent to a DAC) and then re-encode in the new format. PCM is always the input to an encoder and the output of a decoder.



                        Most perceptual codecs like MP3, AAC, or Ogg (which Spotify uses) are all sub-band codecs and in theory it would be possible to transcode in the sub-band domain. However, the devil is in the details and it's really not worth the extra effort, especially since decode/encode is fast and super simple.



                        Things can be more complicated if digital rights management or other copyright protection features are in place. In this case it may not be possible (or legal) to keep significant chunks of PCM format around.






                        share|improve this answer









                        $endgroup$















                          1












                          1








                          1





                          $begingroup$

                          You can transcode by going from any encoded format to a PCM format (which is the raw waveform as it would be sent to a DAC) and then re-encode in the new format. PCM is always the input to an encoder and the output of a decoder.



                          Most perceptual codecs like MP3, AAC, or Ogg (which Spotify uses) are all sub-band codecs and in theory it would be possible to transcode in the sub-band domain. However, the devil is in the details and it's really not worth the extra effort, especially since decode/encode is fast and super simple.



                          Things can be more complicated if digital rights management or other copyright protection features are in place. In this case it may not be possible (or legal) to keep significant chunks of PCM format around.






                          share|improve this answer









                          $endgroup$



                          You can transcode by going from any encoded format to a PCM format (which is the raw waveform as it would be sent to a DAC) and then re-encode in the new format. PCM is always the input to an encoder and the output of a decoder.



                          Most perceptual codecs like MP3, AAC, or Ogg (which Spotify uses) are all sub-band codecs and in theory it would be possible to transcode in the sub-band domain. However, the devil is in the details and it's really not worth the extra effort, especially since decode/encode is fast and super simple.



                          Things can be more complicated if digital rights management or other copyright protection features are in place. In this case it may not be possible (or legal) to keep significant chunks of PCM format around.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered 1 hour ago









                          HilmarHilmar

                          10.2k1218




                          10.2k1218



























                              draft saved

                              draft discarded
















































                              Thanks for contributing an answer to Signal Processing Stack Exchange!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid …


                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.

                              Use MathJax to format equations. MathJax reference.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdsp.stackexchange.com%2fquestions%2f56023%2faudio-processing-is-it-possible-to-directly-access-the-decoded-audio-data-going%23new-answer', 'question_page');

                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Which organization defines CJK Unified Ideographs? The Next CEO of Stack OverflowCharacters which have several different shapesHow useful are the kanji in reading Chinese?Can Chinese readers scan large amounts of text faster/more accurately than their alphabet-using counterparts?丼: why is “well” also “bowl of food”?What Does Unicode 8.0 Mean For Chinese?How are blanks indicated for placeholders in Chinese (like ???)Is there a dictionary of standard character variants?How to display CJK Extension F?How is it decided as to which character is used on the tech terminology?How does 子 come to mean 'midnight'?

                              Shenzhen Football Club Índice Elenco atual | Títulos | Referências Ligações externas | Menu de navegaçãoGooglenotíciaslivrosacadêmicoeditar«"Elenco"»Site oficialexpandindo-oeee

                              When We Were Young (canção de Adele) Índice Antecedentes e lançamento | Faixas e formatos | Performances e covers | Desempenho nas tabelas musicais | Créditos | Histórico de lançamento | Referências Menu de navegação«Best albums of 2015»«Adele - When We Were Young (Radio Date: 22-01-2016)»«When We Were Young - Single by Adele»«Adele: Inside Her Private Life and Triumphant Return»«adele interview: world exclusive first interview in three years»«Tobias Jesso Jr: since Adele tweeted his song, he's even bigger than his dad»«Adele interviews Tobias Jesso Jr: 'I think that a couple of the ideas we had could be rap songs'»«Adele on Her Return: 'I Was So Frightened That No One Cared'»«Tobias Jesso Jr. on working with Adele: 'I was as nervous as shit'»«How Ariel Rechtshaid Pushed Adele To Her Limit»«Adele Previews 'When We Were Young' on '60 Minutes' Teaser, Tops Trending 140»«Adele Performs New '25' Ballad, "When We Were Young" Live: Watch»«Which '25' Song Should Be Adele's Next Single?»«Adele's 'When We Were Young' Confirmed As Second Single From '25'»«Adele's new single artwork for 'When We Were Young' is perfectly adorable»«Adele at the BBC review: honest, funny and spectacular – Celebrity News News»«'Saturday Night Live': Adele Sings 'Hello' and 'When We Were Young'»«'Adele: Live in New York City' NBC Special – Set List Revealed!»«Adele Closes Out the 2016 Brit Awards With 'When We Were Young'»«What Is The Adele Live Tour Set List? There's No Way She'd Leave Out These 8 Songs»«See Demi Lovato's Soaring Cover of Adele's 'When We Were Young'»«'The Voice': 5 Best Moments From Week 1 Blind Auditions»«Adele – When We Were Young (Media Control Charts)»«Adele – When We Were Young (Entertainment Monitoring Africa)»«Adele – When We Were Young (ARIA Charts)»«Adele – When We Were Young (Ö3 Austria Top 40)»«Adele – When We Were Young (Ultratop 50)»«Adele – When We Were Young (Ultratop 40)»«Adele – When We Were Young (Canadian Hot 100)»«Adele – When We Were Young (Tracklisten)»«Adele – When We Were Young (The Official Charts Company)»«Adele – Hello (IFPI Slovenská Republika)»«Adele – When We Were Young (Productores de Música de España)»«Adele – When We Were Young (Billboard Hot 100)»«Adele – When We Were Young (Pop Songs)»«Adele – When We Were Young (Adult Pop Songs)»«Adele – When We Were Young (Hot Adult Contemporary Charts)»«Adele – When We Were Young (Hot Dance Club Songs)»«Adele – When We Were Young (Rock Airplay)»«Adele – When We Were Young (IFPI Finlândia)»«Adele – When We Were Young (Syndicat National de l'Éditon Phonographique)»«Adele – When We Were Young (Magyar Hanglemezkiadók Szövetsége)»«Adele – When We Were Young (Irish Recorded Music Association)»«Adele – When We Were Young (Mexico Airplay)»«Adele – When We Were Young (VG-lista)»«Adele – When We Were Young (NZ Top 40 Singles)»«Adele – When We Were Young (MegaCharts)»«Adele – When We Were Young (Związek Producentów Audio Video)»«Adele – When We Were Young (Portugal Digital Songs)»«Adele – When We Were Young (UK Indie Singles Chart)»«Adele – When We Were Young (UK Singles Chart)»«Adele – When We Were Young (Sverigetopplistan)»«Adele – When We Were Young (Schweizer Hitparade)»«Adele – When We Were Young (Portugal Digital Songs)»«Music Canada – Gold/Platinum – When We Were Young»«NZ Top 40 Singles Chart»«Certified Awards»e