# 4. DIGITAL FILTER DESIGN

In the previous exercise, we used a very simple filter in order to remove the DC offset. Although the applied filter does the necessary job, it also removes frequencies of interest! Try running the Python script with and without this simple high pass filter (HPF), and you'll notice a lot of the lower frequencies of the voice are removed when applying this filter.

This motivates the design and use of a filter with a sharper [slope/roll-off](https://en.wikipedia.org/wiki/Roll-off). In this chapter, we approach this task in order to replace the simplistic filter used earlier. After all, no DSP module is complete without a section on filter design!

As before, text contained in highlighted boxes are tasks for ***you***!

{% hint style="info" %}
TASK: This is a task for you!
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://lcav.gitbook.io/dsp-labs/filter-design.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
