1. Home
  2. Explore
  3. Computer Science
  4. Digital Audio Waveforms

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Digital Audio Waveforms

  • 70Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Audio Fundamentals
  • spaceFlip card
  • KI knew it
  • DI didn't know it
  • ←Previous card
  • →Next card

How is speech converted into a signal that a computer can store?

Tap to flipClick to flipspace

Vocal-fold vibration, mouth shape, and tongue placement create air-pressure waves that vibrate a microphone membrane; the microphone converts this motion into a voltage signal that the computer samples and stores.

Or swipe the card

70 cards

  1. How is speech converted into a signal that a computer can store?

    Vocal-fold vibration, mouth shape, and tongue placement create air-pressure waves that vibrate a microphone membrane; the microphone converts this motion into a voltage signal that the computer samples and stores.

  2. How frequently is an audio signal typically measured when being recorded?

    Thousands of times per second, according to the chosen sample rate.

  3. What does a WAV file store for digital audio?

    Metadata describing the audio format and an array of sampled signal values.

  4. What signature values should appear at the beginning of a valid WAV file?

    The file should begin with the identifiers RIFF and WAVE.

  5. How can the sections of a WAV file be located?

    Read each section’s name and size, record its location in a lookup table, and skip ahead by the section’s size.

  6. What metadata can be obtained from the WAV format section?

    Whether the file is mono or stereo, its sample rate, and the number of bits per sample.

  7. What is the purpose of the WAV data section?

    It contains the encoded audio sample values.

  8. How are raw WAV samples converted into normalized floating-point values?

    The appropriate number of bytes is read for each sample, converted to a numerical value, and divided by the maximum value representable by that sample size.

  9. Why does handling 24-bit audio require special processing?

    There is no standard built-in 24-bit numeric type, so bit manipulation is needed, especially to interpret negative values correctly.

  10. How is the duration of a sampled audio clip calculated?

    Divide the number of samples by the sample rate: T = rac{N}{f_s}.

  11. What do the axes of a waveform plot represent?

    The horizontal axis represents time, and the vertical axis represents the sample value, proportional to microphone voltage or air pressure.

  12. How does audio playback work in the described Unity system?

    An audio callback provides an empty block of output data, which is filled with successive samples from the WAV file and sent to the sound card.

  13. How can a fluid simulation approximate sound propagation?

    Treat the fluid as air, simulate pressure or density waves, and use a moving obstacle as a vibrating speaker membrane.

  14. Why were gravity and the target density changed in the fluid simulation?

    Gravity was disabled and the target density was reduced so the fluid would behave more like air than water.

  15. Why was fluid density visualized instead of individual particles?

    Density is closely related to pressure, so visualizing it makes pressure waves easier to observe.

  16. How was density visualized across the simulation?

    A computational cell was run for each texel in a texture and assigned a color based on the density at that position.

  17. What caused instability in the fluid simulation?

    Viscosity was still enabled from the water settings, and the particle count had been increased from about 15,00015{,}00015,000 to 75,00075{,}00075,000.

  18. How did the simulated speaker membrane receive the input audio?

    At each simulation time, the current audio sample was interpolated and used to offset the membrane’s position.

  19. How was simulated microphone pressure calculated?

    The local fluid density was measured, the fluid’s rest density was subtracted, and the result was multiplied by an arbitrary constant.

  20. Why did the first fluid-based audio recording capture almost nothing?

    The simulation performed only about 1,2001{,}2001,200 steps during the 444-second clip, producing far fewer pressure samples than the original 192,000192{,}000192,000 audio samples.

  21. How was the fluid simulation improved enough to reproduce recognizable speech?

    The simulation was slowed dramatically so the fluid had more time to respond to the moving membrane.

  22. How can a WAV file be reversed?

    Reverse the order of its sample array and save or play the resulting sequence.

  23. How can audio be slowed down using its sample rate?

    Play the same samples as though they were recorded at a lower sample rate.

  24. How can audio be sped up using its sample rate?

    Play the same samples as though they were recorded at a higher sample rate.

  25. Why does changing playback speed also change pitch?

    Changing playback speed stretches or compresses the waveform, which changes the frequencies present in the sound.

  26. How is a pure synthetic signal generated from frequency, sample rate, and duration?

    Compute the number of samples, calculate each sample’s time, and evaluate a sine or cosine function at that time.

  27. What is au auau in the context of sine and cosine waves?

    au auau is the constant equal to 2π2\pi2π, approximately 6.286.286.28, representing one full rotation in radians.

  28. What is a radian?

    A radian is the angle formed when an arc has a length equal to the circle’s radius.

  29. What does multiplying time by au auau and frequency do in a sinusoidal signal?

    It makes the wave complete fff cycles per second.

  30. What do sine and cosine represent geometrically?

    They give the vertical and horizontal coordinates of a point moving around a unit circle.

  31. What do compressions and rarefactions represent in a sound wave?

    Compressions are regions where air molecules are more tightly packed; rarefactions are regions where they are more spread apart.

  32. What determines the number of oscillations in a pure wave?

    The frequency and the time interval determine the number of cycles: C=fTC = fTC=fT.

  33. What does amplitude control in a sinusoidal signal?

    Amplitude controls the strength or height of the wave.

  34. What does phase control in a sinusoidal signal?

    Phase shifts the wave’s starting position, effectively moving it left or right.

  35. How can a complex synthetic sound be constructed from simple waves?

    Add sinusoidal waves with different frequencies, amplitudes, and phases.

  36. What are the three parameters stored for each component wave in the frequency data structure?

    Frequency, amplitude, and phase.

  37. What problem does the discrete Fourier transform solve?

    It extracts the frequency components, amplitudes, and phases that make up a sampled signal.

  38. How are samples visualized for understanding the DFT?

    Each sample value scales a test point positioned at a corresponding angle around a circle.

  39. What happens to the sample points when the test frequency matches a signal frequency?

    They form an offset circle whose center is displaced from the origin.

  40. What happens when the test frequency does not match a signal frequency?

    The sample points tend to spread around the circle symmetrically, causing their average to cancel toward zero.

  41. How is the sample center calculated?

    Sum all sample points and divide by the total number of samples: ar{p} = rac{1}{N}\sum_{n=0}^{N-1} p_n.

  42. What does a sample center at the origin indicate?

    The tested frequency is generally absent or has canceled out in the signal.

  43. How can the amplitude of a frequency component be obtained from the sample center?

    Measure the sample center’s distance from the origin and generally multiply it by 222.

  44. How can the phase of a frequency component be obtained?

    Measure the angle of the sample center relative to the origin.

  45. Why do other frequencies not affect the sample center when testing one frequency?

    Their sample points form symmetric patterns whose contributions cancel in the average.

  46. What occurs when the test frequency is a non-integer over the chosen observation interval?

    The test point does not complete a whole number of rotations, so the start and end points do not align and the sample center may wobble.

  47. What is spectral leakage?

    Spectral leakage is the spreading of a frequency component’s energy into nearby tested frequencies when it does not align with the available frequency resolution.

  48. How does increasing recording duration affect frequency resolution?

    It improves frequency resolution by allowing smaller frequency increments to be detected.

  49. How does increasing sample rate affect frequency detection?

    It increases the maximum detectable frequency but does not, by itself, improve frequency resolution.

  50. What is aliasing?

    Aliasing occurs when a signal is sampled too slowly and appears as a false lower-frequency signal.

  51. What is the Nyquist rate?

    The Nyquist rate is twice the highest frequency in the signal: fs=2fextmaxf_s = 2f_{ ext{max}}fs​=2fextmax​.

  52. Why is sampling slightly above the Nyquist rate preferable?

    Sampling exactly at twice the frequency can still produce an uninformative flat line for an especially unlucky phase.

  53. What does the Nyquist–Shannon sampling theorem guarantee?

    If a signal is band-limited and sampled above its Nyquist rate, the original signal is uniquely determined by the samples.

  54. Why can a sampled waveform appear to change strength even when the original signal does not?

    The sample positions may make the waveform look uneven, but the samples can still uniquely determine a constant-amplitude signal.

  55. What determines the maximum frequency that can be analyzed from sampled audio?

    The sample rate determines it; the maximum is approximately half the sample rate.

  56. Why are audio sample rates such as 44.144.144.1 kHz and 484848 kHz used?

    Human hearing extends to roughly 202020 kHz, requiring at least about 404040 kHz sampling, with extra margin added for imperfect anti-aliasing filters.

  57. How many frequency bins are used in the described DFT implementation?

    The spectrum contains N/2N/2N/2 frequency bins for NNN samples.

  58. What is the frequency spacing between DFT bins?

    The spacing is rac{1}{T}, equivalently rac{f_s}{N}, where TTT is duration, fsf_sfs​ is sample rate, and NNN is sample count.

  59. What information is stored in each frequency-data entry of the DFT result?

    The detected frequency, amplitude, and phase.

  60. What is the general process for computing the described DFT?

    Create frequency bins, calculate the sample center for each bin, extract amplitude and phase from that center, and store the results.

  61. What special case affects amplitude calculation at zero frequency?

    A zero-frequency component is a vertical shift, so its sample points coincide rather than forming a circle; it should not receive the usual factor of 222.

  62. What other special case does not use the usual amplitude-doubling factor?

    The frequency exactly equal to half the sample rate, the Nyquist frequency.

  63. How can a signal be reconstructed from DFT results?

    Generate each sinusoidal component using its frequency, amplitude, and phase, then add all components together.

  64. Why can a signal be reconstructed from fewer frequencies than it originally contains?

    Many frequency components have extremely small amplitudes and contribute little to the audible result.

  65. What happens when only a small number of the strongest frequency components are used?

    The result may sound like a low hum with very few components, become somewhat recognizable with more components, and become clearer as more are included.

  66. Why did the direct DFT implementation run slowly?

    It repeatedly tested many frequency bins and processed large numbers of samples, making the computation expensive.

  67. What is the fast Fourier transform?

    The fast Fourier transform, or FFT, is an efficient algorithm for computing the discrete Fourier transform.

  68. Why is a frequency of 1.51.51.5 Hz detectable in a 222-second recording?

    Because it completes 1.5imes2=31.5 imes 2 = 31.5imes2=3 cycles, an integer number of cycles over the recording interval.

  69. What frequency resolution results from a 101010-second recording?

    The resolution is 1/101/101/10 Hz, so frequencies such as 1.11.11.1, 1.21.21.2, and 1.41.41.4 Hz align with the available bins.

  70. Why do fractional frequencies contaminate nearby DFT results?

    They do not align exactly with the available frequency bins, so their energy spreads into neighboring bins.

Card 1 of 70
Card 1 of 70

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent