Search code examples
google-cloud-platformnlppunctuation

Can the Google Cloud API be used to perform punctuation restoration on text?


Google Cloud API may perform punctuation restoration when doing speech recognition (https://cloud.google.com/speech-to-text/docs/automatic-punctuation). Can the Google Cloud API be used to perform punctuation restoration on text?


Solution

  • Yes, you can use enableAutomaticPunctuation to add punctuation to recognition result hypotheses. This feature is only available in some languages so setting this for requests in other languages has no effect at all. The default 'false' value does not add punctuation to result hypotheses. This is currently offered as an experimental service, complimentary to all users. In the future this may be exclusively available as a premium feature.