GSTREAMER Command for .wav conversion

Amper, Charwin (Contractor) 65 Reputation points
2025-02-20T09:41:50.5933333+00:00

Good day!

I am using GStreamer command to convert the input file to .wav format.

"gst-launch-1.0 filesrc location=\"{inputVideoAudioPath}\" ! decodebin ! audioconvert ! audioresample ! audio/x-raw,format=S16LE,rate=16000,channels=1 ! wavenc ! filesink location=\"{outputAudioWavPath}\""

However, I am encountering the following error:

 {
      "status": "Failed",
      "errorKind": "InvalidAudioFormat",
      "errorMessage": "Unsupported audio format. (JobId de0cff12-6868-41bc-b5c7-4879cb548043)."
    }

Could you please help me identify what I might be missing in the command?

I understand this may not be the ideal platform for this question, and I completely understand if it is ignored. I just wanted to give it a try.

Regards.

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,924 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. santoshkc 12,740 Reputation points Microsoft Vendor
    2025-02-21T16:34:47.0733333+00:00

    Hi @Amper, Charwin (Contractor),

    Thank you for reaching out. GStreamer is an open-source third-party tool, and while it is not directly supported by Microsoft, we understand that you may be using it in conjunction with our services.

    For assistance with GStreamer-specific issues, we recommend checking the GStreamer community forums or official documentation. However, if you are using the output .wav file with a Microsoft service (e.g., Azure Speech-to-Text), please refer to the expected audio format requirements to ensure compatibility.

    If you need further help with Microsoft services, feel free to provide more details, and we’ll be happy to assist!

    I hope you understand. Thank you.


    Do click Accept Answer and Yes for helpfulness.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.