ETIN Algorithms in Signal Processors Projects Tekn.Dr. Mikael - - PowerPoint PPT Presentation

etin algorithms in signal processors
SMART_READER_LITE
LIVE PREVIEW

ETIN Algorithms in Signal Processors Projects Tekn.Dr. Mikael - - PowerPoint PPT Presentation

ETIN Algorithms in Signal Processors Projects Tekn.Dr. Mikael Swartling Lund Institute of Technology Department of Electrical and Information Technology Projects Some suggested projects. Speech recognition. Speech synthesis.


slide-1
SLIDE 1

ETIN — Algorithms in Signal Processors

Projects Tekn.Dr. Mikael Swartling

Lund Institute of Technology Department of Electrical and Information Technology

slide-2
SLIDE 2

Projects

Some suggested projects.

◮ Speech recognition. ◮ Speech synthesis. ◮ Speech separation. ◮ Adaptive line enhancer. ◮ Adaptive echo canceller. ◮ Adaptive gain controller. ◮ Digital communication. ◮ Beat detection. ◮ Instrument effects.

slide-3
SLIDE 3

Offline vs. Realtime Processing

Offline processing in Matlab has some advantages.

◮ Non-causal or anti-causal filtering. ◮ Unlimited memory and processing resources. ◮ The entire signal is available at all times.

Realtime considerations.

◮ Limited memory and processing resources. ◮ The algorithm must run faster than the sample time. ◮ Sample based processing when delay must be minimised. ◮ Block processing can reduce the effective processing time.

slide-4
SLIDE 4

Block Processing

Process in blocks rather than individual samples.

◮ Wait for N samples before processing. ◮ Process all N samples at the same time. ◮ The supplied framework provides block processing.

x(n) → → y(n)

slide-5
SLIDE 5

Block Processing

Process in blocks rather than individual samples.

◮ Wait for N samples before processing. ◮ Process all N samples at the same time. ◮ The supplied framework provides block processing.

x(n) → → y(n)

slide-6
SLIDE 6

Block Processing

Process in blocks rather than individual samples.

See the function buffer in Matlab for block processing.

◮ xb = buffer(x, n)

function myproject x = audioread(’input.wav ’); xb = buffer(x, 320); [M, N] = size(xb); yb = zeros(M, N); for n = 1:N yb(:, n) = process(xb(:, n)); end y = yb (:); end function y = process(x) ... end

slide-7
SLIDE 7

Recursive Averaging

Sometimes long-time averaging is required.

◮ Low memory prevents long buffers for linear averaging.

P(n) = 1 N

N−1

  • k=0

x(n − k)2

◮ Recursive averaging allows averaging without memory.

P(n) = αP(n − 1) + (1 − α)x(n)2

slide-8
SLIDE 8

Linear Prediction

The -step forward linear prediction filter.

◮ Wiener problem with analytical or adaptive solutions. ◮ The filter describes deterministic properties of the signal. ◮ Common in speech processing.

◮ Describes formants or acoustic resonance. ◮ Filter a is normalized and pitch-independent.

d(n) z−1 a + e(n)

x(n) y(n) −

slide-9
SLIDE 9

Speech Modeling

Formants and stationarity.

◮ Formants show up as lines over time. ◮ Stationary over roughly  ms for speech.

0.5 1 1.5 2 2.5 3 500 1000 1500 2000 2500 3000 3500 4000

slide-10
SLIDE 10

Speech Recognition

Recognize spoken words from a pre-defined database.

◮ Frame the signal into blocks. ◮ Calculate the prediction filter. ◮ Compare the LP coefficients to a database.

x(n) Pre-emph. Framing LPC vk

slide-11
SLIDE 11

Speech Synthesis

Transform speech into a robotic voice.

◮ Frame the signal into blocks. ◮ Calculate the prediction filter. ◮ Calculate the pitch from the error signal. ◮ Construct a new excitation signal for different effects. ◮ Filter with the inverse of the prediction filter.

x(n) a e(n) e′(n) a−1 x′(n)

slide-12
SLIDE 12

Speech Synthesis

Linear prediction analysis.

Input signal and error signal.

0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08

  • 1
  • 0.8
  • 0.6
  • 0.4
  • 0.2

0.2 0.4 0.6 0.8 1 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08

  • 0.2
  • 0.15
  • 0.1
  • 0.05

0.05 0.1 0.15 0.2

slide-13
SLIDE 13

Speech Synthesis

Linear prediction synthesis.

Synthetic error signal and reconstructed output signal.

0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08

  • 0.2
  • 0.15
  • 0.1
  • 0.05

0.05 0.1 0.15 0.2 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08

  • 1
  • 0.8
  • 0.6
  • 0.4
  • 0.2

0.2 0.4 0.6 0.8 1

slide-14
SLIDE 14

Speech Separation

Separate two simultaneous speech sources.

◮ Speech excite narrow frequency bands at short times. ◮ Different speech sources rarely overlap. ◮ Separate different sources with selective masking.

Yn(ω,τ) =        X(ω,τ) if source n is active in (ω,τ),

  • therwise.
slide-15
SLIDE 15

Adaptive Line Enhancer

Remove tonal components from a signal.

◮ Delays a signal and attempt to predict it. ◮ Extract uncorrelated components such as speech. ◮ Suppress correlated components such as tonal sounds.

s(n) z−D w + LMS

d(n) y(n) − x(n) e(n) ∆w

slide-16
SLIDE 16

Adaptive Echo Cancellation

Remove echo form a signal.

◮ Identify the far-end to near-end channel. ◮ Extract near-end speech. ◮ Suppress far-end speech or disturbance.

x(n) LMS w H e(n) +

y(n) − d(n) ∆w

slide-17
SLIDE 17

Adaptive Gain Controller

Adjusts a gain to compress or expand the signal.

◮ Suppress high signal levels. ◮ Pass normal signal levels. ◮ Suppress background noise levels.

(·)2 AGC x(n) y(n)

slide-18
SLIDE 18

Digital Communication

Transmit digital information using modulation.

◮ Implement a transmitter and a receiver structure. ◮ Decide on modulation method and parameters:

◮ PSK, FSK, UWB modulation format. ◮ Communication protocol. ◮ Message length and synchronization. ◮ Error correction.

x(n) TX y(n) y′(n) RX ˆ x(n)

slide-19
SLIDE 19

Beat Detection

Find beats in music.

◮ Beats in a music dictates its rhythm. ◮ Mixing of music relies on beat matching.

0.5 1 1.5 2 2.5 3 3.5 4

  • 1
  • 0.5

0.5 1 0.5 1 1.5 2 2.5 3 3.5 4 0.05 0.1 0.15 0.2 0.25

slide-20
SLIDE 20

Instrument Effects

Bank of audio effects for instruments.

Time based effects.

◮ Delay, echo, reverb.

Modulation based effects.

◮ Chorus, flanger, ring modulator, tremolo.

g(n) z−f (n) x(n) + y(n)

slide-21
SLIDE 21

Your own project

Or choose your own project...

◮ Base on your own personal interest or field of research. ◮ Project details and focus can be adapted as necessary.