Can we get captions file in webvtt format with Microsoft speech service through rest api. And also can we provide custom name to the caption file.

Ashish Kumar 5 Reputation points
2023-10-20T09:20:19.97+00:00

How to get the caption file in webvtt format with our custom name while using @Microsoft speech service through rest api. How to get vtt with batch transcription.

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,897 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. YutongTie-MSFT 52,856 Reputation points
    2023-10-21T01:26:34.1466667+00:00

    @Ashish Kumar

    Thanks for reaching out to us. For your question one, you can use Speech Studio or Speech Service SDK to do so, but not REST API.

    1.Can we get captions file in webvtt format with Microsoft speech service through rest api?

    The answer is yes, the Speech service supports output formats such as SRT (SubRip Text) and WebVTT (Web Video Text Tracks). These can be loaded onto most video players such as VLC, automatically adding the captions on to your video.

    https://github.com/Azure-Samples/cognitive-services-speech-sdk/blob/master/scenarios/python/console/captioning/captioning.py#L61

    2.And also can we provide custom name to the caption file?

    Like the sample here - python captioning.py --input caption.this.mp4 --format any --output caption.output.txt --srt --realTime --threshold 5 --delay 0 --profanity mask --phrases "Contoso;Jessie;Rehaan"

    You may want to try --output with the name

    reference document - https://learn.microsoft.com/en-us/azure/ai-services/speech-service/captioning-quickstart?tabs=linux%2Cterminal&pivots=programming-language-python#create-captions-from-speech

    Please take a look at it and let me know if you have more questions.

    Regards,

    Yutong

    -Please kindly accept the answer and vote 'Yes' if you feel helpful to support the community, thanks a lot.

    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.