How can I make in game voice communication?

VoiceInterface.h generates errors on the following line
DEFINE_ONLINE_DELEGATE_TWO_PARAM(OnPlayerTalkingStateChanged, TSharedRef, bool);

syntax error : identifier ‘OnPlayerTalkingStateChanged’
missing type specifier int assumed