Is it possible to get subtitles or a timed script with batch synthesis text to speech avatar?

d m 0 Reputation points
2024-09-13T15:07:19.0233333+00:00

Using batch text-to-speach or batch avatar API, is it possible to get subtitles on the generated video? Or even better, getting a script of the text with time stamps.

I was hoping to do some front end shenanigans by creating texts highlights, as the text gets read, but I would probably need that time-stamped text for that.

Can i do this with this Azure's API? Or would I need to do something like using speech to text on my generated audio to get that "time-stamped script"?

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

1 answer

Sort by: Most helpful
  1. Sina Salam 10,646 Reputation points
    2024-09-14T22:41:37.77+00:00

    Hello d m,

    Welcome to the Microsoft Q&A and thank you for posting your questions here.

    For more clarity about your questions on batch synthesis text to speech avatar in Azure AI Speech:

    Is it possible to get subtitles or a timed script with batch synthesis text to speech avatar?

    Yes, you can get a timed script using Azure's Batch Synthesis API for text-to-speech avatars - https://learn.microsoft.com/en-us/azure/ai-services/speech-service/text-to-speech-avatar/batch-synthesis-avatar-properties)

    is it possible to get subtitles on the generated video Or even better, getting a script of the text with time stamps.

    API does not directly generate subtitles, you can use the timing details from the synthesis summary to create subtitles - https://learn.microsoft.com/en-us/azure/ai-services/speech-service/text-to-speech-avatar/batch-synthesis-avatar

    Can i do this with this Azure's API? Or would I need to do something like using speech to text on my generated audio to get that "time-stamped script"?

    You can achieve this with Azure's API by leveraging the timing details provided in the synthesis summary. Check the two links above.

    I hope this is helpful! Do not hesitate to let me know if you have any other questions.

    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.


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.