@swarnavageotech Thanks for the question. Can you please add more details Speech SDK version that you are using, also please share the sample code.
PushAudioInputStream and PullAudioInputStream now send wav header information to the Speech Service based on AudioStreamFormat, optionally specified when they were created. Customers must now use the supported audio input format. Any other formats will get sub-optimal recognition results or may cause other issues.
Please follow the Document to use codec compressed audio input with the Speech SDK.