2 Audio Processing And Speech

Multimedia Computing · Unit 2

Audio Processing and Speech

Exam-focused notes for Audio Processing and Speech (Multimedia Computing, BIT356): what the TU syllabus asks and how it has actually been tested, with 4 solved past questions from this unit.

Audio Processing and Speech in short

Sound is a main medium in multimedia. This chapter covers how speech is made and sent, how digital audio is sampled and sized, how sounds are joined, and how MIDI stores music.

Audio Processing and Speech: notes

Speech generation process

Speech generation means producing speech sounds, either by a human or by a machine.

In a human, speech is produced in three parts:

  • The lungs push air upward.
  • The vocal cords in the larynx vibrate for voiced sounds such as "a" and "m". The vibration rate is the pitch (fundamental frequency).
  • The vocal tract (throat, mouth and nose) shapes the sound. The tongue, lips and teeth change its shape to make different sounds.

Sounds made with vibrating cords are voiced. Sounds made by air rushing through a narrow gap, such as "s" and "f", are unvoiced.

A machine can generate speech by speech synthesis. Text is converted into a sequence of basic sound units. The sound is then produced from stored recordings or from a model of the vocal tract. The basic units are phonemes (smallest sound units), diphones (a pair of neighbouring sounds) and syllables.

Speech analysis techniques

Speech analysis studies the speech signal to find who is speaking or what is being said.

  • Speaker identification finds which person from a known group is speaking.
  • Speaker verification checks whether a person is who they claim to be, as in a voice password.
  • Speech recognition converts spoken words into text.

Analysis works on short pieces of the signal (about 10 to 30 milliseconds) because speech changes quickly. Common features are the pitch, the energy, and the formants (the peak frequencies of the vocal tract). The signal is compared with stored patterns to find the best match.

Speech transmission systems

A speech transmission system sends speech from a sender to a receiver. Its components are:

  • Microphone and sampler: turns sound into an electrical signal, then into digital samples.
  • Encoder (coder): compresses the samples to save bandwidth.
  • Channel: the network or radio link that carries the bits.
  • Decoder: rebuilds the speech from the received bits.
  • Speaker: turns the signal back into sound.

Simple coding is PCM (pulse code modulation), used in telephones at 8000 samples per second with 8 bits each. Better methods such as ADPCM and vocoders (voice coders) use fewer bits by using the known properties of speech.

What this unit covers

  • Speech generation process
  • Speech analysis techniques
  • Speech transmission systems
  • Audio file size calculation
  • Sampling rate and bit resolution
  • Stereo sound recording
  • Time dependent sound concatenation
  • Frequency dependent sound concatenation
  • MIDI definition and components
  • MIDI interface architecture

Time dependent sound concatenation

2081 · 10 marks

Differentiate time dependent sound concatenation from frequency dependent sound concatenation. Describe the components of speech transmission systems.[10]

  • Definition: Concatenation performed in the time domain by directly joining audio waveforms end-to-end - Method: Audio samples are combined sequentially without transformation - Characteristics: - Simple, direct approach - Preserves original waveform characteristics - May produce audible discont...
Open this answer on its own page →

MIDI definition and components

2081 · 5 marks

Define MIDI. What are the components of a MIDI interface? [5]

Show solved answer

Model Answer: MIDI Definition and Components

Definition of MIDI

MIDI stands for Musical Instrument Digital Interface. It is a standardized protocol and hardware interface that allows electronic musical instruments, computers, and other devices to communicate and synchronize with each other. MIDI transmits musical performance data (such as note on/off commands, velocity, pitch bend, and control changes) rather than audio signals themselves.

Components of a MIDI Interface

A MIDI interface typically consists of the following components:

1. MIDI IN (Input)

  • Receives MIDI data from external devices (keyboards, controllers, sequencers)
  • Allows a device to listen to and respond to incoming MIDI messages
  • Uses a 5-pin DIN connector (standard configuration)

2. MIDI OUT (Output)

  • Transmits MIDI data to other devices
  • Allows a device to send performance data and control information
  • Also uses a 5-pin DIN connector

3. MIDI THRU (Through)

  • Passes incoming MIDI data directly to other devices without modification
  • Useful for daisy-chaining multiple instruments
  • Allows data to flow through a device to downstream equipment

4. MIDI Cable

  • Connects MIDI devices together
  • Standard 5-pin DIN connector at both ends
  • Carries serial digital data at 31.25 kbaud

5. Control Elements

  • Buttons, knobs, sliders, and keys on MIDI controllers
  • Generate MIDI messages based on user interaction

These components work together to enable real-time communication between musical devices and computers in a MIDI system.

Open this answer on its own page →

Speech generation process

0 · 10 marks

Describe the process of speech generation, analysis and transmission.[10]

Speech generation is the process of producing acoustic signals that carry linguistic information. It involves: - Articulatory Process: Speech is generated by the human vocal apparatus: - Air from the lungs passes through the vocal cords (vocal folds) in the larynx - Vibration of vocal cords produ...

Open this answer on its own page →

Audio file size calculation

0 · 5 marks

Calculate the file size in bytes for a 45 second recording at 40.14 KHz with 16 bits resolution stereo sound. [5]

  • Duration: $t = 45$ seconds - Sampling rate: $f = 40.14 \text{ kHz} = 40140 \text{ Hz}$ - Bit resolution (sample size): $b = 16$ bits - Channels: Stereo $\Rightarrow c = 2$ $$\text{File Size (bytes)} = \frac{f \times t \times b \times c}{8}$$ We divide by 8 to convert bits to bytes. $$\text{Samp...
Open this answer on its own page →