Matrix.listen not a function

Hi i’m working with a matrix voice using matrix os v0.17.1

when using the following JS function:

matrix.listen('hey joe', function(err, phrase){

});

I receive the error:

TypeError: matrix.listen is not a function
   at Object.<anonymous> (/home/pi/matrix-os/apps/testAPP.matrix/app.js:18:8)
   at Module._compile (module.js:556:32)
   at Object.Module._extensions..js (module.js:565:10)
   at Module.load (module.js:473:32)
   at tryModuleLoad (module.js:432:12)
   at Function.Module._load (module.js:424:3)
   at Module.require (module.js:483:17)
   at require (internal/module.js:20:19)
   at Object.<anonymous> (/home/pi/matrix-os/apps/testAPP.matrix/index.js:7:1)
   at Module._compile (module.js:556:32)

I found the function at:
https://matrix-io.github.io/matrix-documentation/matrix-os/reference/microphone/