There are five attribute classes that are used in conjunction with the Call.playAndGetInput() method to facilitate this: The PlayAttributes class, The InputAttributes class, The MenuAttributes class, The DTMFAttributes class and The RecoAttributes class.
To record the caller's speech and store it as a voice segment, you use the Call.record() method.
For more information about speech recognition see the Blueworx Voice Response General Information and Planning information.