{"id":142,"date":"2016-12-29T13:59:35","date_gmt":"2016-12-29T13:59:35","guid":{"rendered":"http:\/\/teachcomputerscience.com\/?p=142"},"modified":"2024-07-24T13:06:27","modified_gmt":"2024-07-24T13:06:27","slug":"sound-quality","status":"publish","type":"post","link":"https:\/\/teachcomputerscience.com\/sound-quality\/","title":{"rendered":"Sound &#8211; Quality, Size &#038; Storing Solutions"},"content":{"rendered":"<div class=\"gb-container gb-container-f27df75a upsell-block\"><div class=\"gb-inside-container\">\n<div class=\"gb-grid-wrapper gb-grid-wrapper-50435525\">\n<div class=\"gb-grid-column gb-grid-column-c208467d\"><div class=\"gb-container gb-container-c208467d\"><div class=\"gb-inside-container\">\n\n<h2 class=\"gb-headline gb-headline-dfd36aed gb-headline-text\">KS3 Sound Resources (14-16 years)<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>An editable PowerPoint lesson presentation<\/li>\n\n\n\n<li>Editable revision handouts<\/li>\n\n\n\n<li>A glossary which covers the key terminologies of the module<\/li>\n\n\n\n<li>Topic mindmaps for visualising the key concepts<\/li>\n\n\n\n<li>Printable flashcards to help students engage active recall and confidence-based repetition<\/li>\n\n\n\n<li>A quiz with accompanying answer key to test knowledge and understanding of the module<\/li>\n<\/ul>\n\n\n<div class=\"gb-button-wrapper gb-button-wrapper-3c8b7803\">\n\n<a class=\"gb-button gb-button-e302614e gb-button-text\" href=\"https:\/\/teachcomputerscience.com\/ks3\/data-representation\/sound\/\">View KS3 Sound Resources<\/a>\n\n<\/div>\n<\/div><\/div><\/div>\n\n<div class=\"gb-grid-column gb-grid-column-6598c0d3\"><div class=\"gb-container gb-container-6598c0d3\"><div class=\"gb-inside-container\">\n\n<h2 class=\"gb-headline gb-headline-cd3e2a3e gb-headline-text\">A-Level Data types (16-18 years)<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>An editable PowerPoint lesson presentation<\/li>\n\n\n\n<li>Editable revision handouts<\/li>\n\n\n\n<li>A glossary which covers the key terminologies of the module<\/li>\n\n\n\n<li>Topic mindmaps for visualising the key concepts<\/li>\n\n\n\n<li>Printable flashcards to help students engage active recall and confidence-based repetition<\/li>\n\n\n\n<li>A quiz with accompanying answer key to test knowledge and understanding of the module<\/li>\n<\/ul>\n\n\n<div class=\"gb-button-wrapper gb-button-wrapper-7236a681\">\n\n<a class=\"gb-button gb-button-ae918336 gb-button-text\" href=\"https:\/\/teachcomputerscience.com\/a-level\/data-types-data-structures-and-algorithms\/\">View A-Level Data types, data structures and algorithms Resources<\/a>\n\n<\/div>\n<\/div><\/div><\/div>\n<\/div>\n<\/div><\/div>\n\n\n\n\n<p>Candidates should be able to:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>explain how sound can be sampled and stored in digital form<\/li>\n\n\n\n<li>explain how sampling intervals and other considerations affect the size of a sound file and the quality of its playback.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">How can sound be sampled and stored in digital form?<\/h3>\n\n\n\n<p>A microphone converts sound waves into voltage changes. If a microphone is plugged into a sound card then the voltage can be sampled at regular intervals (the sample rate) and each value converted into a binary number. This digitising of the sound is carried out by the Analogue to Digital Convertor (ADC) on the sound card and the series of binary numbers can be stored as a sound file.<\/p>\n\n\n\n<p><strong>Sampling is therefore the process of measuring the sound level<\/strong> (as a voltage from a microphone) <strong>at set intervals of time<\/strong> (the sample interval) and storing the values as binary numbers.<\/p>\n\n\n\n<p>The sound card can recreate the stored sound using a Digital to Analogue Convertor (DAC). This converts the series of binary numbers back into a changing voltage which can make a speaker (in a set of headphones or external speakers) vibrate to reproduce the sound.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">What affects the size of a sound file and the playback quality?<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Sampling rate\/sample interval<\/h4>\n\n\n<div class=\"wp-block-image size-full wp-image-143\">\n<figure class=\"alignright\"><img loading=\"lazy\" decoding=\"async\" width=\"533\" height=\"285\" src=\"http:\/\/teachcomputerscience.com\/wp-content\/uploads\/2016\/12\/audio_sample_low.gif\" alt=\"Audio sampling - Lower sample rate\" class=\"wp-image-143\" title=\"\"><figcaption class=\"wp-element-caption\">Audio sampling &#8211; Lower sample rate<\/figcaption><\/figure>\n<\/div>\n\n\n<p>The <strong>sample rate<\/strong> is the number of samples of the analogue sound wave taken per second. This frequency is measured in Hertz (Hz).<\/p>\n\n\n\n<p>The <strong>sample interval<\/strong> is the time period between each sample. It is therefore <strong>the reciprocal of the sample rate<\/strong> &#8211; as the sample interval decreases, the sample rate increases.<\/p>\n\n\n\n<p>For an audio compact disk (CD) the sampling rate is 44.1KHz or 44100 samples per second so the sample interval would be the reciprocal of this so about 0.024 Milliseconds. At this sample rate, 1 minute of audio would use 10Mb of memory (using 16 bit rate sampling).<\/p>\n\n\n<div class=\"wp-block-image size-full wp-image-144\">\n<figure class=\"alignright\"><img loading=\"lazy\" decoding=\"async\" width=\"533\" height=\"285\" src=\"http:\/\/teachcomputerscience.com\/wp-content\/uploads\/2016\/12\/audio_sample_high.gif\" alt=\"Sound Quality: Audio sampling - Higher sample rate\" class=\"wp-image-144\" title=\"\"><figcaption class=\"wp-element-caption\">Audio sampling &#8211; Higher sample rate<\/figcaption><\/figure>\n<\/div>\n\n\n<p>The smaller the sample interval then the more often the sound is sampled and the closer the match between the original analogue sound wave and the digitised version.<\/p>\n\n\n\n<p>However, higher sample rates need greater space on storage devices, need faster processors to manipulate the data and files will be slower to transfer over networks and the Internet.<\/p>\n\n\n\n<p><strong>SUMMARY:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>A higher sample rate (lower sample period) gives a better quality recording but a larger file size.<\/strong><\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Bit rate<\/h4>\n\n\n\n<p>The bit rate describes <strong>the number of memory bits that are used to store each sound sample.<\/strong><\/p>\n\n\n\n<p>If 1 bit is used then only 2 different levels of sound can be recorded and the sound would be unrecognisable when played back. If 3 bits (as illustrated in the animations above) are used then 8 different levels are to be stored but the result would still be an extremely poor quality of digitised sound.<\/p>\n\n\n\n<p>As the bit rate becomes higher, the number of <strong>different<\/strong> levels it is possible to record becomes greater and the closer the value stored in binary will be to the actual value that was sampled so the quality of the recording improves.<\/p>\n\n\n\n<p>An audio compact disk (CD) uses <strong>16-bit rate<\/strong> sampling which in theory gives <strong>65,536<\/strong> different levels of sound, enough for the playback quality to be difficult or impossible to distinguish from the original analogue source.<\/p>\n\n\n\n<p><strong>SUMMARY:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>A high bit rate gives a better quality recording but a larger file size.<\/strong><\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">File Compression<\/h4>\n\n\n\n<p>Both lossy and lossless file compression can be used with sound files although the former is far more effective in reducing file sizes.<\/p>\n\n\n\n<p>SUMMARY:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The <strong>greater the file compression<\/strong> the <strong>smaller the file size<\/strong>. If the compression is lossy then the increased file compression will also result in a <strong>lower sound quality<\/strong>.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"gb-headline gb-headline-bb51f802 gb-headline-text\">Further Readings: <\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/en.wikipedia.org\/wiki\/Sound_quality\" target=\"_blank\" rel=\"noopener\">Sound quality<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Candidates should be able to: How can sound be sampled and stored in digital form? A microphone converts sound waves into voltage changes. If a microphone is plugged into a sound card then the voltage can be sampled at regular intervals (the sample rate) and each value converted into a binary number. This digitising of &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Sound &#8211; Quality, Size &#038; Storing Solutions\" class=\"read-more button\" href=\"https:\/\/teachcomputerscience.com\/sound-quality\/\" aria-label=\"More on Sound &#8211; Quality, Size &#038; Storing Solutions\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_generate-full-width-content":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[27],"tags":[204,47],"class_list":["post-142","post","type-post","status-publish","format-standard","hentry","category-data-representation","tag-article","tag-hide-old-upsell","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50"],"acf":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/teachcomputerscience.com\/wp-json\/wp\/v2\/posts\/142","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/teachcomputerscience.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/teachcomputerscience.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/teachcomputerscience.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/teachcomputerscience.com\/wp-json\/wp\/v2\/comments?post=142"}],"version-history":[{"count":2,"href":"https:\/\/teachcomputerscience.com\/wp-json\/wp\/v2\/posts\/142\/revisions"}],"predecessor-version":[{"id":683179,"href":"https:\/\/teachcomputerscience.com\/wp-json\/wp\/v2\/posts\/142\/revisions\/683179"}],"wp:attachment":[{"href":"https:\/\/teachcomputerscience.com\/wp-json\/wp\/v2\/media?parent=142"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/teachcomputerscience.com\/wp-json\/wp\/v2\/categories?post=142"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/teachcomputerscience.com\/wp-json\/wp\/v2\/tags?post=142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}