How to get SSML timestamps from Google Cloud text-to-speech API

前端 未结 1 589
情歌与酒
情歌与酒 2021-02-05 14:00

I want to use SSML markers through the Google Cloud text-to-speech API to request the timing of these markers in the audio stream. These timestamps are necessary in order to pro

1条回答
  •  失恋的感觉
    2021-02-05 14:14

    Looks like this is supported in Cloud Text-to-Speech API v1beta1: https://cloud.google.com/text-to-speech/docs/reference/rest/v1beta1/text/synthesize#TimepointType

    You can use https://texttospeech.googleapis.com/v1beta1/text:synthesize. Set TimepointType to SSML_MARK. If this field is not set, timepoints are not returned by default.

    0 讨论(0)
提交回复
热议问题