Implementation of the encoder driver

The encoder driver is implemented on top of the sox library. The API of this library is simple, which makes it well suited for this study. However, it works only on files and not buffers, which would be an issue for a production-grade asynchronous application. This issue is ignored in this chapter to focus on the overall structure of the application. However, the next chapter will explain how to deal with this. Ensure that the sox package is installed on your system before running the server. The installation instructions are available in the Technical requirements section of this chapter. Before going into the driver implementation, let's start by writing the function that will actually perform the audio ...

Get Hands-On Reactive Programming with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.