Unable to integrate Voice.h in my UE4 project

Hi,

I am trying to include the voice.h library in my UE4 project.

I am seeing this error
Error 23 error C1083: Cannot open include file: ‘Voice.h’: No such file or directory e:\mapping\uadiopzg\source\uadiopzg\VoiceActor.h 5 1 UadioPZG

I have made the suggested changes in my .ini files

DefaultEngine.ini

[Voice]
bEnabled=true

[OnlineSubsystem]
bHasVoiceEnabled=true

In DefaultGame.ini

[/Script/Engine.GameSession]
bRequiresPushToTalk=false

I have solved this problem. There are changes that have to be made in the Build.cs file

“OnlineSubsystem”, “OnlineSubsystemUtils”, “Voice” had to be added to the Publicdependency module

Ran into this exact issue - thanks for helping me!