It turned out that the following change is needed when the speaker is compiled as a module. Piotr Kaczuba