{"id":4839,"date":"2022-03-19T14:11:45","date_gmt":"2022-03-19T14:11:45","guid":{"rendered":"http:\/\/mp4gain.com\/mp4gain\/?p=4839"},"modified":"2022-03-19T14:11:45","modified_gmt":"2022-03-19T14:11:45","slug":"pcm-audio-encoding","status":"publish","type":"post","link":"https:\/\/mp4gain.com\/mp4gain\/pcm-audio-encoding\/","title":{"rendered":"PCM audio encoding"},"content":{"rendered":"<h2>PCM audio encoding<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/b\/bf\/Pcm.svg\/324px-Pcm.svg.png\" alt=\"pcm\" width=\"324\" height=\"243\" \/><\/p>\n<p>Pulse Code Modulation PCM is short for Pulse Code Modulation.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/f\/f9\/MIC_se%C3%B1al.png\" alt=\"PCM AUDIO ENCODING\" width=\"258\" height=\"322\" \/><\/p>\n<p>Pulse code modulation is one of the encoding methods of digital communication. The main process is to sample the voice, image and other analog signals at regular intervals to discretize them, and at the same time, the sampled value is rounded and quantized according to the hierarchical unit, and the sampled value is represented by a set. of binary codes value.<\/p>\n<p>Principles of speech coding<br \/>\nAnyone with any electronic background knows that the audio signal collected by the sensor is an analog quantity, and what we use in the actual transmission process is a digital quantity. And this involves the process of converting from analog to digital. And the digitization of analog signals must go through three processes, namely sampling, quantization and encoding, to realize the pulse code modulation (PCM, pulse code modulation) technology of voice digitization.<\/p>\n<p>Convert analog signal to digital signal<br \/>\nSampling<br \/>\nSampling is the process of extracting sample values \u200b\u200bfrom an analog signal at a frequency twice or more of its signal bandwidth and changing it to a discrete sampled signal on the time axis.<\/p>\n<p>Sampling rate (sample): The number of samples per second extracted from a continuous signal to form a discrete signal, expressed in Hertz (Hz).<\/p>\n<p>Example: For example,<br \/>\nthe sample rate of the audio signal is 8000 Hz.<br \/>\nIt can be understood that the curve of the voltage change with time corresponding to the sampling in the above figure is 1 second, so the following 1 2 3 &#8230; 10 must have 1-8000 points, that is, 1 second is divided into 8000 parts, and taken out in turn The voltage value corresponding to the time of 8000 points.<\/p>\n<p>quantizing<br \/>\nAlthough the sampled signal is a discrete signal on the time axis, it is still an analog signal and its sampled value is within a certain range of values \u200b\u200band can have an infinite number of values. Obviously, it is impossible to give a group of digital code to correspond to an infinite number of samples one by one. To express the sample value by a digital code, the &#8220;rounding&#8221; method must be used to &#8220;round up&#8221; the sample value by degree, so that the sample value within a certain range of values can be changed from an infinite number of values. to a finite number of values. This process is called quantization.<\/p>\n<p>Compared to the sampled signal before quantization, the quantized sampled signal is, of course, distorted and is no longer an analog signal. This quantization distortion appears as noise when the analog signal is restored at the receiving end and is called quantization noise. The size of the quantization noise depends on how you &#8220;round&#8221; the sample value.<\/p>\n<p>Sampling bits: refers to the number of bits used to describe the digital signal.<br \/>\n8 bits (8 bits) represent 2 raised to the 8th power = 256, and 16 bits (16 bits) represent 2 raised to the 16th power = 65536; the higher the sampling number, the higher the precision.<\/p>\n<p>The number of samples is indicated here to describe the minimum separation between analog signals.<br \/>\nAssuming our sampling number is 8 and the range of the analog signal is 2, 0, then the minimum interval between digital signals is 2\/2^8 = 2\/256 = 1\/128;<br \/>\nsimilarly, the sample number is 16, so the minimum interval between digital signals is 2\/256\/256=1\/(128*256)<\/p>\n<p>For example<br \/>\n, the voltage range collected by the audio sensor is 0-3.3V, and the sampling number is 8bit (bit)<br \/>\n, that is, we take 3.3V\/ 2^8 = 0.0128 as quantization precision.<br \/>\nWe divide 3.3v into 0.0128 as the Y-axis step, as shown in Figure 3, 1 2 &#8230; 8 becomes 0 0.0128 0.0256 &#8230; 3.3 V. By<br \/>\nFor example, the voltage value of a sample point is 1.652V (128 * 0.128 and 129 * 0.128) we round it to 1.65V which corresponds to a quantization level of 128.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PCM audio encoding Pulse Code Modulation PCM is short for Pulse Code Modulation. Pulse code modulation is one of the encoding methods of digital communication. The main process is to sample the voice, image and other analog signals at regular intervals to discretize them, and at the same time, the sampled value is rounded and &hellip; <a href=\"https:\/\/mp4gain.com\/mp4gain\/pcm-audio-encoding\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;PCM audio encoding&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[257],"tags":[63309,66695,42758,66693,62528,29703,66694,66696,45904],"class_list":["post-4839","post","type-post","status-publish","format-standard","hentry","category-audio-normalizer","tag-aac-audio-encoding","tag-audio-and-video-encoding","tag-audio-encoder","tag-audio-encoding","tag-audio-encoding-standard","tag-digital-audio-encoding","tag-encode-audio-to-mp3","tag-hikvision-audio-encoding","tag-youtube-audio-encoding"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>PCM audio encoding - mp4gain.com<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/mp4gain.com\/mp4gain\/pcm-audio-encoding\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PCM audio encoding - mp4gain.com\" \/>\n<meta property=\"og:description\" content=\"PCM audio encoding Pulse Code Modulation PCM is short for Pulse Code Modulation. Pulse code modulation is one of the encoding methods of digital communication. The main process is to sample the voice, image and other analog signals at regular intervals to discretize them, and at the same time, the sampled value is rounded and &hellip; Continue reading &quot;PCM audio encoding&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/mp4gain.com\/mp4gain\/pcm-audio-encoding\/\" \/>\n<meta property=\"og:site_name\" content=\"mp4gain.com\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/mp4gain\" \/>\n<meta property=\"article:published_time\" content=\"2022-03-19T14:11:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/b\/bf\/Pcm.svg\/324px-Pcm.svg.png\" \/>\n<meta name=\"author\" content=\"R. Arias\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@mp4gain\" \/>\n<meta name=\"twitter:site\" content=\"@mp4gain\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"R. Arias\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/mp4gain.com\/mp4gain\/pcm-audio-encoding\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/mp4gain.com\/mp4gain\/pcm-audio-encoding\/\"},\"author\":{\"name\":\"R. Arias\",\"@id\":\"https:\/\/mp4gain.com\/mp4gain\/#\/schema\/person\/36ffddda9988e565bd4a9013324ce2cc\"},\"headline\":\"PCM audio encoding\",\"datePublished\":\"2022-03-19T14:11:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/mp4gain.com\/mp4gain\/pcm-audio-encoding\/\"},\"wordCount\":607,\"image\":{\"@id\":\"https:\/\/mp4gain.com\/mp4gain\/pcm-audio-encoding\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/b\/bf\/Pcm.svg\/324px-Pcm.svg.png\",\"keywords\":[\"aac audio encoding\",\"audio and video encoding\",\"audio encoder\",\"audio encoding\",\"audio encoding standard\",\"digital audio encoding\",\"encode audio to mp3\",\"hikvision audio encoding\",\"youtube audio encoding\"],\"articleSection\":[\"Audio Normalizer\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/mp4gain.com\/mp4gain\/pcm-audio-encoding\/\",\"url\":\"https:\/\/mp4gain.com\/mp4gain\/pcm-audio-encoding\/\",\"name\":\"PCM audio encoding - mp4gain.com\",\"isPartOf\":{\"@id\":\"https:\/\/mp4gain.com\/mp4gain\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/mp4gain.com\/mp4gain\/pcm-audio-encoding\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/mp4gain.com\/mp4gain\/pcm-audio-encoding\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/b\/bf\/Pcm.svg\/324px-Pcm.svg.png\",\"datePublished\":\"2022-03-19T14:11:45+00:00\",\"author\":{\"@id\":\"https:\/\/mp4gain.com\/mp4gain\/#\/schema\/person\/36ffddda9988e565bd4a9013324ce2cc\"},\"breadcrumb\":{\"@id\":\"https:\/\/mp4gain.com\/mp4gain\/pcm-audio-encoding\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/mp4gain.com\/mp4gain\/pcm-audio-encoding\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/mp4gain.com\/mp4gain\/pcm-audio-encoding\/#primaryimage\",\"url\":\"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/b\/bf\/Pcm.svg\/324px-Pcm.svg.png\",\"contentUrl\":\"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/b\/bf\/Pcm.svg\/324px-Pcm.svg.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/mp4gain.com\/mp4gain\/pcm-audio-encoding\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/mp4gain.com\/mp4gain\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PCM audio encoding\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/mp4gain.com\/mp4gain\/#website\",\"url\":\"https:\/\/mp4gain.com\/mp4gain\/\",\"name\":\"mp4gain.com\",\"description\":\"Mp4 Gain Official Website\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/mp4gain.com\/mp4gain\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/mp4gain.com\/mp4gain\/#\/schema\/person\/36ffddda9988e565bd4a9013324ce2cc\",\"name\":\"R. Arias\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/8ca03263e87418cfde07c571c83fa172297ce230085e4f181b9e5f9af745d6be?s=96&d=blank&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8ca03263e87418cfde07c571c83fa172297ce230085e4f181b9e5f9af745d6be?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8ca03263e87418cfde07c571c83fa172297ce230085e4f181b9e5f9af745d6be?s=96&d=blank&r=g\",\"caption\":\"R. Arias\"},\"description\":\"R. Arias is the author of this article and has extensive experience for more than 30 years as a recording engineer and audio specialist, as well as more than 20 years of experience creating algorithms related to audio and video. Linkedin\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/ricardoariaszorrilla\/\"],\"url\":\"https:\/\/mp4gain.com\/mp4gain\/author\/mp4gain\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PCM audio encoding - mp4gain.com","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/mp4gain.com\/mp4gain\/pcm-audio-encoding\/","og_locale":"en_US","og_type":"article","og_title":"PCM audio encoding - mp4gain.com","og_description":"PCM audio encoding Pulse Code Modulation PCM is short for Pulse Code Modulation. Pulse code modulation is one of the encoding methods of digital communication. The main process is to sample the voice, image and other analog signals at regular intervals to discretize them, and at the same time, the sampled value is rounded and &hellip; Continue reading \"PCM audio encoding\"","og_url":"https:\/\/mp4gain.com\/mp4gain\/pcm-audio-encoding\/","og_site_name":"mp4gain.com","article_publisher":"https:\/\/www.facebook.com\/mp4gain","article_published_time":"2022-03-19T14:11:45+00:00","og_image":[{"url":"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/b\/bf\/Pcm.svg\/324px-Pcm.svg.png","type":"","width":"","height":""}],"author":"R. Arias","twitter_card":"summary_large_image","twitter_creator":"@mp4gain","twitter_site":"@mp4gain","twitter_misc":{"Written by":"R. Arias","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/mp4gain.com\/mp4gain\/pcm-audio-encoding\/#article","isPartOf":{"@id":"https:\/\/mp4gain.com\/mp4gain\/pcm-audio-encoding\/"},"author":{"name":"R. Arias","@id":"https:\/\/mp4gain.com\/mp4gain\/#\/schema\/person\/36ffddda9988e565bd4a9013324ce2cc"},"headline":"PCM audio encoding","datePublished":"2022-03-19T14:11:45+00:00","mainEntityOfPage":{"@id":"https:\/\/mp4gain.com\/mp4gain\/pcm-audio-encoding\/"},"wordCount":607,"image":{"@id":"https:\/\/mp4gain.com\/mp4gain\/pcm-audio-encoding\/#primaryimage"},"thumbnailUrl":"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/b\/bf\/Pcm.svg\/324px-Pcm.svg.png","keywords":["aac audio encoding","audio and video encoding","audio encoder","audio encoding","audio encoding standard","digital audio encoding","encode audio to mp3","hikvision audio encoding","youtube audio encoding"],"articleSection":["Audio Normalizer"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/mp4gain.com\/mp4gain\/pcm-audio-encoding\/","url":"https:\/\/mp4gain.com\/mp4gain\/pcm-audio-encoding\/","name":"PCM audio encoding - mp4gain.com","isPartOf":{"@id":"https:\/\/mp4gain.com\/mp4gain\/#website"},"primaryImageOfPage":{"@id":"https:\/\/mp4gain.com\/mp4gain\/pcm-audio-encoding\/#primaryimage"},"image":{"@id":"https:\/\/mp4gain.com\/mp4gain\/pcm-audio-encoding\/#primaryimage"},"thumbnailUrl":"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/b\/bf\/Pcm.svg\/324px-Pcm.svg.png","datePublished":"2022-03-19T14:11:45+00:00","author":{"@id":"https:\/\/mp4gain.com\/mp4gain\/#\/schema\/person\/36ffddda9988e565bd4a9013324ce2cc"},"breadcrumb":{"@id":"https:\/\/mp4gain.com\/mp4gain\/pcm-audio-encoding\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/mp4gain.com\/mp4gain\/pcm-audio-encoding\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mp4gain.com\/mp4gain\/pcm-audio-encoding\/#primaryimage","url":"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/b\/bf\/Pcm.svg\/324px-Pcm.svg.png","contentUrl":"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/b\/bf\/Pcm.svg\/324px-Pcm.svg.png"},{"@type":"BreadcrumbList","@id":"https:\/\/mp4gain.com\/mp4gain\/pcm-audio-encoding\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/mp4gain.com\/mp4gain\/"},{"@type":"ListItem","position":2,"name":"PCM audio encoding"}]},{"@type":"WebSite","@id":"https:\/\/mp4gain.com\/mp4gain\/#website","url":"https:\/\/mp4gain.com\/mp4gain\/","name":"mp4gain.com","description":"Mp4 Gain Official Website","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/mp4gain.com\/mp4gain\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/mp4gain.com\/mp4gain\/#\/schema\/person\/36ffddda9988e565bd4a9013324ce2cc","name":"R. Arias","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/8ca03263e87418cfde07c571c83fa172297ce230085e4f181b9e5f9af745d6be?s=96&d=blank&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/8ca03263e87418cfde07c571c83fa172297ce230085e4f181b9e5f9af745d6be?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8ca03263e87418cfde07c571c83fa172297ce230085e4f181b9e5f9af745d6be?s=96&d=blank&r=g","caption":"R. Arias"},"description":"R. Arias is the author of this article and has extensive experience for more than 30 years as a recording engineer and audio specialist, as well as more than 20 years of experience creating algorithms related to audio and video. Linkedin","sameAs":["https:\/\/www.linkedin.com\/in\/ricardoariaszorrilla\/"],"url":"https:\/\/mp4gain.com\/mp4gain\/author\/mp4gain\/"}]}},"_links":{"self":[{"href":"https:\/\/mp4gain.com\/mp4gain\/wp-json\/wp\/v2\/posts\/4839","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mp4gain.com\/mp4gain\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mp4gain.com\/mp4gain\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mp4gain.com\/mp4gain\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mp4gain.com\/mp4gain\/wp-json\/wp\/v2\/comments?post=4839"}],"version-history":[{"count":0,"href":"https:\/\/mp4gain.com\/mp4gain\/wp-json\/wp\/v2\/posts\/4839\/revisions"}],"wp:attachment":[{"href":"https:\/\/mp4gain.com\/mp4gain\/wp-json\/wp\/v2\/media?parent=4839"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mp4gain.com\/mp4gain\/wp-json\/wp\/v2\/categories?post=4839"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mp4gain.com\/mp4gain\/wp-json\/wp\/v2\/tags?post=4839"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}