5. GRANULAR SYNTHESIS

In this exercise, we will implement a more sophisticated voice transformation with granular synthesis. Although the alien voice does a good job in altering the voice, it can severely harm intelligibility due to aliasing and can only be used for shifting the pitch up. With granular synthesis, intelligibility will not be so significantly affected and we can shift the pitch down to create a Darth Vader voice.

In Section 5.1, we will briefly explain how we will be performing pitch shifting with granular synthesis. As for the alien voice effect, we will prototype the implementation in Python by simulating a real-time environment that receives samples in a buffer-based fashion. This should minimize the amount of errors when implementing the voice transformation in C on an embedded device. We will guide you through the Python implementation in Section 5.2.

As in the previous chapter, text contained in highlighted boxes, as shown below, will require you to determine the appropriate solution and implementation.

TASK: This is a task for you!

May the Force be with you!

                                   _.-'~~~~~~~~~~~~`-._
                                  /         ||         \
                                 /          ||          \
                                |           ||          |
                                | __________||__________|
                                |/ -------- \/ ------- \|
                               /     (     )  (     )    \
                              / \     ----- () -----    / \
                             /   \         /||\        /   \
                            /     \       /||||\      /     \
                           /       \     /||||||\    /       \
                          /_        \o=============o/        _\
                            `--...__|`-._       _.-'|__...--'
                                    |    `-----'    |

Figure: Modified from here.

Last updated